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

[ad_1]

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

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer