Closed leewillis77 closed 10 years ago
I couldn't reproduce this issue on my site.
If you're still having this, could you do me a favor and find out which rewrite rule is triggering that warning?
var_dump( $request_match );
The offending rewrite rule will be output just before the warning message you'll see on the screen.
Also I just found this: http://getshopped.org/forums/topic/warning-preg_match-function-preg-match-when-activating-wpec/
So it seems like something to do with WPEC core. We need to track this down anyhow.
I remember something about this. IIRC, it has to do with our permalinks or rewrite_rules_array filtering somewhere.
Also, this: http://fooninja.net/2010/10/09/php-warning-unrecognized-character/
It's probably due to outdated PCRE version, but in that forum thread I pasted above someone also tried upgrading their PCRE to the latest but still got that error.
Hi Gary,
I assume you wanted me to dump out $match, not $request_match. The rule it's throwing the warning on is:
(?page_id=4)/([0-9]+)/?$
This is on my main dev box which is a bang up-to-date Ubuntu box, so that should rule out out-dated software.
Could be related to: https://github.com/wp-e-commerce/WP-e-Commerce/issues/441 ?
I presume this has been resolved? If not, post to https://github.com/wp-e-commerce/WP-e-Commerce/issues/848
I got a bunch of the following warnings after activating following the instructions in the Wiki. The only difference is that I'm using WP 3.5.1, not 3.6-alpha?
My permalinks are set to "post name".
[07-Jun-2013 16:10:23 UTC] PHP Warning: preg_match(): Compilation failed: unrecognized character after (? or (?- at offset 3 in /home/webserver/wordpress/wp-includes/class-wp.php on line 204 [07-Jun-2013 16:10:23 UTC] PHP Stack trace: [07-Jun-2013 16:10:23 UTC] PHP 1. {main}() /home/webserver/wordpress/index.php:0 [07-Jun-2013 16:10:23 UTC] PHP 2. require() /home/webserver/wordpress/index.php:17 [07-Jun-2013 16:10:23 UTC] PHP 3. wp() /home/webserver/wordpress/wp-blog-header.php:14 [07-Jun-2013 16:10:23 UTC] PHP 4. WP->main() /home/webserver/wordpress/wp-includes/functions.php:779 [07-Jun-2013 16:10:23 UTC] PHP 5. WP->parse_request() /home/webserver/wordpress/wp-includes/class-wp.php:547 [07-Jun-2013 16:10:23 UTC] PHP 6. preg_match() /home/webserver/wordpress/wp-includes/class-wp.php:204