Fix: The language of module "Membership Status" is not loading

  • Impression eStudio
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 2 months ago #108496 by Impression eStudio
Hi,

The language of the module "Membership Status" (and possibly other modules of Membership Pro) is not loaded when the main component is not loaded.

This can be solved easily if the following code is added in the file "modules\mod_membershipstatus\mod_membershipstatus.php":
Code:
$language = JFactory::getLanguage(); $extension = 'com_osmembership'; $base_dir = JPATH_SITE; $language_tag = $language->getTag(); $reload = false; $lang->load($extension, $base_dir, $language_tag, $reload);

Thanos

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

More
6 years 2 months ago #108540 by Tuan Pham Ngoc
Hi

Not sure what version of the extension you are using. Maybe you are not using latest version as in latest version, we have code to load language from component already (via this command OSMembershipHelper::loadLanguage();)

Regards,

Tuan

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

  • Impression eStudio
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 2 months ago #108553 by Impression eStudio
Hi Tuan,

I use the latest version 2.12.0.
I found the code you mention in the module but if I remove the extra code I wrote above the problem appears again.
I attach a screenshot of the module.

Thanos
Attachments:

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