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

#   Warning: Invalid argument supplied for foreach()

##

- **[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")**
- [![ppt-Com's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4084.jpg)](/forum/user/4084-ppt-com "View ppt-Com's Profile") Topic Author
- [ Offline](/forum/user/4084-ppt-com)

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 1 month ago [\#66744](#66744) by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")  *[Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#66744 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")* was created by *[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")*

Bonjour,

depuis l'installation de la dernière version, j'ai des soucis d'invalid argument

sur le front end :

Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com_hikashop/views/category/view.html.php on line 340
sur l'affichage des articles d'une catégorie

sur le front end :

Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com_hikashop/views/product/view.html.php on line 909
sur l'affichage de la fiche produit

sur le back end :

Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com_hikashop/types/breadcrumb.php on line 17
et
Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com_hikashop/types/breadcrumb.php on line 26
sur le lien produits =&gt; produits

sur le back end :

Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com_hikashop/views/product/tmpl/category.php on line 46
dans la zone catégories sur la fiche produit

Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?

Cdlt

Patrick

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

- **[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")**
- [![ppt-Com's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4084.jpg)](/forum/user/4084-ppt-com "View ppt-Com's Profile") Topic Author
- [ Offline](/forum/user/4084-ppt-com)

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 1 month ago [\#66745](#66745) by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")  Replied by *[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#66745 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

j'ai réussi à fixer les deux bugs front end avec les infos du sujet [ www.hikashop.com/fr/forum/5-support-en-f...gument-supplied.html](http://www.hikashop.com/fr/forum/5-support-en-francais-french-support-/66442-message-derreur--invalid-argument-supplied.html) mais aucune info sur la partie back end

Si vous pouvez me donner un coup de main.

cdlt

Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNjY3NDQtd2FybmluZy1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLWZvci1mb3JlYWNoP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

14 years 4 weeks ago [\#67020](#67020) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67020 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Nous n'avons pas ce problème de notre coté et je n'ai pas souvenir que quelqu'un d'autre n'ait ce problème dnas le backend.

L'erreur signifie que le système n'arrive pas à récupérer les catégories parente de la catégorie courante.
Je ne vois pas comment c'est possible vu que toutes les catégories ont une catégorie parente outre la catégorie root.

Vous pouvez rajouter la ligne:
if(empty($mainCategories)) return '';

avant la ligne de l'erreur et cela enlèvera les warnings.

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

- **[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")**
- [![ppt-Com's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4084.jpg)](/forum/user/4084-ppt-com "View ppt-Com's Profile") Topic Author
- [ Offline](/forum/user/4084-ppt-com)

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 4 weeks ago [\#67059](#67059) by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")  Replied by *[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67059 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Bonjour Nicolas,

j'ai ajouté la ligne et du coup, effectivement l'erreur disparait mais les catégories ne s'affichent plus.

aussi dès que je j'essaie d'ajouter une catogorie (avant l'ajout de la ligne), j'ai ce warning qui apparait
Warning: implode() [function.implode]: Invalid arguments passed in /xxxxxxxx/xxxxxxxxx/www/administrator/components/com_hikashop/views/product/tmpl/addcategory.php on line 28

Cdlt

Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNjY3NDQtd2FybmluZy1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLWZvci1mb3JlYWNoP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

14 years 4 weeks ago [\#67171](#67171) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67171 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Bonjour,

Vous avez un problème avec vos catégories.
Elles ne sont pas liés à des catégories parentes ce qui ne devrait pas être possible.

D'où les warnings de-ci de-là.

Avez vous toujours la catégorie root ? Avez vous l'id de la catégorie root dans le champs category_parent_id de vos catégories de premier niveau dans la table hikashop_category ?
Si non, alors il faut corriger les catégories.

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

- **[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")**
- [![ppt-Com's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4084.jpg)](/forum/user/4084-ppt-com "View ppt-Com's Profile") Topic Author
- [ Offline](/forum/user/4084-ppt-com)

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 4 weeks ago [\#67183](#67183) by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")  Replied by *[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67183 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Bonsoir Nicolas

j'ai regardé, tout est bien lié, root=&gt;catégorie=&gt;souscatégorie1=&gt;souscatégorie2

j'ai réinstallé sur un site de préproduction chez un autre hébergeur et je n'ai aucun souci

cela serait il du à la version de php de l'hébergeur ?

cdlt

Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNjY3NDQtd2FybmluZy1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLWZvci1mb3JlYWNoP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

14 years 3 weeks ago [\#67286](#67286) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67286 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Quelle est la version de PHP ? Peut être que c'est lié oui.

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

- **[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")**
- [![ppt-Com's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4084.jpg)](/forum/user/4084-ppt-com "View ppt-Com's Profile") Topic Author
- [ Offline](/forum/user/4084-ppt-com)

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 3 weeks ago [\#67304](#67304) by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")  Replied by *[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67304 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Bonjour

sur la production 5.3.16 (chez OVH)
sur la pré production 5.3.8 (chez esolution web)

Cdlt

Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNjY3NDQtd2FybmluZy1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLWZvci1mb3JlYWNoP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

14 years 3 weeks ago [\#67469](#67469) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67469 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

PHP 5.3.16 et 5.3.8 sont très similaire vu qu'ils n'y a quasiment que des bugs fix entre ces versions donc cela m'étonne.
Peut être quelque chose d'autre lié au serveur ?
Les warnings peuvent être facilement cachés. Au pire il suffit de désactiver l'option "error reporting" de la config de joomla. Mais le fait que les catégories ne s'affichent pas il y a vraiment un problème.

Pourriez vous activer le mode debug de la config de joomla et réessayer ?
Peut être qu'il y a une requête SQL qui plante à cause d'un problème de mise à jour de la structure des tables...auquel cas cela affichera un gros message d'erreur là où vous avez le problème d'affichage.

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

- **[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")**
- [![ppt-Com's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4084.jpg)](/forum/user/4084-ppt-com "View ppt-Com's Profile") Topic Author
- [ Offline](/forum/user/4084-ppt-com)

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 3 weeks ago [\#67512](#67512) by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")  Replied by *[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67512 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Bonjour,

voici ce que ressort le debug

je vous joint en pièce jointe l'ensemble du resultat quand je vais sur la page des produit
*This attachment is hidden for guests.
Please log in or register to see it.*

Cdlt

Patrick

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

- **[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")**
- [![ppt-Com's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4084.jpg)](/forum/user/4084-ppt-com "View ppt-Com's Profile") Topic Author
- [ Offline](/forum/user/4084-ppt-com)

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 3 weeks ago -  14 years 3 weeks ago [\#67515](#67515) by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")  Replied by *[ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67515 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

ce que je constate d'après la log et l'erreur SQL, c'est qu'il n'y a pas assez de mémoire sur le serveur pour executer la requete, pouvez vous confirmer cela ?

voici le retour de ovh

InnoDB est activé mais n'est pas utilisé
Ajoutez skip-innodb dans votre configuration MySQL pour désactiver InnoDB
Démarrez OPTIMIZE TABLE pour défragmenter les tables pour obtenir de meilleures performances
Activez les logs slow query pour mettre en évidence des éventuelles mauvaises requêtes
Optimisez vos jointures de requêtes pour toujours utiliser des index
Augmentez votre tmp_table_size (&gt;1M) et votre max_heap_table_size (&gt;16M)
Mettez le thread_cache_size à 4 pour commencer
Augmentez table_cache petit à petit pour empêcher les limites de file descriptor

voici un extrait du my.cnf

skip-innodb
join_buffer_size = 256K
tmp_table_size = 2M
max_heap_table_size = 32M
thread_cache_size = 4
table_open_cache = 8

Cdlt

Patrick

Last edit: 14 years 3 weeks ago by [ppt-Com](/forum/user/4084-ppt-com "View ppt-Com's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNjY3NDQtd2FybmluZy1pbnZhbGlkLWFyZ3VtZW50LXN1cHBsaWVkLWZvci1mb3JlYWNoP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

14 years 3 weeks ago [\#67610](#67610) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Warning: Invalid argument supplied for foreach()](/forum/5-support-en-francais-french-support-/66744-warning-invalid-argument-supplied-for-foreach#67610 "Bonjour,  depuis l'installation de la dernière version, j'ai des soucis d'invalid argument  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/category/view.html.php on line 340 sur l'affichage des articles d'une catégorie  sur le front end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/components/com&#95;hikashop/views/product/view.html.php on line 909 sur l'affichage de la fiche produit  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 17 et Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/types/breadcrumb.php on line 26 sur le lien produits =&gt; produits  sur le back end :  Warning: Invalid argument supplied for foreach() in /xxxxxxx/xxxxxxxx/www/administrator/components/com&#95;hikashop/views/product/tmpl/category.php on line 46 dans la zone catégories sur la fiche produit  Pouvez vous me dire si il y a un bug sur cette version et comment le fixer ?  Cdlt  Patrick")*

Bonjour,

L'erreur est donc:
Out of sort memory; increase server sort buffer size.

Il faut donc augmenter la valeur de sort_buffer_size dans my.cnf

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

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

[](#top)
