Title: parse error in object-cache.php with plugin version 2.4.2
Last modified: June 29, 2023

---

# parse error in object-cache.php with plugin version 2.4.2

 *  Resolved [ccmawo](https://wordpress.org/support/users/ccmawo/)
 * (@ccmawo)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-object-cache-php-with-plugin-version-2-4-2/)
 * Hi, today morning I realized that my site is down.
   After a short evaluation it
   turned out that there is a parser error in the object-cache.php file, possibly
   introduced with an automated upgrade of the redis object cache plugin to version
   2.4.2:PHP Parse error: syntax error, unexpected ‘)’ in wp-content/object-cache.
   php on line 2935
 *     ```wp-block-code
       2930 $message .= '
   
       ' . sprintf( 
       2931 // translators: %1$s = Formatted object-cache.php file name, %2$s = Formatted wp-content directory name. 
       2932 __( 'To disable Redis, delete the %1$s file in the %2$s directory.', 'redis-cache' ), 
       2933 'object-cache.php', 
       2934 '/wp-content/', 
       2935 ) . "\n";
       ```
   
 * PHP Version: 7.2.24-0ubuntu0.18.04.17
   Plugin Version: 2.4.2
 * When I remove the comma in line 2934 the parse error is gone and the website 
   is working again.

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-object-cache-php-with-plugin-version-2-4-2/#post-16857122)
 * I’m going to look into this and push and update if needed!
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-object-cache-php-with-plugin-version-2-4-2/#post-16857143)
 * It’s a PHP 7.2 thing, I’ll push an update.
 *  Thread Starter [ccmawo](https://wordpress.org/support/users/ccmawo/)
 * (@ccmawo)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-object-cache-php-with-plugin-version-2-4-2/#post-16857229)
 * many thanks!
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-object-cache-php-with-plugin-version-2-4-2/#post-16857247)
 * Tagging v2.4.3 now this will resolve the issue. You may need to copy the `object-
   cache.php` from `redis-cache/includes` to your `wp-contents` directory.

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

The topic ‘parse error in object-cache.php with plugin version 2.4.2’ is closed 
to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/parse-error-in-object-cache-php-with-plugin-version-2-4-2/#post-16857247)
 * Status: resolved