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

#   Warning: Division by zero in

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 7 months ago [\#12351](#12351) by [sbp](/forum/user/1770-sbp "View sbp's Profile")  *[Warning: Division by zero in](/forum/3-bug-report/12351-warning-division-by-zero-in#12351 "Bonjour,  petit soucis, soudainement est apparu ceci (en front):  Warning: Division by zero in /www/xxx/components/com&#95;hikashop/views/product/tmpl/listing&#95;div.php on line 25  ok mais que changer sur cette ligne ? et pourquoi ce message d'erreur apparait-il?  Merci de votre réponse.  Joomla 1.5.22 à jour")* was created by *[sbp](/forum/user/1770-sbp "View sbp's Profile")*

Bonjour,

petit soucis, soudainement est apparu ceci (en front):

Warning: Division by zero in /www/xxx/components/com_hikashop/views/product/tmpl/listing_div.php on line 25

ok mais que changer sur cette ligne ? et pourquoi ce message d'erreur apparait-il?

Merci de votre réponse.

Joomla 1.5.22 à jour

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMjM1MS13YXJuaW5nLWRpdmlzaW9uLWJ5LXplcm8taW4/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

15 years 7 months ago [\#12366](#12366) 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: Division by zero in](/forum/3-bug-report/12351-warning-division-by-zero-in#12366 "Bonjour,  petit soucis, soudainement est apparu ceci (en front):  Warning: Division by zero in /www/xxx/components/com&#95;hikashop/views/product/tmpl/listing&#95;div.php on line 25  ok mais que changer sur cette ligne ? et pourquoi ce message d'erreur apparait-il?  Merci de votre réponse.  Joomla 1.5.22 à jour")*

Il faut aller dans les options de votre menu/module et changer l'option "nombre de colonnes" pour autre chose que 0.

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 7 months ago [\#12403](#12403) by [sbp](/forum/user/1770-sbp "View sbp's Profile")  Replied by *[sbp](/forum/user/1770-sbp "View sbp's Profile")* on topic *[Re: Warning: Division by zero in](/forum/3-bug-report/12351-warning-division-by-zero-in#12403 "Bonjour,  petit soucis, soudainement est apparu ceci (en front):  Warning: Division by zero in /www/xxx/components/com&#95;hikashop/views/product/tmpl/listing&#95;div.php on line 25  ok mais que changer sur cette ligne ? et pourquoi ce message d'erreur apparait-il?  Merci de votre réponse.  Joomla 1.5.22 à jour")*

Ok très bien, il s'agissait des modules ....
Mais aucun n'était publié ...
Donc comment faire si je ne souhaite ni les publier et ni avoir le message d'erreur mentionné plus haut?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMjM1MS13YXJuaW5nLWRpdmlzaW9uLWJ5LXplcm8taW4/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

15 years 7 months ago [\#12412](#12412) 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: Division by zero in](/forum/3-bug-report/12351-warning-division-by-zero-in#12412 "Bonjour,  petit soucis, soudainement est apparu ceci (en front):  Warning: Division by zero in /www/xxx/components/com&#95;hikashop/views/product/tmpl/listing&#95;div.php on line 25  ok mais que changer sur cette ligne ? et pourquoi ce message d'erreur apparait-il?  Merci de votre réponse.  Joomla 1.5.22 à jour")*

Dans le menu Affichage-&gt;Vues, vous pouvez ajouter la ligne:
if(empty($columns)) $columns = 1;
après la ligne:
$columns = $this-&gt;params-&gt;get('columns');
dans le fichier listing_div de la vue product.

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

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