Title: PHP Parse error: syntax error, unexpected
Last modified: February 12, 2020

---

# PHP Parse error: syntax error, unexpected

 *  Resolved [a1exus](https://wordpress.org/support/users/a1exus/)
 * (@a1exus)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-7/)
 * 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)

 *  [imgersonr](https://wordpress.org/support/users/imgersonr/)
 * (@imgersonr)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-7/#post-12447957)
 * Version 1.8.24 is out and should fix this issue. 🙂

Viewing 1 replies (of 1 total)

The topic ‘PHP Parse error: syntax error, unexpected’ is closed to new replies.

 * ![](https://ps.w.org/sucuri-scanner/assets/icon-256x256.png?rev=2875755)
 * [Sucuri Security - Auditing, Malware Scanner and Security Hardening](https://wordpress.org/plugins/sucuri-scanner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sucuri-scanner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sucuri-scanner/)
 * [Active Topics](https://wordpress.org/support/plugin/sucuri-scanner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sucuri-scanner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sucuri-scanner/reviews/)

## Tags

 * [php parse error](https://wordpress.org/support/topic-tag/php-parse-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [imgersonr](https://wordpress.org/support/users/imgersonr/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-7/#post-12447957)
 * Status: resolved