[Skip to main content](#vessel-content)

#   Admin dashboard error

##

- **[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")**
- [![eileensemporium's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37550-eileensemporium "View eileensemporium's Profile") Topic Author
- [ Offline](/forum/user/37550-eileensemporium)

Less More

- Posts: 54
- Thank you received: 0
-
-

6 years 7 months ago [\#317101](#317101) by [eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")  *[Admin dashboard error](/forum/36-reports-statistics/899459-admin-dashboard-error#317101 "-- 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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;statistics.php on line 1118  What is this and how can I fix it?")* was created by *[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84OTk0NTktYWRtaW4tZGFzaGJvYXJkLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

6 years 7 months ago [\#317113](#317113) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Admin dashboard error](/forum/36-reports-statistics/899459-admin-dashboard-error#317113 "-- 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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;statistics.php on line 1118  What is this and how can I fix it?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84OTk0NTktYWRtaW4tZGFzaGJvYXJkLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rkhirsch](/forum/user/59356-rkhirsch "View rkhirsch's Profile")**
- [![rkhirsch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59356-rkhirsch "View rkhirsch's Profile")
- [ Offline](/forum/user/59356-rkhirsch)

Less More

- Posts: 12
- Thank you received: 1
-
-

6 years 7 months ago [\#317205](#317205) by [rkhirsch](/forum/user/59356-rkhirsch "View rkhirsch's Profile")  Replied by *[rkhirsch](/forum/user/59356-rkhirsch "View rkhirsch's Profile")* on topic *[Admin dashboard error](/forum/36-reports-statistics/899459-admin-dashboard-error#317205 "-- 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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;statistics.php on line 1118  What is this and how can I fix it?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84OTk0NTktYWRtaW4tZGFzaGJvYXJkLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

6 years 7 months ago [\#317207](#317207) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Admin dashboard error](/forum/36-reports-statistics/899459-admin-dashboard-error#317207 "-- 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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;statistics.php on line 1118  What is this and how can I fix it?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84OTk0NTktYWRtaW4tZGFzaGJvYXJkLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rkhirsch](/forum/user/59356-rkhirsch "View rkhirsch's Profile")**
- [![rkhirsch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59356-rkhirsch "View rkhirsch's Profile")
- [ Offline](/forum/user/59356-rkhirsch)

Less More

- Posts: 12
- Thank you received: 1
-
-

6 years 7 months ago -  6 years 7 months ago [\#317241](#317241) by [rkhirsch](/forum/user/59356-rkhirsch "View rkhirsch's Profile")  Replied by *[rkhirsch](/forum/user/59356-rkhirsch "View rkhirsch's Profile")* on topic *[Admin dashboard error](/forum/36-reports-statistics/899459-admin-dashboard-error#317241 "-- 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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;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 ...&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;statistics.php on line 1118  What is this and how can I fix it?")*

Is this the right link: [ www.hikashop.com/component/updateme/down...t-zip.html?Itemid=99](https://www.hikashop.com/component/updateme/download/component-hikashop/level-essential/ext-zip.html?Itemid=99)

I just tried it. It works! Thank you very much.

Last edit: 6 years 7 months ago by [rkhirsch](/forum/user/59356-rkhirsch "View rkhirsch's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84OTk0NTktYWRtaW4tZGFzaGJvYXJkLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
