PHP Parse error: syntax error, unexpected
-
Hello World!
I just noticed WP reporting an error (I even tried to reinstall plugin, but that did not help):
# wp --allow-root [ANALYST] Cannot resolve any supported SDK PHP Parse error: syntax error, unexpected '[' in /var/www/html/X/wp-content/plugins/sucuri-scanner/src/settings-posthack.php on line 167 Parse error: syntax error, unexpected '[' in /var/www/html/X/wp-content/plugins/sucuri-scanner/src/settings-posthack.php on line 167 # rm -rf ./wp-content/plugins/sucuri-scanner/ # wp --allow-root plugin install sucuri-scanner [ANALYST] Cannot resolve any supported SDK Installing Sucuri Security – Auditing, Malware Scanner and Security Hardening (1.8.23) Downloading installation package from https://downloads.wordpress.org/plugin/sucuri-scanner.1.8.23.zip... Using cached file '/root/.wp-cli/cache/plugin/sucuri-scanner-1.8.23.zip'... Unpacking the package... Installing the plugin... Plugin installed successfully. Success: Installed 1 of 1 plugins. # wp --allow-root [ANALYST] Cannot resolve any supported SDK PHP Parse error: syntax error, unexpected '[' in /var/www/html/X/wp-content/plugins/sucuri-scanner/src/settings-posthack.php on line 167 Parse error: syntax error, unexpected '[' in /var/www/html/X/wp-content/plugins/sucuri-scanner/src/settings-posthack.php on line 167 #Please advise.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Parse error: syntax error, unexpected’ is closed to new replies.