Fatal error in hikashopregistrationredirect

  • Posts: 193
  • Thank you received: 76
10 years 3 weeks ago #177137

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined function hikashop_get() on plugins\system\hikashopregistrationredirect\hikashopregistrationredirect.php on line 43

After update to Hikashop 2.3.4 with "Redirect Joomla registration to HikaShop Plugin" turned on, when I click on Joomla registration link, I get this fatal error.
I think there is missing include of file "administrator\components\com_hikashop\helpers\helper.php"

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 3 weeks ago #177148

Hi,

Thanks for the report.
Please add the line

if(include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
just before the line
$menuClass = hikashop_get('class.menus');
in the plugin "hikashopregistrationredirect".

We will update the HikaShop 2.3.4 package as soon as possible.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 117
  • Thank you received: 3
10 years 3 weeks ago #177798

I've tested your solution and also downloaded the new package again. The fatal error is solved but if I click on the default login registration link in Joomla Login Module it doen't redirect me to the HikaShop page. I've checked that the menu ID in the plugin is correctly assigned to the HikaShop registration page.

What's wrong?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 3 weeks ago #177821

So what does it do ? what is the link of the page after you click on the registration link of the module ?
Is the plugin enabled ?

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

  • Posts: 117
  • Thank you received: 3
10 years 3 weeks ago #177877

It redirects me to the default joomla registration page instead of the hikashop registration page. The link is the same link of Joomla registration page. Plugin is enabled.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 weeks ago #178201

Hi,

Would it be possible to have a link to your store ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 193
  • Thank you received: 76
10 years 2 weeks ago #178209

There is bug again in silent update for 2.3.4
in \plugins\system\hikashopregistrationredirect\hikashopregistrationredirect.php on line 43.
There should be :

if(!(include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'))) return true;

Last edit: 10 years 2 weeks ago by korzo.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 weeks ago #178211

Hi,

You're right ; I missed it.
Thanks for the report, I will see to update the package as soon as possible.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 193
  • Thank you received: 76
10 years 2 weeks ago #178220

Also at line 56 should be :

$app->redirect(JRoute::_('index.php?option=com_hikashop&ctrl=user&task=form'.$url_itemid, false));

Otherwise when SEF is turned off, Itemid is not detected.
Screenshot from JInput::data attached.

Attachments:
The following user(s) said Thank You: Jerome

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

Time to create page: 0.082 seconds
Powered by Kunena Forum