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

#   I get several errors after adding order

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 2 months ago [\#23655](#23655) by [aldolopezr](/forum/user/3651-aldolopezr "View aldolopezr's Profile")  *[I get several errors after adding order](/forum/3-bug-report/23655-i-get-several-errors-after-adding-order#23655 "these are the following errors:  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Notice: Undefined property: stdClass::$methods in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: Invalid argument supplied for foreach() in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  I do not understand it right, if you require more information please ask and thanks for helping")* was created by *[aldolopezr](/forum/user/3651-aldolopezr "View aldolopezr's Profile")*

these are the following errors:

Warning: end() expects parameter 1 to be array, null given in C:\wamp\www\joomla1.6\administrator\components\com_hikashop\classes\cart.php on line 920

Notice: Undefined property: stdClass::$methods in C:\wamp\www\joomla1.6\plugins\hikashopshipping\ups\ups.php on line 92

Warning: Invalid argument supplied for foreach() in C:\wamp\www\joomla1.6\plugins\hikashopshipping\ups\ups.php on line 92

Warning: end() expects parameter 1 to be array, null given in C:\wamp\www\joomla1.6\administrator\components\com_hikashop\classes\cart.php on line 920

Warning: end() expects parameter 1 to be array, null given in C:\wamp\www\joomla1.6\administrator\components\com_hikashop\classes\cart.php on line 920

I do not understand it right, if you require more information please ask and thanks for helping

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzY1NS1pLWdldC1zZXZlcmFsLWVycm9ycy1hZnRlci1hZGRpbmctb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

15 years 2 months ago [\#23666](#23666) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: I get several errors after adding order](/forum/3-bug-report/23655-i-get-several-errors-after-adding-order#23666 "these are the following errors:  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Notice: Undefined property: stdClass::$methods in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: Invalid argument supplied for foreach() in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  I do not understand it right, if you require more information please ask and thanks for helping")*

For the error on line 920, you can change the line: Code:

$element-&gt;characteristics[$k]-&gt;default=end($mainCharacteristics[$element-&gt;product_id][$k]);

by: Code:

if(!empty($mainCharacteristics[$element-&gt;product_id][$k])) $element-&gt;characteristics[$k]-&gt;default=end($mainCharacteristics[$element-&gt;product_id][$k]);

in the file administrator\components\com_hikashop\classes\cart.php

For the error on line 92, you can change the code: Code:

foreach($rate-&gt;shipping_params-&gt;methods as $method){ if($method=='TDCB' &#124;&#124; $method=='TDA' &#124;&#124; $method=='TDO' &#124;&#124; $method=='308' &#124;&#124; $method=='309' &#124;&#124; $method=='310'){ $this-&gt;freight=true; } else{ $this-&gt;classicMethod=true; } }

by the code: Code:

if(!empty($rate-&gt;shipping_params-&gt;methods)){ foreach($rate-&gt;shipping_params-&gt;methods as $method){ if($method=='TDCB' &#124;&#124; $method=='TDA' &#124;&#124; $method=='TDO' &#124;&#124; $method=='308' &#124;&#124; $method=='309' &#124;&#124; $method=='310'){ $this-&gt;freight=true; } else{ $this-&gt;classicMethod=true; } } }

in the file plugins\hikashopshipping\ups\ups.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzY1NS1pLWdldC1zZXZlcmFsLWVycm9ycy1hZnRlci1hZGRpbmctb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 2 months ago [\#23673](#23673) by [aldolopezr](/forum/user/3651-aldolopezr "View aldolopezr's Profile")  Replied by *[aldolopezr](/forum/user/3651-aldolopezr "View aldolopezr's Profile")* on topic *[Re: I get several errors after adding order](/forum/3-bug-report/23655-i-get-several-errors-after-adding-order#23673 "these are the following errors:  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Notice: Undefined property: stdClass::$methods in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: Invalid argument supplied for foreach() in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  I do not understand it right, if you require more information please ask and thanks for helping")*

and proceed as you suggested q but I still get the same errors

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzY1NS1pLWdldC1zZXZlcmFsLWVycm9ycy1hZnRlci1hZGRpbmctb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

15 years 2 months ago [\#23675](#23675) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: I get several errors after adding order](/forum/3-bug-report/23655-i-get-several-errors-after-adding-order#23675 "these are the following errors:  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Notice: Undefined property: stdClass::$methods in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: Invalid argument supplied for foreach() in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  I do not understand it right, if you require more information please ask and thanks for helping")*

That should solve these problems. Are you sure that you did the modifications on the correct website ?
Not that these problems occur because the characteristic(s) of your product are apparently not configured properly and your ups plugin is not configured.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzY1NS1pLWdldC1zZXZlcmFsLWVycm9ycy1hZnRlci1hZGRpbmctb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 2 months ago [\#23706](#23706) by [aldolopezr](/forum/user/3651-aldolopezr "View aldolopezr's Profile")  Replied by *[aldolopezr](/forum/user/3651-aldolopezr "View aldolopezr's Profile")* on topic *[Re: I get several errors after adding order](/forum/3-bug-report/23655-i-get-several-errors-after-adding-order#23706 "these are the following errors:  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Notice: Undefined property: stdClass::$methods in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: Invalid argument supplied for foreach() in C:&#92;wamp&#92;www&#92;joomla1.6&#92;plugins&#92;hikashopshipping&#92;ups&#92;ups.php on line 92  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  Warning: end() expects parameter 1 to be array, null given in C:&#92;wamp&#92;www&#92;joomla1.6&#92;administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;cart.php on line 920  I do not understand it right, if you require more information please ask and thanks for helping")*

already solved the problem, what happened was that by modifying the file does not save and make copies for tube but is ready to modify only that one of the ProCut I get this default value of I one of the Characteristics of That Is not available as a product variant. Please check the Characteristics and variants of that product but I think it would have to check the settings ... thank you very much for the support

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzY1NS1pLWdldC1zZXZlcmFsLWVycm9ycy1hZnRlci1hZGRpbmctb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.059 seconds

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