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

#   Error when displaying some product: range(): Argument #3 ($step)

##

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

Less More

- Posts: 33
- Thank you received: 2
-
-

4 years 1 day ago [\#346443](#346443) by [softdune](/forum/user/58135-softdune "View softdune's Profile")  *[Error when displaying some product: range(): Argument #3 ($step)](/forum/26-product-category-display/905324-error-when-displaying-some-product-range-argument-3-step#346443 "-- url of the page with the problem -- :   softdune.com/index.php/fr/orita-amelie/c...1-scrap-paper-amelie  -- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 8.0.25 -- Error-message(debug-mod must be tuned on) -- : range(): Argument #3 ($step) must not exceed the specified range  Hi,  Since the last days we receive the following error when displaying some product ranges. We had this issue for one category yesterday, but the issue stopped after a while. Now we receive the issue in another category. The issues only appears for logged in users.  range(): Argument #3 ($step) must not exceed the specified range  Attached the input from debug mode.")* was created by *[softdune](/forum/user/58135-softdune "View softdune's Profile")*

-- url of the page with the problem -- : [ softdune.com/index.php/fr/orita-amelie/c...1-scrap-paper-amelie](https://softdune.com/index.php/fr/orita-amelie/category/201-scrap-paper-amelie)
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 3.10.11
-- PHP version -- : 8.0.25
-- Error-message(debug-mod must be tuned on) -- : range(): Argument #3 ($step) must not exceed the specified range

Hi,

Since the last days we receive the following error when displaying some product ranges.
We had this issue for one category yesterday, but the issue stopped after a while.
Now we receive the issue in another category.
The issues only appears for logged in users.

range(): Argument #3 ($step) must not exceed the specified range

Attached the input from debug mode.

*This attachment is hidden for guests.
Please log in or register to see it.*

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUzMjQtZXJyb3Itd2hlbi1kaXNwbGF5aW5nLXNvbWUtcHJvZHVjdC1yYW5nZS1hcmd1bWVudC0zLXN0ZXA/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: 86359
- Thank you received: 14296
-
-

4 years 21 hours ago [\#346444](#346444) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error when displaying some product: range(): Argument #3 ($step)](/forum/26-product-category-display/905324-error-when-displaying-some-product-range-argument-3-step#346444 "-- url of the page with the problem -- :   softdune.com/index.php/fr/orita-amelie/c...1-scrap-paper-amelie  -- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 8.0.25 -- Error-message(debug-mod must be tuned on) -- : range(): Argument #3 ($step) must not exceed the specified range  Hi,  Since the last days we receive the following error when displaying some product ranges. We had this issue for one category yesterday, but the issue stopped after a while. Now we receive the issue in another category. The issues only appears for logged in users.  range(): Argument #3 ($step) must not exceed the specified range  Attached the input from debug mode.")*

Hi,

The error appears because the minimum quantity configured in the product is higher than the maximum quantity (15 by default) of the quantity dropdown.

Now, add the line:
$increment = min($increment, $max_quantity);
before the line:
$r = range($min_quantity, $max_quantity, $increment);
in the file /components/com_hikashop/views/product/tmpl/show_quantity.php (two places) and it will avoid the error message, even if the product is not configured properly.
We'll add the modification on our end for the next version of HikaShop.

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

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