php 7.0+ compatibility
-
Does not appear to be compatible with PHP versions higher than 7.0
After googling a bit this appears to be a problem with PHP 7.1:
it is PHP Design.
Changed in PHP 7.1.0:The empty index operator (e.g. $str[] = $x) is not supported for strings
anymore, and throws a fatal error instead of silently converting to array.So that means that you need to say that it is an array $myString = array();
Prior to PHP 7.1.0 , PHP converted a [] to array() silently, and now not anymore———————
Error Details
=============
An error of type E_ERROR was caused in line 376 of the file /home/httpd/vhosts/mybemidji.com/httpdocs/wp-content/plugins/client-dash/client-dash.php. Error message: Uncaught Error: [] operator not supported for strings in /home/httpd/vhosts/mybemidji.com/httpdocs/wp-content/plugins/client-dash/client-dash.php:376
Stack trace:
#0 /home/httpd/vhosts/mybemidji.com/httpdocs/wp-includes/class-wp-hook.php(290): ClientDash->action_links(‘
——————–
- The topic ‘php 7.0+ compatibility’ is closed to new replies.