Plesk Obsidian
kb: technical
ext: wptk
Symptoms
-
Plesk hosted website shows the following error:
CONFIG_TEXT: Fatal error: Array and string offset access syntax with curly braces is no longer supported
- Once a page in WebPresence builder is password protected, it can no longer be accessed.
-
PHP handler version 7.4 or higher is selected under Domains > example.com > PHP Settings > PHP version.
-
The site code uses array and string offset access sytax with curly braces which is deprecated since PHP 7.4, e.g.
$var{$idx}
.
Cause
Website code using syntax deprecated since PHP 7.4.
Resolution
- Change the website PHP handler version to 7.3 or lower.
- Fix the site code syntax to met newer PHP versions requirements, e.g.: Use
$var[$idx]
instead of$var{$idx}
.
Comments
0 comments
Please sign in to leave a comment.