PHP 8 error
-
I have Google Language Translator v6.0.18 running on a multisite network. Some of my subsites are seeing PHP fatals errors on the home page. My server is running PHP 8 so I suspect it’s just a compatibility issue. This is the error from the error log.
PHP Fatal error: Uncaught TypeError: array_values(): Argument #1 ($array) must be of type array, null given in /wp-content/plugins/google-language-translator/google-language-translator.php:268I was able to patch the code by changing that line to the following:
$comma_separated = empty( $items ) ? $items : implode(",",array_values($items));
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP 8 error’ is closed to new replies.