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

#   Characteristic Error

##

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#159338](#159338) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#159338 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")* was created by *[icronje](/forum/user/1483-icronje "View icronje's Profile")*

-- url of the page with the problem -- : [ www.lesswatts.co.za](http://www.lesswatts.co.za)
-- HikaShop version -- : Business 2.3.1
-- Joomla version -- : 2.5.9
-- PHP version -- : 5.4.16
-- Browser(s) name and version -- : Google Chrom
-- Error-message(debug-mod must be tuned on) -- :
When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home/&lt;sitehome&gt;/public_html/administrator/components/com_hikashop/classes/product.php on line 666.

On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home/&lt;sitehome&gt;/public_html/administrator/components/com_hikashop/classes/product.php on line 1336.

Could you please assist with this.

Regards

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

12 years 5 months ago [\#159380](#159380) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#159380 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

Can you please re-download HikaShop 2.3.1 ?
About the error in the line 666, I don't understand why you got this message regarding the call of the Joomla Array helper which assures that the variable is a good array (so can be used as argument for the foreach).
About the error on line 1336, I don't have the the same code in my local package, there is not object used only a "bracket" so I can't debug if the line you have is different than mine.

If the problem persist, can you please indicate the content of the line which generate you the error ?

Regards,

---

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

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#159393](#159393) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#159393 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

I downloaded the package again, and manually copied the various files into the relevant directories. The problem persists. Included is the "products.php" file that is referred to in the error.

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#159449](#159449) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#159449 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi Jerome,

Any feedback on this yet?

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY4ODM3LWNoYXJhY3RlcmlzdGljLWVycm9yP3N0YXJ0PTAmdG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#159455](#159455) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#159455 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

These are just small warnings, not real errors. You can remove them by just setting the "error reporting" option of the Joomla configuration to "none" (and it is recommended to leave that option like that for live websites, for security reasons).

The warnings will be removed for next version of HikaShop, but you can use HikaShop with them, it's not a problem and as I said, you can hide them if you want.

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#160201](#160201) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160201 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Ok, thanks. Here is now a new problem seemingly related to the problem we had with the characteristics. I decided to not use characteristics for now so that we can at least get the shop up and running.

The option "Display a contact button on the product page" is enabled, and it displays correctly. Yet, when I want to send a message using this button, the captcha is not displayed and when I try to submit the message, I get an error saying that the Captcha was incorrect.

Subsequint to this I enabled the debug mode to see if there were any errors, but now the entire site fails with the following error: 500 - JDatabaseMySQL::query: 1146 - Table 'lesswhkd_jo151.j16_hikashop_variant' doesn't exist SQL=SELECT variant_product_id FROM j16_hikashop_variant WHERE variant_product_id IN (11,426,430,432,434,435,449,451,525,526,528,529,530,531,532,533,534,602,603,604)

Regards

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#160221](#160221) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160221 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

Progress update: I found that the J16_hikashop_variant table was missing for some reason. I recreated it according to the table definitions under the programming section, and everything is now working again.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY4ODM3LWNoYXJhY3RlcmlzdGljLWVycm9yP3N0YXJ0PTAmdG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#160252](#160252) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160252 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

Yes, that table should be there, otherwise HikaShop won't work properly.

For the captcha, do you still have the problem ? If the captcha is not displayed but that you get the error, it means that the recaptcha plugin is enabled and configured to display on the contact form, but that the contact form view has been customized with an override and thus the plugin doesn't find the correct HTML on the contact form to add the captcha HTML, but still checks that the captcha was entered before allowing the contact request.

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#160276](#160276) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160276 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi Nicolas,

The Captcha is still problematic, but maybe we should move the discussion to another thread since this is regarding the characteristics.

As for the characteristics, it is working now, but whenever I save a product, another complete set of characteristics gets added - see the attached screenshot.

Regards

- [ ![he30ce6a.png](/forum/attachment/17894) ](/forum/attachment/17894 "he30ce6a.png") [ ](/forum/attachment/17894?download=1 "he30ce6a.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY4ODM3LWNoYXJhY3RlcmlzdGljLWVycm9yP3N0YXJ0PTAmdG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#160278](#160278) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160278 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

It's probably related to the fact that the variant table was missing.
Try again with the debug mode of the Joomla configuration turned on. Do you get some error ?
If you try with a new product, do you also have the problem ?

Yes, for the captcha, you should start a new thread. And pleas check the different points I raised about the issue (modification of the view, settings of the plugin).

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

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#160389](#160389) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160389 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

When I turn Debug mode on I only get warning such as these: Strict Standards: Only variables should be assigned by reference in /home/lesswhkd/public_html/plugins/system/lpd/lpd.php on line 118.

The problem still occurs with a new product.

Regards

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#160826](#160826) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160826 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

Still having trouble with the variants being added every time a product is saved. Any ideas what could be causing this?

Regards

Last edit: 12 years 5 months ago by [icronje](/forum/user/1483-icronje "View icronje's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY4ODM3LWNoYXJhY3RlcmlzdGljLWVycm9yP3N0YXJ0PTAmdG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#160884](#160884) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160884 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

We're not able to reproduce the problem. Please provide a backend access so that we can look at your settings and the issue.

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#160955](#160955) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#160955 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Nicolas,

I sent you the details in a PM.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY4ODM3LWNoYXJhY3RlcmlzdGljLWVycm9yP3N0YXJ0PTAmdG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#161059](#161059) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#161059 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

I got the access. However, I'm not able to access the HikaShop configuration nor the joomla configuration. Could you make it a super admin in order to be able to heck on that ?

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#161206](#161206) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#161206 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

I granted you the access as requested.

Regards

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#161412](#161412) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#161412 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

I provided you the access as requested. Any feedback on this yet?

Regards

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#161466](#161466) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#161466 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Is there anybody here. I paid for this product and now there is no support!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY4ODM3LWNoYXJhY3RlcmlzdGljLWVycm9yP3N0YXJ0PTAmdG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#161472](#161472) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#161472 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi,

Please understand that our support team doesn't work on the weekend.
We're humans and answering as fast as we possibly can.

I checked your website backend queries and from what I can see, the problem is that the primary key on the columns variant_characteristic_id and variant_product_id has been removed from the table hikashop_variant in your database.
Because of that, the "replace" query that is done on that table duplicates the entries instead of replacing them when a product data is saved.
So it's not a bug but apparently that table has been tampered with in your database.

The best will be to drop the hikashop_variant table completely from the database via your phpmyadmin and add it back with that query that you can execute via your phpmyadmin too: Code:

CREATE TABLE IF NOT EXISTS &#96;j16_hikashop_variant&#96; ( &#96;variant_characteristic_id&#96; int(10) unsigned NOT NULL, &#96;variant_product_id&#96; int(10) unsigned NOT NULL, &#96;ordering&#96; int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (&#96;variant_characteristic_id&#96;,&#96;variant_product_id&#96;), KEY &#96;variant_product_id&#96; (&#96;variant_product_id&#96;) ) ENGINE=MyISAM

Then, you should not have that problem when adding characteristics to your products.

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

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

Less More

- Posts: 52
- Thank you received: 0
-
-

12 years 5 months ago [\#161518](#161518) by [icronje](/forum/user/1483-icronje "View icronje's Profile")  Replied by *[icronje](/forum/user/1483-icronje "View icronje's Profile")* on topic *[Characteristic Error](/forum/32-content-creation/868837-characteristic-error#161518 "-- url of the page with the problem -- :   www.lesswatts.co.za  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.9 -- PHP version -- : 5.4.16 -- Browser(s) name and version -- : Google Chrom -- Error-message(debug-mod must be tuned on) -- : When trying to save the product after adding the characteristic I get the following message: Warning: Invalid argument supplied for foreach() in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 666.  On the front end I get the following error when opening the product that gave the problem: Warning: Creating default object from empty value in /home//public&#95;html/administrator/components/com&#95;hikashop/classes/product.php on line 1336.  Could you please assist with this.  Regards")*

Hi Nicolas,

Thanks for the reply. I do understand the constraints that there might be, but you need to realise that you are working with an international audience covering various time zones and that the reply on which I did not receive feedback was posted before the weekend (local time).

In any event. I will look at the table and follow your instructions. I will feedback soon.

Regards

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

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