PHP Error
-
Hi Guys,
i’m running the most recent version of the plugin. With (manual) minified settings enabled, I see the following PHP warning in my PHP error logs:
Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 0 in /home/users/topogftp/topografieindeklas.nl/wp-content/plugins/w3-total-cache/lib/W3/Plugin/Minify.php on line 1178
That specific line is the following, part of the function below:
if ($expr != '' && preg_match('~' . $expr . '~i', $_SERVER['REQUEST_URI'])) {
function check_request_uri() { $auto_reject_uri = array( 'wp-login', 'wp-register' ); foreach ($auto_reject_uri as $uri) { if (strstr($_SERVER['REQUEST_URI'], $uri) !== false) { return false; } } $reject_uri = $this->_config->get_array('minify.reject.uri'); $reject_uri = array_map('w3_parse_path', $reject_uri); foreach ($reject_uri as $expr) { $expr = trim($expr); if ($expr != '' && preg_match('~' . $expr . '~i', $_SERVER['REQUEST_URI'])) { return false; } } w3_require_once(W3TC_LIB_W3_DIR . '/Request.php'); if (W3_Request::get_string('wp_customize')) return false; return true; }
I know this warning has been here for over a year. Any thoughts on a bug-fix for this prey-match, or any other solution/thoughts?
- The topic ‘PHP Error’ is closed to new replies.