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

#   Error when saving Additional info on order

##

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

Less More

- Posts: 366
- Thank you received: 26
-
-

4 years 10 months ago [\#338332](#338332) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  *[Error when saving Additional info on order](/forum/35-orders-management/903755-error-when-saving-additional-info-on-order#338332 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.14 -- Error-message(debug-mod must be tuned on) -- : # Function Location 1 () JROOT/administrator/components/com&#95;hikashop/classes/order.php:1165 2 hikashopOrderClass-&gt;saveForm() JROOT/administrator/components/com&#95;hikashop/controllers/order.php:608 3 OrderController-&gt;save() JROOT/libraries/src/MVC/Controller/BaseController.php:702 4 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2286 5 hikashopController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/hikashop.php:73 6 require&#95;once() JROOT/libraries/src/Component/ComponentHelper.php:402 7 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377 8 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101 9 Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159 10 Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:225 11 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/administrator/index.php:51  Hi  When I on an order edit additional info and click save, I get this error and nothing is saved:  Any way to fix this?  Regards Thomas")* was created by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")*

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.4
-- PHP version -- : 8.0.14
-- Error-message(debug-mod must be tuned on) -- : # Function Location
1 () JROOT/administrator/components/com_hikashop/classes/order.php:1165
2 hikashopOrderClass-&gt;saveForm() JROOT/administrator/components/com_hikashop/controllers/order.php:608
3 OrderController-&gt;save() JROOT/libraries/src/MVC/Controller/BaseController.php:702
4 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2286
5 hikashopController-&gt;execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
6 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
7 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
9 Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
10 Joomla\CMS\Application\AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
11 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/administrator/index.php:51

Hi

When I on an order edit additional info and click save, I get this error and nothing is saved:
Code:

An error has occurred. 0 count(): Argument #1 ($value) must be of type Countable&#124;array, string given

Any way to fix this?

Regards
Thomas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzc1NS1lcnJvci13aGVuLXNhdmluZy1hZGRpdGlvbmFsLWluZm8tb24tb3JkZXI/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: 86583
- Thank you received: 14324
-
-

4 years 10 months ago [\#338334](#338334) 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 saving Additional info on order](/forum/35-orders-management/903755-error-when-saving-additional-info-on-order#338334 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.14 -- Error-message(debug-mod must be tuned on) -- : # Function Location 1 () JROOT/administrator/components/com&#95;hikashop/classes/order.php:1165 2 hikashopOrderClass-&gt;saveForm() JROOT/administrator/components/com&#95;hikashop/controllers/order.php:608 3 OrderController-&gt;save() JROOT/libraries/src/MVC/Controller/BaseController.php:702 4 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2286 5 hikashopController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/hikashop.php:73 6 require&#95;once() JROOT/libraries/src/Component/ComponentHelper.php:402 7 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377 8 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101 9 Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159 10 Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:225 11 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/administrator/index.php:51  Hi  When I on an order edit additional info and click save, I get this error and nothing is saved:  Any way to fix this?  Regards Thomas")*

Hi,

Thanks for the report.
Change the line: Code:

if( !empty($value) &#124;&#124; count($value) &gt; 0 )

to: Code:

if( !empty($value) &#124;&#124; (is_array($value) &amp;&amp; count($value) &gt; 0 ))

in the file administrator/components/com_hikashop/classes/order.php and it will fix the problem.
We'll add the fix on our end.

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

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

Less More

- Posts: 366
- Thank you received: 26
-
-

4 years 10 months ago [\#338353](#338353) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[Error when saving Additional info on order](/forum/35-orders-management/903755-error-when-saving-additional-info-on-order#338353 "-- HikaShop version -- : 4.4.5 -- Joomla version -- : 3.10.4 -- PHP version -- : 8.0.14 -- Error-message(debug-mod must be tuned on) -- : # Function Location 1 () JROOT/administrator/components/com&#95;hikashop/classes/order.php:1165 2 hikashopOrderClass-&gt;saveForm() JROOT/administrator/components/com&#95;hikashop/controllers/order.php:608 3 OrderController-&gt;save() JROOT/libraries/src/MVC/Controller/BaseController.php:702 4 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2286 5 hikashopController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/hikashop.php:73 6 require&#95;once() JROOT/libraries/src/Component/ComponentHelper.php:402 7 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377 8 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101 9 Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159 10 Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:225 11 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/administrator/index.php:51  Hi  When I on an order edit additional info and click save, I get this error and nothing is saved:  Any way to fix this?  Regards Thomas")*

Works, thanks!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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