The activation email seems to contain invalid username and the password seems to be the username. I am using the latest jomsocial release. The username and password generated look as shown below:
Username:website address
Password: username
Steps for simulating the problem:
1) Click on Join us. It is free
2) Enter the username, name, email, password.
3) Complete registration
4) Check the mail and the above mentioned error appears.
Hi, Vijay.
Please provide us with working administrator credentials.
I can't login to your site.
Please, edit your first post and add credentials to corresponding fields.
Hi,
I found the bug. Looks like the COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRED_ACTIVATION was updated recently.
Old version:
COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRED_ACTIVATION= Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can log in.\nTo activate the account, click on the following link or copy-&-paste it in your browser:\n%s\n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s
New version:
COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRED_ACTIVATION= Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can log in.\nTo activate the account, click on the following link or copy-&-paste it in your browser:\n\t<a href=_QQQ_%3$s_QQQ_>%3$s</a>\n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
This leads to the reiteration of activation URL after "login to". The order of string variables is affected due to this change.
I added a language override and the problem is solved now. However, due to the override, I lost the website activation link (it appears as text now) but the username and password appear correct. Would this be available in the next fix?
Additionally, could you please let me know what is the location where I can change the text of $copyrightemail used at the bottom of emails sent.
*** The error is only for self activation option. If you used admin activation (as done in demo website), you will not see this issue.
HI, Vijay.
Glad you solved it on your own.
But COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRED_ACTIVATION is not present in JomSocial 3.2.1.5 language file...
The only similar constants are:
COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRES_ACTIVATION
COM_COMMUNITY_EMAIL_REGISTRATION_COMPLETED_REQUIRES_ACTIVATION
You lost active activation link because Joomla added ". Just make sure that link in text look like this: <a href="%3$s">%3$s</a>. If quotation marks appear - remove _QQQ_.
You failed to provide us administrator credentials to your site... so I don't even know what version of JomSocial do you use.
Thank you.
The language file entry was "COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRES_ACTIVATION". I am using 3.2.15 on joomla 2.5.27. I pasted the language file right from your installation package. How is it joomla bug? I don't understand why you said joomla added the quotation. Are you saying _QQQ is not present in the jomsocial language file?
I did not provide admin access as the issue can be recreated on jomsocial demo site with the current language file with above content.
Hi, Vijay.
When you create language override using Joomla! backend - quotation marks are added. That's why link is broken. Then just remove _QQQ_ as they are spared in override (they are used in ini files to create quotation marks and avoid code outage.
Hi Michal,
I did not add a language override with "QQQ". As stated earlier, I added an override with jomsocial 2.8 code which is bug free.
I am talking about the file
"en-GB.com_community.ini""en-GB.com_community.ini"COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRES_ACTIVATION="Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can log in.\nTo activate the account, click on the following link or copy-&-paste it in your browser:\n\t<a href=_QQQ_%3$s_QQQ_>%3$s</a>\n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s""en-GB.com_community.ini"
For anyone having this issue with latest update (one good reason not to update jomsocial without extensive testing - Bugs fixed and more bugs created)
The fix is given below:
Go to language manager and add the below override.
COM_COMMUNITY_EMAIL_REGISTRATION_REQUIRES_ACTIVATION
Hello %1$s,\n\nThank you for registering at %2$s. Your account is created and must be activated before you can log in.\nTo activate the account, click on the following link or copy-&-paste it in your browser:\n\t<a href="%3$s">%3$s</a>\n\nAfter activation you may login to %4$s using the following username and password:\n\nUsername: %5$s\nPassword: %6$s
If you want to edit the ""en-GB.com_community.ini" file, you need to just change the placeholder by adding respective placeholders to each string.
The ini file can be edited as above but only change the placeholders.
========================================================================
Hi Michal,
Will this be recognized as bug and fixed in next update?
Is this a bug or not? Is the user expected to add an override to fix it? Is the issue only for certain versions of Joomla or specific servers? I am not able to understand why it is a customer issue and not a confirmed bug. Please do let me know if I misunderstood the previous posts.
Hi, Vijay.
No, it's not a bug but outdated language file... rather. If it will be a bug we'll have dozens of reports like your. For now we have only two.
You misunderstood: I said when you do language override using Joomla! feature. Then Joomla! editor adds quotation marks. Then in text field _QQQ_are spared. In file they should be where they are as they are equivalent of quotation marks. Quotation mark used in ini file indicates beginning and end of constant value.
Thanks Michal. I downloaded the package from your site 2 weeks back. I am surprised how it is outdated.