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

#   Undefined offsets Notice between finish and payment pages

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

6 years 7 months ago [\#317808](#317808) by [webbits](/forum/user/25621-webbits "View webbits's Profile")  *[Undefined offsets Notice between finish and payment pages](/forum/14-hikaserial/899618-undefined-offsets-notice-between-finish-and-payment-pages#317808 "-- url of the page with the problem -- :   soulmatebrewing.com  -- HikaShop version -- : 4.2.3 -- HikaSerial version -- : 3.1.0 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : FireFox 72.0.2 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined offset: 4 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Notice: Undefined offset: 5 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Notice: Undefined offset: 7 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Orders processed as expected. And Serials are working. However when buyer clicks finish a white page with Undefined defined offset notice appears for 2 seconds before going to payment page; using Hikashop Square 1.0.0. The payment processes as expected.  Undefined offset: 4, 5 and 7 - components/com&#95;hikaserial/classes/product.php on line 206  The notice is viewed by the public. Is there a way hide the notice or resolve the cause of the notice?  Thank you.")* was created by *[webbits](/forum/user/25621-webbits "View webbits's Profile")*

-- url of the page with the problem -- : [ soulmatebrewing.com](https://soulmatebrewing.com)
-- HikaShop version -- : 4.2.3
-- HikaSerial version -- : 3.1.0
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.3.16
-- Browser(s) name and version -- : FireFox 72.0.2
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined offset: 4 in home/customer/www/xxx/public_html/administrator/components/com_hikaserial/classes/product.php on line 206

Notice: Undefined offset: 5 in home/customer/www/xxx/public_html/administrator/components/com_hikaserial/classes/product.php on line 206

Notice: Undefined offset: 7 in home/customer/www/xxx/public_html/administrator/components/com_hikaserial/classes/product.php on line 206

Orders processed as expected. And Serials are working. However when buyer clicks finish a white page with Undefined defined offset notice appears for 2 seconds before going to payment page; using Hikashop Square 1.0.0. The payment processes as expected.

Undefined offset: 4, 5 and 7 -  [ ![undefinedoffsetnotice.jpg](/forum/attachment/49132) ](/forum/attachment/49132 "...fsetnotice.jpg")

components/com_hikaserial/classes/product.php on line 206

The notice is viewed by the public. Is there a way hide the notice or resolve the cause of the notice?

Thank you.

- [ ![undefinedoffsetnotice.jpg](/forum/attachment/49132) ](/forum/attachment/49132 "...fsetnotice.jpg") [ ](/forum/attachment/49132?download=1 "...fsetnotice.jpg")

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

6 years 7 months ago [\#317809](#317809) by [webbits](/forum/user/25621-webbits "View webbits's Profile")  Replied by *[webbits](/forum/user/25621-webbits "View webbits's Profile")* on topic *[Undefined offsets Notice between finish and payment pages](/forum/14-hikaserial/899618-undefined-offsets-notice-between-finish-and-payment-pages#317809 "-- url of the page with the problem -- :   soulmatebrewing.com  -- HikaShop version -- : 4.2.3 -- HikaSerial version -- : 3.1.0 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : FireFox 72.0.2 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined offset: 4 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Notice: Undefined offset: 5 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Notice: Undefined offset: 7 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Orders processed as expected. And Serials are working. However when buyer clicks finish a white page with Undefined defined offset notice appears for 2 seconds before going to payment page; using Hikashop Square 1.0.0. The payment processes as expected.  Undefined offset: 4, 5 and 7 - components/com&#95;hikaserial/classes/product.php on line 206  The notice is viewed by the public. Is there a way hide the notice or resolve the cause of the notice?  Thank you.")*

Correction: the notice appears after submitting credit card information and the thank you page.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

6 years 7 months ago [\#317826](#317826) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Undefined offsets Notice between finish and payment pages](/forum/14-hikaserial/899618-undefined-offsets-notice-between-finish-and-payment-pages#317826 "-- url of the page with the problem -- :   soulmatebrewing.com  -- HikaShop version -- : 4.2.3 -- HikaSerial version -- : 3.1.0 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : FireFox 72.0.2 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined offset: 4 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Notice: Undefined offset: 5 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Notice: Undefined offset: 7 in home/customer/www/xxx/public&#95;html/administrator/components/com&#95;hikaserial/classes/product.php on line 206  Orders processed as expected. And Serials are working. However when buyer clicks finish a white page with Undefined defined offset notice appears for 2 seconds before going to payment page; using Hikashop Square 1.0.0. The payment processes as expected.  Undefined offset: 4, 5 and 7 - components/com&#95;hikaserial/classes/product.php on line 206  The notice is viewed by the public. Is there a way hide the notice or resolve the cause of the notice?  Thank you.")*

Hello,

In the file with the error, please replace the line 206 from : Code:

if(!isset($products_qty[ (int)$product_id ]) &amp;&amp; $products_qty[ (int)$product_id ] !== 0)

To Code:

if(!isset($products_qty[ (int)$product_id ]) &#124;&#124; $products_qty[ (int)$product_id ] !== 0)

It will remove the notice.

Please note that displaying PHP errors (notices, warning) in a production website is considered as security issues since your users/customer can see elements that they shouldn't.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

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