Can someone please help about this error I am seeing in web server error.log:
(mod_fastcgi.c.2701) FastCGI-stderr: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/plugins/tiny_mce/tiny_mce_gzip.php on line 146
PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/plugins/tiny_mce/tiny_mce_gzip.php on line 146
- and here is line 146 of tiny_mce_gzip.php (starts at "if"):
// Check if the server and client supports gzip compression
if ($this->settings['compress'] && (in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('gzencode') && !ini_get('zlib.output_compression')) {
header("Content-Encoding: " . (in_array('x-gzip', $encodings) ? "x-gzip" : "gzip"));
$cacheFile = $this->settings["cache_dir"] . "/" . $hash . ".gz";
$supportsGzip = true;
} else
$cacheFile = $this->settings["cache_dir"] . "/" . $hash . ".js";
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT");
header("Cache-Control: public, max-age=" . $expiresOffset);
Any suggestions?
Regards,
Mayki