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

#   Warnings after the server update to a PHP v 5.3.10

##

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago [\#46376](#46376) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  *[Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46376 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")* was created by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")*

After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:

Warning: reset() expects parameter 1 to be array, null given in /.../.../public_html/golden/templates/goldendida/html/com_hikashop/product/listing_div.php on line 30

Please advice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80NjM3Ni13YXJuaW5ncy1hZnRlci10aGUtc2VydmVyLXVwZGF0ZS10by1hLXBocC12LTUtMy0xMD90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

14 years 7 months ago [\#46378](#46378) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46378 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

Change the "error reporting" option of the joomla configuration to "production".

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago [\#46382](#46382) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46382 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

Thanx for the prompt reply, but there is no such an option in 1.5.23

Also I am getting this error:
Warning: Invalid argument supplied for foreach() in /.../.../public_html/modules/mod_banners/tmpl/default.php on line 9

and my product category pages a emply.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80NjM3Ni13YXJuaW5ncy1hZnRlci10aGUtc2VydmVyLXVwZGF0ZS10by1hLXBocC12LTUtMy0xMD90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

14 years 7 months ago [\#46383](#46383) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46383 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

For the first error then, you can just add a @ before the word reset on that line and it should remove the message.

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#46401](#46401) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46401 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

Did like you said. Now there is no message and no products whown as well!

Also another error is comming up when I get to the Product page using website search facility:

Warning: Invalid argument supplied for foreach() in /.../.../public_html/golden/administrator/components/com_hikashop/classes/field.php on line 97

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80NjM3Ni13YXJuaW5ncy1hZnRlci10aGUtc2VydmVyLXVwZGF0ZS10by1hLXBocC12LTUtMy0xMD90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

14 years 7 months ago [\#46407](#46407) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46407 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

What line do you have there ?

You say that your category pages are empty, I don't see the link with the version of php.
It must come from the options of your menu/module.

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago [\#46410](#46410) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46410 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

The line 97 is empty, but the line 98 contains this code:

foreach($categories as $cat){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80NjM3Ni13YXJuaW5ncy1hZnRlci10aGUtc2VydmVyLXVwZGF0ZS10by1hLXBocC12LTUtMy0xMD90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

14 years 7 months ago [\#46413](#46413) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46413 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

That's because you have an old version of HikaShop.

You would have to add:
if(!empty($categories)){

before that line and also add } after the first } after that code.

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago [\#46417](#46417) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: Warnings after the server update to a PHP v 5.3.10](/forum/3-bug-report/46376-warnings-after-the-server-update-to-a-php-v-5-3-10#46417 "After the webhosting company has updated their servers to a PHP verson 5.3.10 I am getting this error:  Warning: reset() expects parameter 1 to be array, null given in /.../.../public&#95;html/golden/templates/goldendida/html/com&#95;hikashop/product/listing&#95;div.php on line 30  Please advice")*

Thank you for your replies, I have contacted the hosting company regarding this and they did something whitch solved the issues (not only one!). I think it was soe=mething to do with PHP configuration or a MySql error.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80NjM3Ni13YXJuaW5ncy1hZnRlci10aGUtc2VydmVyLXVwZGF0ZS10by1hLXBocC12LTUtMy0xMD90bXBsPW1hcmtkb3du) 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.082 seconds

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