After upload Market - fatal error in administrator

  • Posts: 4
  • Thank you received: 0
9 years 8 months ago #166278

-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.2
-- Joomla version -- : 1.5.26
-- PHP version -- : 5.2.10
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : PHP Fatal error: Call to undefined method JUser::authorise() in xxxxxx/administrator/components/com_hikamarket/classes/menu.php on line 22

Hello team,

I installed first the shop script, everything was ok, then i installed the market, and i get blank page with the error : PHP Fatal error: Call to undefined method JUser::authorise() in /administrator/components/com_hikamarket/classes/menu.php on line 22

Thank you for your support,

Brds

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

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
9 years 8 months ago #166283

Hi,

Please edit the file "administrator/components/com_hikamarket/classes/menu.php" and replace the line 22

if(!$currentuser->authorise('core.manage', 'com_hikamarket'))
By
if(HIKASHOP_J16 &&!$currentuser->authorise('core.manage', 'com_hikamarket'))
It will fix the problem with Joomla 1.5

Sorry for the inconvenient.

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: 4
  • Thank you received: 0
9 years 8 months ago #166285

Thank you for the feedback,

now same issue with line 40 :

[03-Aug-2014 13:48:33] PHP Fatal error: Call to undefined method JUser::authorise() in /administrator/components/com_hikamarket/classes/menu.php on line 40

What is the correction to apply ?

Thank you in advance

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

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
9 years 8 months ago #166287

Hi,

For the line 40 (and same for the 49).
You have to replace

$currentuser->authorise('core.admin', 'com_hikamarket')
By
!HIKASHOP_J16 || $currentuser->authorise('core.manage', 'com_hikamarket')
In order to display the menu item with Joomla 1.5

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: 4
  • Thank you received: 0
9 years 8 months ago #166288

Same with line 50 :

[03-Aug-2014 14:33:39] PHP Fatal error: Call to undefined method JUser::authorise() in administrator/components/com_hikamarket/classes/menu.php on line 50

May be you could revu the menu.php file ?

Thank you,

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

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
9 years 8 months ago #166289

Hi,

For the line 40 (and same for the 49).

It should be line 49 but, it's the same. You have to replace the code twice as I said in my previous message.

Regards,

PS: The packages has been updated.


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.
Last edit: 9 years 8 months ago by Jerome.

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

  • Posts: 4
  • Thank you received: 0
9 years 8 months ago #166291

Yes,

Thank you, that is ok now.

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

Moderators: Obsidev
Time to create page: 0.066 seconds
Powered by Kunena Forum