Theme activation throws errors
-
Hi,
i created a theme using underscores as a base theme and everything was fine until today when I started getting errors on the ‘All Posts’ and ‘All Pages’ pages (only those two pages)
Error on the page show above the right column above all listed posts and pages and churns out the same errors about a dozen times:
Warning: preg_match(): Unknown modifier ‘d’ {…}/wp-includes/class-wp.php on line 231
Warning: preg_match(): Unknown modifier ‘d’ {…}/wp-includes/class-wp.php on line 232Which points to:
if ( preg_match("#^$match#", $request_match, $matches) || preg_match("#^$match#", urldecode($request_match), $matches) ) {At the time I was installing and configuring some plugins:
Adminimize
Client DashSo assuming it might be the plugins I deactivated and uninstalled them but the error still showed.
I then assumed it maybe corrupt data in the db so restored the db to a known working backup but still nothing.
I then tried activating a different theme and again nothing the error persists.Now all that said I decided to do an isolated install:
I installed the theme on another server thinking it may be a server issue and noticed the issue has to be with my theme, as it starts when I activate it but even if I deactivate it and go back to the original default theme the error stays..Any ideas?
Currently taken everything offline and will be starting a fresh install in the morning on the original server but any pointers to what may be causing this error and how to fix will help me a lot as I’m now looking at having to pull older versions of the theme from git and test each until I find at which point it breaks 🙁
The topic ‘Theme activation throws errors’ is closed to new replies.