Title: Litespeed Parse error: syntax error, unexpected ‘)’
Last modified: September 23, 2025

---

# Litespeed Parse error: syntax error, unexpected ‘)’

 *  Resolved [Ulrich Viridis](https://wordpress.org/support/users/ulrichviridis/)
 * (@ulrichviridis)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/)
 * After an automatic update (since it happened without user intervention), our 
   website refuses to open.
 * I get following error message: “Parse error: syntax error, unexpected ‘)’ in /
   home/aikidoca/public_html/cabn/wp-content/plugins/litespeed-cache/src/admin-display.
   cls.php on line 361”
 * Of course, I looked up on the internet for this error. I also looked into this
   file ‘admin-display.cls.php’. On line 361 I find the ‘)’, but the ‘)’ should 
   really be there. Thus the real error is somewhere else.
 * Does anybody have a clue? Should we just wait until the error is fixed with a
   newer update? The automatic update seems to have happened on 11th September 2025(
   time stamp of the files).
 * Thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flitespeed-parse-error-syntax-error-unexpected-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18653331)
 * [@ulrichviridis](https://wordpress.org/support/users/ulrichviridis/) do you have
   access to ftp? OR server panel?
   Delete `litespeed-cache` from `public_html/wp-
   content/plugins`and try reinstall it
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18654539)
 * [@ulrichviridis](https://wordpress.org/support/users/ulrichviridis/) any updates
   here?
 *  Thread Starter [Ulrich Viridis](https://wordpress.org/support/users/ulrichviridis/)
 * (@ulrichviridis)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18657329)
 * I have acces to cPanel.
 * I moved `/litespeed-cache` from `/public_html/wp-content/plugins` into trash.
 * Now I get following error message: **Fatal error**: Composer detected issues 
   in your platform: Your Composer dependencies require a PHP version “>= 7.4.0”.
   You are running 7.2.34. in **/home/aikidoca/public_html/cabn/wp-content/plugins/
   wordpress-seo/vendor/composer/platform_check.php** on line **24**
 * It didn’t really solve the issue. Should I try to upgrade PHP from within cPanel?
 * [Edit] I upgraded the website to PHP 8.3, but no change in the error message.
    -  This reply was modified 8 months ago by [Ulrich Viridis](https://wordpress.org/support/users/ulrichviridis/).
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18657656)
 * [@ulrichviridis](https://wordpress.org/support/users/ulrichviridis/) can you 
   confirm PHP 8.3 is loaded?
   Add a file `info.php` witch content: `<?php phpinfo();`
   run the file and see which PHP version is loaded.
 *  Thread Starter [Ulrich Viridis](https://wordpress.org/support/users/ulrichviridis/)
 * (@ulrichviridis)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18659029)
 * I upgraded to PHP 7.4 and 8.4. Now the error messages are following.
 * There comes a login screen, wich does nothing.
 * Deprecated: YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container::
   __construct(): Implicitly marking parameter $parameterBag as nullable is deprecated,
   the explicit nullable type must be used instead in /home/aikidoca/public_html/
   cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/
   Container.php on line 60
 * Notice: Function wp_deregister_script was called incorrectly. Do not deregister
   the jquery script in the administration area. To target the front-end theme, 
   use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information.(
   This message was added in version 3.6.0.) in /home/aikidoca/public_html/cabn/
   wp-includes/functions.php on line 6121
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/aikidoca/public_html/cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/
   symfony/dependency-injection/Container.php:60) in /home/aikidoca/public_html/
   cabn/wp-login.php on line 515
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/aikidoca/public_html/cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/
   symfony/dependency-injection/Container.php:60) in /home/aikidoca/public_html/
   cabn/wp-login.php on line 531
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/aikidoca/public_html/cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/
   symfony/dependency-injection/Container.php:60) in /home/aikidoca/public_html/
   cabn/wp-includes/functions.php on line 7144
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/aikidoca/public_html/cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/
   symfony/dependency-injection/Container.php:60) in /home/aikidoca/public_html/
   cabn/wp-includes/functions.php on line 7168
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/aikidoca/public_html/cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/
   symfony/dependency-injection/Container.php:60) in /home/aikidoca/public_html/
   cabn/wp-includes/pluggable.php on line 1108
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/aikidoca/public_html/cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/
   symfony/dependency-injection/Container.php:60) in /home/aikidoca/public_html/
   cabn/wp-includes/pluggable.php on line 1109
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/aikidoca/public_html/cabn/wp-content/plugins/wordpress-seo/vendor_prefixed/
   symfony/dependency-injection/Container.php:60) in /home/aikidoca/public_html/
   cabn/wp-includes/pluggable.php on line 1110
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18660393)
 * [@ulrichviridis](https://wordpress.org/support/users/ulrichviridis/) 
   I think
   updating was a good decision.The errors seems to come from Yoast plugin.You can
   contact them about the errors, but you can also hide them by disabling [WP Debug](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#example-wp-config-php-for-debugging)
   Being warning or deprecation notice will not create errors as far as it works
   as expected
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18660740)
 * [@ulrichviridis](https://wordpress.org/support/users/ulrichviridis/) We narrowed
   it down and the fix will come in next version of LSC.
   Thank you for reporting
   the issue 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

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

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [litetim](https://wordpress.org/support/users/litetim/)
 * Last activity: [8 months ago](https://wordpress.org/support/topic/litespeed-parse-error-syntax-error-unexpected-2/#post-18660740)
 * Status: resolved