0

I keep getting the code below above all my webpages and Dashboard.

It is repeating and I don’t know what to do. Any help please would be greatly appreciated thank you.

nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 218

Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /home4/wwwcosta/public_html/wp-includes/class-wp.php on line 219

  • i help you and send solution – vikrant zilpe Dec 4 '18 at 15:13
  • i add answer please try – vikrant zilpe Dec 4 '18 at 15:14
  • Try disabling and enabling plugins one by one. Does this error disappear after disabling a certain plugin? – kero Dec 4 '18 at 15:26
  • Did you try this solution wordpress.org/support/topic/…? – Gufran Hasan Dec 4 '18 at 15:36
  • Try this if ( preg_match("#^".preg_quote($match,'#'),"#", $request_match, $matches) || Note also remove the extra ) before || – vikrant zilpe Dec 4 '18 at 15:37
1

It seems that the permalinks structure has an issue. Please follow below steps to fix it.

Step 1: if possible, back up your WP installation folder. Step 2: Temporary disable all the plugins (important step)

step 3: in the WordPress admin dashboard, go to Settings -> Permalinks

step 4: remember or note down somewhere what you have in the custom permalinks

step 5: temporarily enable (switch to) the default permalink:

step 6: verify the website is working now (not everything, because the plugins are disabled, but the preg_match error should be gone)

step 7: switch back to the custom permalinks setting you had at step 3

step 8: enable back all the plugins

The error will be gone.

Reference link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.