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

#   Error on client addresses

##

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

Less More

- Posts: 220
- Thank you received: 12
-
-

4 years 2 months ago -  4 years 2 months ago [\#344460](#344460) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  *[Error on client addresses](/forum/35-orders-management/904966-error-on-client-addresses#344460 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.30 -- Browser(s) name and version -- : Chrome 104.0.5112.102 -- Error-message(debug-mod must be tuned on) -- : Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 88  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 41  Hello there  We receive the following error message when looking at the order details in Hikashop after upgrading the site to the details provided abovev  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 41  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 88  Please can you help?")* was created by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4.30
-- Browser(s) name and version -- : Chrome 104.0.5112.102
-- Error-message(debug-mod must be tuned on) -- : Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/administrator/components/com_hikashop/views/order/tmpl/show_address.php on line 88

Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/administrator/components/com_hikashop/views/order/tmpl/show_address.php on line 41

Hello there

We receive the following error message when looking at the order details in Hikashop after upgrading the site to the details provided abovev

Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/administrator/components/com_hikashop/views/order/tmpl/show_address.php on line 41

Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/administrator/components/com_hikashop/views/order/tmpl/show_address.php on line 88

Please can you help?

Last edit: 4 years 2 months ago by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNDk2Ni1lcnJvci1vbi1jbGllbnQtYWRkcmVzc2VzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

4 years 2 months ago [\#344463](#344463) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error on client addresses](/forum/35-orders-management/904966-error-on-client-addresses#344463 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.30 -- Browser(s) name and version -- : Chrome 104.0.5112.102 -- Error-message(debug-mod must be tuned on) -- : Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 88  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 41  Hello there  We receive the following error message when looking at the order details in Hikashop after upgrading the site to the details provided abovev  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 41  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 88  Please can you help?")*

Hi,

The only reason I can see these warnings would appear would be if all the custom address fields would be disabled.
So that's quite uncommon, and that might explain why we didn't get the issue and no one else reported it so far.

Removing the warnings can be done by adding the line:
if(empty($this-&gt;order-&gt;$fields_type)) return;
after the line:
$fields_type = $this-&gt;type.'_fields';
in the file administrator/components/com_hikashop/views/order/tmpl/show_address.php

We'll make a more complex and cleaner patch on our end for the next version of HikaShop.

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

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

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

Less More

- Posts: 220
- Thank you received: 12
-
-

4 years 2 months ago [\#344469](#344469) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  Replied by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")* on topic *[Error on client addresses](/forum/35-orders-management/904966-error-on-client-addresses#344469 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.30 -- Browser(s) name and version -- : Chrome 104.0.5112.102 -- Error-message(debug-mod must be tuned on) -- : Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 88  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 41  Hello there  We receive the following error message when looking at the order details in Hikashop after upgrading the site to the details provided abovev  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 41  Warning: Invalid argument supplied for foreach() in /home/xxx/public&#95;html/administrator/components/com&#95;hikashop/views/order/tmpl/show&#95;address.php on line 88  Please can you help?")*

Thanks - the errors are gone now.

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

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

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