Login & Registration error messages problem

  • Posts: 27
  • Thank you received: 0
9 years 8 months ago #169014

-- url of the page with the problem -- : private
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.1
-- PHP version -- : 5.4.4

Hello,

I have hikashop 2.3.2 running on Joomla 3.3.1 and if a user makes a mistake when using login or registration form during checkout the Joomla error messages look like this:

JLIB_DATABASE_ERROR_PLEASE_ENTER_A_USER_NAME

Instead of displaying the correct text.
When using original Joomla login & registration form it works fine.

Error messages on cart view are working.

How can this be fixed?

Thanks,
Andreas

Last edit: 9 years 8 months ago by innoads.

Please Log in or Create an account to join the conversation.

  • Posts: 81597
  • Thank you received: 13081
  • MODERATOR
9 years 8 months ago #169046

Hi,

It seems that the login library of Joomla doesn't load itself its translations.
Add the code:
$language = JFactory::getLanguage();
$language->load('lib_joomla', JPATH_SITE);
before the line:
if (!$user->bind( $data, 'usertype' )) {

in the file administrator/components/com_hikashop/classes/user.php and that should fix that.

The following user(s) said Thank You: innoads

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
9 years 8 months ago #169071

Hi,

thank you very much! This fixed the problem.

How does it come that I seem to be the only one with this problem. Is it possible that the 3rd party template that I use is causing this issue?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #169091

Hi,

It can potentially be related on the template.
There is a lot of different configurations, templates, etc so we are not surprised when there is this kind of issue for only one person on the forum. ;)

The following user(s) said Thank You: innoads

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum