Skip Navigation

[Resolved] Plugin cannot be used with PHP 8.0

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Jamal 3 years, 12 months ago.

Assisted by: Jamal.

Author
Posts
#2167275

I am trying to:

Link to a page where the issue can be seen:

I expected to see:
Usual behaviour like in PHP 7.4

Instead, I got:

[Sun Sep 12 18:06:24.410696 2021] [proxy_fcgi:error] [pid 6563:tid 140539659716352] [client 114.119.148.174:32566] AH01071: Got error 'PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/610066.cloudwaysapps.com/xpaeqgnjxz/public_html/dynamodogs/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/loader.php on line 184'

#2167803

Hello and thank you for contacting Toolset support.

Toolset is currently not yet compatible with PHP8. We have ongoing work to assure this compatibility but it is still in progress.
Check our requirements page, we did not announce the compatibility to PHP8 yet https://toolset.com/toolset-requirements/
Please keep using PHP 7.4.

I hope this answers your question. Let me know if you have any questions.

#2170437

The presenting problem is that all you need to do is replace curly brackets with square ones.

E.g.
change
$array{$x}
to
$array[$x]

Please consider trying to do that sometime in the near future. PHP 8.0 runs faster and that may help the user experience of using your plugin.

#2171707

Thank you for your feedback. Our developers are working on the PHP8 compatibility. And we'll make sure to announce it to our users once it is ready.