- Posts: 214
- Thank you received: 21
Problem editing product under PHP8
-- Joomla version -- : 3.10.2
-- PHP version -- : 8.0.10
Hello,
I have a problem with PHP8 8.0.10 when editing a product in backend.
url : /administrator/index.php?option=com_hikashop&ctrl=product&task=edit&cid[]=1390
An error has occurred
0 Cannot access offset of type string on string
Back to the control panel
Template Isis, same problem whatever the product.
The error disappears under PHP 7.4
All other backend links seem to work normally.with PHP 8 sa far as I can see, creating a new product is OK
Patrick
Please Log in or Create an account to join the conversation.
Can you reproduce the issue after activating the "error reporting" and "debug mode" of the Joomla configuration page ?
That will allow you to get the full error message along with the callstack.
That would help us better understand what's going on in order to provide a fix.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
That's an issue with the HikaMarket plugin "vendorgroupafterpuchase".
You need to edit the plugin and replace the line
We will add that patch in the HIkaMarket package too.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Thank you!
Regards
Please Log in or Create an account to join the conversation.
J 3.10.4
PHP 8.0.13
In the backend I can see the list of orders but get an error once I click on one.
An error has occurred.
0 Cannot access offset of type string on string
Can you see whats going wrong from the attachments?
(Note: this error only happens on PHP 8.0.13. If I roll back to PHP 7.4.26 orders can be viewed. )
Cheers
Rich
Please Log in or Create an account to join the conversation.
The error seems to be linked to a custom field of the type "custom text".
Add the code:
Let us know how it goes so that we can include this on our end.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 2
- Thank you received: 0
Errors from inspect element is attached to the thread.
I am able to fix this by going back to 7.4.x
Joomla 3.10.11
Hikashop is 4.7
Hikamarket 4.1.1
PHP 7.4.x
Error in PHP 8.X
Please Log in or Create an account to join the conversation.
First, please activate the "debug" setting of the Joomla configuration and try again.
You'll get an error message at the bottom of that error page which will explain where the problem is. Please provide the full error message there and we should be able to tell you what to do.
Looking at the screenshot of the working product edit page, it seems you're using JCE for your HTML editor, and since it happens only on the product edit page and not on the listing, it might be that you didn't update JCE and the version you have is not compatible with PHP8. But I can't say for sure without the error message.
Please Log in or Create an account to join the conversation.
- Posts: 2
- Thank you received: 0
Although, I took your suggestion on JCE and upgraded it to the latest one JCE Pro 2.9.32 and then upgraded PHP to latest one PHP 8.2.0 and now it is working like a charm without any issues.
Also, What else I noticed is that JCE plugin was not working fine if I upgrade the PHP prior to the JCP upgrade.
This is the issue I was trying to resolve. Thank you very much.
Thanks
Dharmit
Please Log in or Create an account to join the conversation.