Skip to main content

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

More
5 years 10 months ago #325878 by feya
-- 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.

More
5 years 10 months ago - 5 years 10 months ago #325905 by Philip
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: 5 years 10 months ago by Philip.

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

More
5 years 10 months ago #325932 by nicolas
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.

More
5 years 10 months ago - 5 years 10 months ago #326121 by bonzomedia
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.
Last edit: 5 years 10 months ago by bonzomedia. Reason: Added error output screenshot showing call stack

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

More
5 years 10 months ago #326137 by nicolas
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.

More
5 years 10 months ago - 5 years 10 months ago #326147 by bonzomedia
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: 5 years 10 months ago by bonzomedia.

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

More
5 years 10 months ago - 5 years 10 months ago #326148 by bonzomedia
...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: 5 years 10 months ago by bonzomedia.

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

More
5 years 10 months ago #326150 by nicolas
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.280 seconds
Powered by Kunena Forum