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

#   \[gone for now\]Notice: Undefined offset:1 field.php

##

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

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 5 months ago -  13 years 5 months ago [\#106863](#106863) by [SG](/forum/user/12204-sg "View SG's Profile")  *[\[gone for now\]Notice: Undefined offset:1 field.php](/forum/3-bug-report/83085-gone-for-now-notice-undefined-offset-1-field-php#106863 "EDIT: I can't explain it but the error is gone (for now?) I disabled a custom field of the order type and refreshed the page and the error was gone and now I re-enabled this custom field and it still...")* was created by *[SG](/forum/user/12204-sg "View SG's Profile")*

EDIT: I can't explain it but the error is gone (for now?) I disabled a custom field of the order type and refreshed the page and the error was gone and now I re-enabled this custom field and it still works. Maybe it was cached??? I'll let you know when it comes back. Feel free if these two lines has a meaning to you?

Hi,

I'm getting the following message when I go to the checkout page:
Code:

Notice: Undefined offset: 1 in /home/xxxx/public_html/site/administrator/components/com_hikashop/classes/field.php on line 842 Notice: Undefined offset: 2 in /home/xxxx/public_html/site/administrator/components/com_hikashop/classes/field.php on line 846

**These are the two lines in field.php:**
Line 842: $val = $line\[1\];
Line 846: $disable = $line\[2\];

This is the part of the code of field.php: Code:

function explodeValues($values){ $allValues = explode("\n",$values); $returnedValues = array(); foreach($allValues as $id =&gt; $oneVal){ $line = explode('::',trim($oneVal)); $var = $line[0]; $val = $line[1]; if(count($line)==2){ $disable = '0'; }else{ $disable = $line[2]; } if(strlen($val)&gt;0){ $obj = new stdClass(); $obj-&gt;value = $val; $obj-&gt;disabled = $disable; $returnedValues[$var] = $obj; } } return $returnedValues; }

Thanks.

Last edit: 13 years 5 months ago by [SG](/forum/user/12204-sg "View SG's Profile").

The following user(s) said Thank You: [Eliot](/forum/user/1824-eliot "View Eliot's Profile")

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago -  13 years 5 months ago [\#106883](#106883) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[\[gone for now\]Notice: Undefined offset:1 field.php](/forum/3-bug-report/83085-gone-for-now-notice-undefined-offset-1-field-php#106883 "EDIT: I can't explain it but the error is gone (for now?) I disabled a custom field of the order type and refreshed the page and the error was gone and now I re-enabled this custom field and it still...")*

Thanks for the report, we'll take a look at this ![:)](/media/kunena/emoticons/3.png ":)")
Don't hesitate to tell us if this is happening again.

EDIT: I indeed think this is because of the refresh. It's not really disturbing bu we'll add some check to avoid this in the future.

Last edit: 13 years 5 months ago by [Eliot](/forum/user/1824-eliot "View Eliot's Profile").

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

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