I found the problem and solved it:
Error in Spanish Language File Causing "3 arguments are required, 2 given" Error Message
Issue Description:
We encountered an issue with the Spanish language file of JomSocial that triggered an error on our website. The issue occurs only in the Spanish version, while the English, German, French, Italian, and Portuguese versions work without any problems.
The specific error message is:
3 arguments are required, 2 given
This occurs in the file JROOT/components/com_community/views/frontpage/view.html.php at line 52, where the Text::sprintf method is used.
Cause:
In the Spanish language file (es-ES.com_community.ini), there is a translation discrepancy in the key COM_COMMUNITY_FRONTPAGE_TITLE. The entry in the Spanish file expects two placeholders (%1$s and %2$s), while the corresponding English entry uses only one placeholder (%1$s). Since the Text::sprintf method only passes one value (the site name) in this case, it results in the mentioned error.
Affected Entries:
English:
COM_COMMUNITY_FRONTPAGE_TITLE="Welcome to %1$s"
Spanish (incorrect):
COM_COMMUNITY_FRONTPAGE_TITLE="Detalles de la cuenta para %1$s en %2$s"
Solution:
The Spanish entry should be corrected to use only one placeholder, matching the English original. The corrected entry should be:
COM_COMMUNITY_FRONTPAGE_TITLE="Detalles de la cuenta para %1$s"
After making this correction, the Spanish version of the site works perfectly without the mentioned error message.
Recommendation:
It would be advisable to incorporate this change into the official Spanish language file of JomSocial to prevent similar issues for other users.