Foren

Language Switch Issue

thumbnail
Ghulam Abbas, geändert vor 9 Jahren.

Language Switch Issue

New Member Beiträge: 5 Beitrittsdatum: 26.08.14 Neueste Beiträge
Hi ,

I am facing an issue in language switch, whenever I click on lang to switch it , it does't switch and says 'language temporarily unavailable'. In the log it throws following exception:

[org.apache.struts.action.RequestProcessor] (http--0.0.0.0-8010-63) Unhandled Exception thrown: class com.liferay.portal.ReservedUserEmailAddressException
14:49:14,586 INFO [stdout] (http--0.0.0.0-8010-63) 14:49:14,584 ERROR [http--0.0.0.0-8010-63][render_portlet_jsp:132] null
14:49:14,588 INFO [stdout] (http--0.0.0.0-8010-63) com.liferay.portal.ReservedUserEmailAddressException
14:49:14,589 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validateEmailAddress(UserLocalServiceImpl.java:6008)
14:49:14,592 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5945)
14:49:14,594 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(Us

Need help if any experienced it.

Thanks,
Abbas
thumbnail
Tanweer Ahmed ., geändert vor 1 Jahr.

RE: Language Switch Issue

Expert Beiträge: 322 Beitrittsdatum: 11.03.10 Neueste Beiträge
Hi Ghulam,

From the log, it looks like your application is trying to update the User details and the email that is sent for update belongs to the "Reserved Emails" category of the Portal.

If this is case, please make sure you remove this email from the below section in the portal-ext.properties.
#
    # Input a list of reserved email addresses separated by \n characters.
    #
    admin.reserved.email.addresses=


Regards,
Tanweer.
thumbnail
Andew Jardine, geändert vor 9 Jahren.

RE: Language Switch Issue

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
:| -- that doesn't make sense.

Do you mean you are trying to update the USERS language? or do you mean you are using the Language Portlet to try to change the locale used for the site (that you are browsing)? If it is the latter, which page are you on when you try to change the language? I just did a search of the portal source (6.2) and the only places I can find references to that class are "user management" functions -- like UserLocalServiceUtil -- which should not be invoked (I don't think) when you toggle a language.

If you are getting that when you try to change the Users default language, then most likely it is the property as stated by Tanweer.
metcox metcox, geändert vor 9 Jahren.

RE: Language Switch Issue

New Member Beitrag: 1 Beitrittsdatum: 06.11.13 Neueste Beiträge
Hi,

I faced the same bug today.

the code matching the stacktrace is (for liferay-portal-6.2-ce-ga2):


		String pop3User = PrefsPropsUtil.getString(
			PropsKeys.MAIL_SESSION_MAIL_POP3_USER,
			PropsValues.MAIL_SESSION_MAIL_POP3_USER);

		if (StringUtil.equalsIgnoreCase(emailAddress, pop3User)) {
			throw new ReservedUserEmailAddressException();
		}


This control is a non-sense for me but it is there. So if you have defined (or not, the field is prefilled with the admin user I guess) the field "Admin > Control Panel > Server Administration > Mail > User Name" with the same email as the current user, it will fail.

Regards,

Mathieu

Ghulam Abbas:
Hi ,

I am facing an issue in language switch, whenever I click on lang to switch it , it does't switch and says 'language temporarily unavailable'. In the log it throws following exception:

[org.apache.struts.action.RequestProcessor] (http--0.0.0.0-8010-63) Unhandled Exception thrown: class com.liferay.portal.ReservedUserEmailAddressException
14:49:14,586 INFO [stdout] (http--0.0.0.0-8010-63) 14:49:14,584 ERROR [http--0.0.0.0-8010-63][render_portlet_jsp:132] null
14:49:14,588 INFO [stdout] (http--0.0.0.0-8010-63) com.liferay.portal.ReservedUserEmailAddressException
14:49:14,589 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validateEmailAddress(UserLocalServiceImpl.java:6008)
14:49:14,592 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5945)
14:49:14,594 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(Us

Need help if any experienced it.

Thanks,
Abbas
thumbnail
Ghulam Abbas, geändert vor 9 Jahren.

RE: Language Switch Issue

New Member Beiträge: 5 Beitrittsdatum: 26.08.14 Neueste Beiträge
Hi,
Apology for delay, infact stucked in some problems, I tried the suggestions but still getting the same exception. Actually I am using liferay build in language portlet and when I switching language it throws this exception. According to Tanveer , I put the property in portal-ext but still issue persist.

Regards,
thumbnail
Andew Jardine, geändert vor 9 Jahren.

RE: Language Switch Issue

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Ghulam,

Are you still struggling with this one or did you find a solution?
Roshan Qureshi, geändert vor 9 Jahren.

RE: Language Switch Issue

Regular Member Beiträge: 159 Beitrittsdatum: 24.08.10 Neueste Beiträge
Dear Abbas,

Please provide the information about the version of liferay you are using.
Are you using any hooks or custom code as well?


Regards,
Roshan Qureshi
thumbnail
Ghulam Abbas, geändert vor 9 Jahren.

RE: Language Switch Issue

New Member Beiträge: 5 Beitrittsdatum: 26.08.14 Neueste Beiträge
Unfortunately I am still struggling with it , I am using 6.2 EE with Jboss 7.1. I am not using any hook or custom code for the language portlet or any thing custom for users.

Regards
Abbas
Scarletake Bwi, geändert vor 3 Jahren.

RE: Language Switch Issue

Expert Beiträge: 326 Beitrittsdatum: 20.12.10 Neueste Beiträge
i face same issue. i found, the only way is change the user on Control Panel > Server Administration > Mail > User Namei use 6.2, it's very weird because it works before, and after i update the smtp setting of mail config.