Parse error: syntax error, unexpected ‘[‘
-
After plugin upgrade i got this error:
Parse error: syntax error, unexpected '[' in /path-to-site/wp-content/plugins/advanced-access-manager/Application/Core/Object/Menu.php on line 132
the lines 131-136 is:if (count($filtered)) { //make sure that the parent points to the first sub $parent[2] = array_values($filtered)[0][2]; } return $filtered; }
In $parent[2] = array_values($filtered)[0][2]; any mistakes maybe?
OS CentOS 6.9, PHP 5.3.3
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Parse error: syntax error, unexpected ‘[‘’ is closed to new replies.