Skip to main content

Admin dashboard error

More
6 years 6 months ago #317101 by eileensemporium
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.3
-- Error-message(debug-mod must be tuned on) -- : Warning: Invalid argument supplied for foreach() in ...\administrator\components\com_hikashop\classes\statistics.php on line 1118

Hello,
When I login and view the backend admin with the dashboard module displayed and Error reporting set to development I see an error:

Warning: Invalid argument supplied for foreach() in ...\administrator\components\com_hikashop\classes\statistics.php on line 1118

What is this and how can I fix it?

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

More
6 years 6 months ago #317113 by nicolas
Replied by nicolas on topic Admin dashboard error
Hi,

It's nothing important. The warning is just appearing because PHP 7.3 is strictier than previous versions and thus we need to adapt a bit the code there to make it compliant. But it doesn't change the way it works.
I've added a patch to remove the warning. You can download the install package on our website and install it on yours and you won't get the warning anymore.

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

More
6 years 6 months ago #317205 by rkhirsch
Replied by rkhirsch on topic Admin dashboard error
Hi,
I have the same problem. I downloaded the "Hikashop Essential" yesterday and I get these messages:

Warning: get_object_vars() expects parameter 1 to be object, string given in /home/www/htdocs/ganymed.de/administrator/components/com_hikashop/classes/statistics.php on line 1118

Warning: Invalid argument supplied for foreach() in /home/www/htdocs/ganymed.de/administrator/components/com_hikashop/classes/statistics.php on line 1118

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

More
6 years 6 months ago #317207 by nicolas
Replied by nicolas on topic Admin dashboard error
Hi,

I've added another patch to remove the two warnings. You can download the install package on our website and install it on yours and you won't get the warnings anymore.

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

More
6 years 6 months ago - 6 years 6 months ago #317241 by rkhirsch
Replied by rkhirsch on topic Admin dashboard error
Is this the right link: www.hikashop.com/component/updateme/down...t-zip.html?Itemid=99

I just tried it. It works! Thank you very much.
Last edit: 6 years 6 months ago by rkhirsch.

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

Time to create page: 0.201 seconds
Powered by Kunena Forum