Toan Le Van
Toan Le Van

Reputation: 11

wordpress error when upgrade php

i have an error when my client upgrade php version to 5.3.24

Warning: preg_replace() [function.preg-replace]: Compilation failed: unknown option bit(s) set at offset -1 in /home/internet/public_html/wp-includes/shortcodes.php on line 258 [contact-form-7 404 "Not Found"]

please help me to fix it.

thanks for read.

Upvotes: 1

Views: 416

Answers (2)

Luke Stevenson
Luke Stevenson

Reputation: 10341

Looks like some problem in your Contact Form 7 plugin.

1: Go into the WP Admin Interface > Plugins and Disable Contact Form 7

What we're doing here is trying to isolate the problem. Seeing whether it is an issue with the Contact Form 7 Plugin, or something else.

2: Reload the Affected Page

If the Error is no longer present, the problem is inside the Plugin. (Go to #3.) If the Error is still present, the problem is not inside the Plugin, if you could update the error message in your question to the new message seen, that would help.

3: Update the Plugin

If there is an update available for the plugin, upgrade it, then re-activate it and retest it.

4: If it's still a problem

The error message is suggesting that a parameter being handled for a preg_replace() call is incorrect. It would be a case of looking closely at each instance where the Contact Form 7 shortcode is used, as well as the function which is associated with that shortcode, to try and see what is going wrong.

Upvotes: 3

Troy Holdreith
Troy Holdreith

Reputation: 21

I think this means that you lost that contact form and still using a shortcode for it.

Did they make any other changes?

Sounds like that contact-form-7 plugin is searching for a form that doesn't exist. Make sure you spelled and capitalized everything correctly inside the shortcode.

Upvotes: 0

Related Questions