logo

Member
Member
Offline Offline
Posts: 46
SVN 658: The user info panel is missing text on the login page. w/FIX

This happens in two instances, both involving the user info panel. If the user info panel is displayed when a guest selects Login on the navbar, the user info panel doesn't display any text. The other instance, is if the user info panel is displayed twice while a guest is active. Only the first time it's displayed on the page, will it have text in it.

Once a user is logged in though, if there's two panels, both display correctly.

A little digging, and it's because it's trying to include a language file more than once, which uselangfile.php doesn't allow.

To fix this...

Open
Code:
functions/uselangfile.php


Find
Code:

   @include_once(IN_PATH . 'language/' . $lang_path . '/' . $lang_file);
   if(@eval('!is_array($' . $lang_array . '_LANG)'))
      @include_once(IN_PATH . 'language/en' . $lang_file);


Replace With
Code:

   @include(IN_PATH . 'language/' . $lang_path . '/' . $lang_file);
   if(@eval('!is_array($' . $lang_array . '_LANG)'))
      @include(IN_PATH . 'language/en' . $lang_file);


The only two places in which this function file is called, are; in Edit Profile, which uses the Profile language file, which can't both be displayed at once; or for the User Info panel which uses the Login page language file, which CAN both be displayed at at the same time, which means using include_once rather than include will break it.

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: SVN 658: The user info panel is missing text on the login page. w/FIX

Fixed

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: [Fixed] SVN 658: The user info panel is missing text on the login page. w/FIX

This bug has been deemed [Fixed] by an eoCMS developer. If you dispute the Fix, please PM a developer, giving details of why. This topic can then be unlocked allowing for further discussion.

Please do not PM me requesting support or anything, use the forums, thats what they are here for

Jump to:


0.05 seconds Queries: 13