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

#   Strange error on some products with characteristics

##

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

2 years 7 months ago [\#359851](#359851) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Strange error on some products with characteristics](/forum/26-product-category-display/907921-strange-error-on-some-products-with-characteristics#359851 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;values&quot; on null  Hello. I m facing an error Attempt to modify property &quot;values&quot; on null  on some products with characteristics On J3 they are working fine, the issue is only on J4")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.3
-- PHP version -- : 8.1
-- Error-message(debug-mod must be tuned on) -- : Attempt to modify property "values" on null

Hello.
I m facing an error Attempt to modify property "values" on null Code:

Call stack # Function Location 1 () JROOT/administrator/components/com_hikashop/classes/product.php:2187 2 hikashopProductClass-&gt;addCharacteristics() JROOT/components/com_hikashop/views/product/view.html.php:1674 3 ProductViewProduct-&gt;show() JROOT/components/com_hikashop/views/product/view.html.php:28 4 ProductViewProduct-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:660 5 Joomla\CMS\MVC\Controller\BaseController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2577 6 hikashopController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2290 7 hikashopController-&gt;show() JROOT/libraries/src/MVC/Controller/BaseController.php:693 8 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2555 9 hikashopController-&gt;execute() JROOT/components/com_hikashop/hikashop.php:88 10 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 11 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73 12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361 13 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208 14 Joomla\CMS\Application\SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:249 15 Joomla\CMS\Application\SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:293 16 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/includes/app.php:61 17 require_once() JROOT/index.php:32

on some products with characteristics
On J3 they are working fine, the issue is only on J4

This message contains confidential information

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MjEtc3RyYW5nZS1lcnJvci1vbi1zb21lLXByb2R1Y3RzLXdpdGgtY2hhcmFjdGVyaXN0aWNzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

2 years 7 months ago [\#359855](#359855) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Strange error on some products with characteristics](/forum/26-product-category-display/907921-strange-error-on-some-products-with-characteristics#359855 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;values&quot; on null  Hello. I m facing an error Attempt to modify property &quot;values&quot; on null  on some products with characteristics On J3 they are working fine, the issue is only on J4")*

Hi,

I think it's because the characteristics linked to the main product are (at least one) different from the characteristics linked to one or several variants of the product. This should normally not happen.
And because PHP 8.1 is stricter than previous versions, you get a fatal error instead of a warning which was hidden.
I suppose you must be using an older version of PHP on your J3 website.
Add the code: Code:

if(!isset($element-&gt;characteristics[$characteristic-&gt;characteristic_parent_id])) { continue; }

before the line of the error (2187) in /administrator/components/com_hikashop/classes/product.php and it should avoid generating the error.

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

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

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

2 years 7 months ago [\#359892](#359892) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Strange error on some products with characteristics](/forum/26-product-category-display/907921-strange-error-on-some-products-with-characteristics#359892 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;values&quot; on null  Hello. I m facing an error Attempt to modify property &quot;values&quot; on null  on some products with characteristics On J3 they are working fine, the issue is only on J4")*

Sorry to spam this topic Nicola.
But I wonder if there is a way I discover what is causing the rerrects to http. When I add the rule to htaccess or/ and joomla backend (entrire site https) , I get error for too many redirections.
Like a plugin or something is causing it.
Do you have an idea why ?

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MjEtc3RyYW5nZS1lcnJvci1vbi1zb21lLXByb2R1Y3RzLXdpdGgtY2hhcmFjdGVyaXN0aWNzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

2 years 7 months ago [\#359893](#359893) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Strange error on some products with characteristics](/forum/26-product-category-display/907921-strange-error-on-some-products-with-characteristics#359893 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;values&quot; on null  Hello. I m facing an error Attempt to modify property &quot;values&quot; on null  on some products with characteristics On J3 they are working fine, the issue is only on J4")*

Hi,

Normally, that's made by a rule in the htaccess.
So that's where I would first look.

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

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

2 years 7 months ago [\#359895](#359895) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Strange error on some products with characteristics](/forum/26-product-category-display/907921-strange-error-on-some-products-with-characteristics#359895 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;values&quot; on null  Hello. I m facing an error Attempt to modify property &quot;values&quot; on null  on some products with characteristics On J3 they are working fine, the issue is only on J4")*

ok, I found it. It was hikashop no ssl plugin. It is the first time I see this plugin. I diasbled it and it is now ok.
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MjEtc3RyYW5nZS1lcnJvci1vbi1zb21lLXByb2R1Y3RzLXdpdGgtY2hhcmFjdGVyaXN0aWNzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

2 years 7 months ago [\#359896](#359896) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Strange error on some products with characteristics](/forum/26-product-category-display/907921-strange-error-on-some-products-with-characteristics#359896 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1 -- Error-message(debug-mod must be tuned on) -- : Attempt to modify property &quot;values&quot; on null  Hello. I m facing an error Attempt to modify property &quot;values&quot; on null  on some products with characteristics On J3 they are working fine, the issue is only on J4")*

Hi,

Ah yes. That's true HikaShop has this plugin to be able to remove the https outside the checkout.
That's something that was asked by some years ago.
Now, websites normally always use https, so it should normally not be used.

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

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

[](#top)
