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

#   Manage Variant Error

##

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

Less More

- Posts: 575
- Thank you received: 11
-
-

14 years 11 months ago [\#31092](#31092) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  *[Manage Variant Error](/forum/3-bug-report/31092-manage-variant-error#31092 "Hi after upgrade to 1.5.4 getting this error while using manage variant in product  Warning: reset() &#91;function.reset&#93;: Passed variable is not an array or object in /home/singmuihen/domains/singmuiheng.com/public&#95;html/administrator/components/com&#95;hikashop/helpers/helper.php on line 777  how to fix this?")* was created by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")*

Hi after upgrade to 1.5.4 getting this error while using manage variant in product

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/singmuihen/domains/singmuiheng.com/public_html/administrator/components/com_hikashop/helpers/helper.php on line 777

how to fix this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMTA5Mi1tYW5hZ2UtdmFyaWFudC1lcnJvcj90bXBsPW1hcmtkb3du) 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 11 months ago [\#31093](#31093) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Manage Variant Error](/forum/3-bug-report/31092-manage-variant-error#31093 "Hi after upgrade to 1.5.4 getting this error while using manage variant in product  Warning: reset() &#91;function.reset&#93;: Passed variable is not an array or object in /home/singmuihen/domains/singmuiheng.com/public&#95;html/administrator/components/com&#95;hikashop/helpers/helper.php on line 777  how to fix this?")*

You can change that line by:
$array = JRequest::getVar( 'cid', array(), '', 'array' );
if(is_array($array))$oneResult = reset($array);
and that will remove the message.

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

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