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

#   Error happens when Chracteristics are added to a product

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

3 years 9 months ago [\#349582](#349582) by [mighty](/forum/user/73395-mighty "View mighty's Profile")  *[Error happens when Chracteristics are added to a product](/forum/3-bug-report/905960-error-happens-when-chracteristics-are-added-to-a-product#349582 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1 -- Browser(s) name and version -- : Chrome 109.0.5414.119 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;characteristics&quot; on null JROOT/components/com&#95;hikashop/views/product/tmpl/show&#95;block&#95;characteristic.php:23  If any characteristic is added, either the ones that were created with the demo content, or a new one created afterwards, the same error appears on that specific product. If the product has no chracteristics added, no error is present.")* was created by *[mighty](/forum/user/73395-mighty "View mighty's Profile")*

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.8
-- PHP version -- : 8.1
-- Browser(s) name and version -- : Chrome 109.0.5414.119
-- Error-message(debug-mod must be tuned on) -- : Attempt to modify property "characteristics" on null
JROOT/components/com_hikashop/views/product/tmpl/show_block_characteristic.php:23

If any characteristic is added, either the ones that were created with the demo content, or a new one created afterwards, the same error appears on that specific product.
If the product has no chracteristics added, no error is present.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDU5NjAtZXJyb3ItaGFwcGVucy13aGVuLWNocmFjdGVyaXN0aWNzLWFyZS1hZGRlZC10by1hLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) 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: 86593
- Thank you received: 14334
-
-

3 years 9 months ago [\#349587](#349587) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error happens when Chracteristics are added to a product](/forum/3-bug-report/905960-error-happens-when-chracteristics-are-added-to-a-product#349587 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1 -- Browser(s) name and version -- : Chrome 109.0.5414.119 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;characteristics&quot; on null JROOT/components/com&#95;hikashop/views/product/tmpl/show&#95;block&#95;characteristic.php:23  If any characteristic is added, either the ones that were created with the demo content, or a new one created afterwards, the same error appears on that specific product. If the product has no chracteristics added, no error is present.")*

Hi,

I suppose you added the characteristic to the product but didn't add any variant to the product yet. So the product is in an "in-between" state leading to that error.

Change the line:
if(empty($this-&gt;element-&gt;characteristics))
to:
if(empty($this-&gt;element-&gt;characteristics) &#124;&#124; empty($this-&gt;element-&gt;main-&gt;characteristics))
in the file /components/com_hikashop/views/product/tmpl/show_block_characteristic.php and it should avoid the error.
But you'll still have to add variants to your product.

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

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