I am trying to:
upgrade php from 7.4 to 8.2 (or at least 8.1)
Link to a page where the issue can be seen: hidden link
I expected to see:
a working website
Instead, I got:
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/......./wp-content/plugins/toolset-blocks/backend/Models/ContentTemplate/UsageCondition.php:129
Please note that we rolled back to 7.4 so everything works fine. Thanks a lot for any input.
I understand that you rollback to previous PHP version.
But I would like to know what steps I will have to follow to see the issue with when I install the duplicator copy of your site on my local server?
Can you please send me duplicator copy of your site? Please follow the following doc that will help you to know how you can send us duplicator copy of your site:
- https://toolset.com/faq/provide-supporters-copy-site/
I have set the next reply to private which means only you and I have access to it.
In PHP 8 the issue shows up on all the pages which depend on Toolset custom fields.
==>
Can you please tell me what are those few pages where I can see the issue? Do you mean its edit custom field group page?
Pages like hidden link or hidden link are being affected (posts #44, #5767). I don't know if our template is returning null or empty value instead of an array which is giving trouble with Toolset:
e.g. Cannot access offset of type string on string in D:\wamp\www\client-dups\5\wp-content\plugins\toolset-blocks\backend\Models\ContentTemplate\UsageCondition.php:129
I found that you must have a test post created and for that you have added the conditional display for the content template.
***Please make sure to backup the "wp_options" table before making any changes.***
To fix issue - you will have to interact with the database. Please try to access your database access the "wp_options " table.
***Please make sure to backup the "wp_options" table before making any changes.***
- You should search for the option key "wpv_options":
- This is the original serialize array content value stored with the option key "wpv_options" which you can find in the table "wp_options ":