Reputation: 11
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
Reputation: 10341
Looks like some problem in your Contact Form 7 plugin.
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.
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.
If there is an update available for the plugin, upgrade it, then re-activate it and retest it.
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
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