Fatal error: Call to undefined method stdClass::getParams() in

  • Posts: 1
  • Thank you received: 0
4 years 4 months ago #325878

-- url of the page with the problem -- : felinamedia.ro/magazin-online
-- HikaShop version -- : 4.40
-- Joomla version -- : 3.0
-- PHP version -- : 5.4
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Call to undefined method stdClass::getParams() in /home/u910941282/public_html/administrator/components/com_hikashop/helpers/module.php on line 157

Hi!
I have Fatal error: Call to undefined method stdClass::getParams() in /home/u910941282/public_html/administrator/components/com_hikashop/helpers/module.php on line 157
Whaz can i do_

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

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
4 years 4 months ago #325905

Hello,

First can you precise the context in details :
1. Can you describe the page where you experienced this error message, please ? And add your step by step process to reach it.
2. Active the Joomla debug mode (level developer) and provide this enriched screenshot, please.
3. Provide your build, please



Awaiting news from you to be able to progress on your subject.

Regards

Last edit: 4 years 4 months ago by Philip.

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 4 months ago #325932

Hi,

I think you have an old build of HikaShop 4.4.
Please download again the install package of the 4.4.0 on our website to get the latest build and install it again on your website. That should fix that problem.

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

  • Posts: 131
  • Thank you received: 7
4 years 3 months ago #326121

Just downloaded Hikashop 4.4.0 against a Joomla 3.6.5 PHP 7.3.24

site and getting the same error when accessing the Hikashop products listing or category listing.

Attachments:
Last edit: 4 years 3 months ago by bonzomedia. Reason: Added error output screenshot showing call stack

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 3 months ago #326137

Hi,

That's strange.
Try changing the line:
if(HIKASHOP_J30)
to:
if(HIKASHOP_J30 && method_exists($menu, 'getParams'))
in the file administrator/components/com_hikashop/helpers/module.php
That should hopefully fix the problem.

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

  • Posts: 131
  • Thank you received: 7
4 years 3 months ago #326147

Thanks Nicolas,

That fixed the issue in : administrator/components/com_hikashop/helpers/module.php

I also had to add that to:-

components/com_hikashop/views/product/view.html.php

Last edit: 4 years 3 months ago by bonzomedia.

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

  • Posts: 131
  • Thank you received: 7
4 years 3 months ago #326148

...in components/com_hikashop/views/product/view.html.php there are multiple places where this mod need to be applied.

I can now view product list and product detail without the error...

What could be causing this issue?

Last edit: 4 years 3 months ago by bonzomedia.

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 3 months ago #326150

Hi,

I suppose it must be linked to your version of Joomla. Joomla changed several times the way we can access the parameters of a menu item in the past 10 years and so we adapted the code.
I'm actually not even sure that Joomla 3.6 is fully compatible with PHP 7.3.
Updating to the latest version of Joomla 3 will probably fix the issues with getParams without doing any code change.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum