Error: Attempt to assign property "product_id" on int

  • Posts: 4
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
3 months 3 weeks ago #362411

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.2
-- Browser(s) name and version -- : Safari
-- Error-message(debug-mod must be tuned on) -- : 0 Attempt to assign property "product_id" on int

Hello Support,

When creating a new product in the backend I received the error message:

0 Attempt to assign property "product_id" on int

I changed the type of the ID in the Hikashop product table from INT to VarChar but it made no difference so I'm lost.

Please advise a solution.

best wishes,
Z


Tolerence costs nothing.
Intolerance is intolerable!

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
3 months 3 weeks ago #362413

Ok, I changed the PHP version to 8.3 and it seems to have resolved the issue and the new product is being saved now.


Tolerence costs nothing.
Intolerance is intolerable!

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
3 months 3 weeks ago #362422

Hi,

I don't think that changing the version of PHP from 8.2 to 8.3 will prevent this error.
It's probably just a coincidence that the version change "fixed" the problem.
When you get an error like that, the first thing to do is to activate the "debug" setting of the Joomla configuration page and then reproduce the issue. You'll then get the complete error message, which will allow us to understand what's going on and provide a solution. With the abbreviated error message, we don't have enough information to know what's going on and thus we can't provide a solution.

Please Log in or Create an account to join the conversation.

Time to create page: 0.035 seconds
Powered by Kunena Forum