- Posts: 14
- Thank you received: 1
Error: Attempt to assign property "product_id" on int
- The Wheaten Terrier
-
Topic Author
- Offline
- I'm trying my best!
Less
More
2 years 3 months ago #362411
by The Wheaten Terrier
Tolerence costs nothing.
Intolerance is intolerable!
-- 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
-- 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.
- The Wheaten Terrier
-
Topic Author
- Offline
- I'm trying my best!
Less
More
- Posts: 14
- Thank you received: 1
2 years 3 months ago #362413
by The Wheaten Terrier
Tolerence costs nothing.
Intolerance is intolerable!
Replied by The Wheaten Terrier on topic Error: Attempt to assign property "product_id" on int
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.
2 years 3 months ago #362422
by nicolas
Replied by nicolas on topic Error: Attempt to assign property "product_id" on int
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.
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.070 seconds