• Hello everyone, I’m using WordPress SEO by Yoast plugin on my blog. After the latest update of plugin, It’s generating following warning
    Warning: preg_match() [function.preg-match]: Unknown modifier ‘P’ in /home/content/24/11019924/html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1690
    Due to this I’m not able to save or publish any of the post untill I deactivated the plugin. Someone please help me to resolve this problem.

    https://www.ads-software.com/extend/plugins/wordpress-seo/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I’ll send a pull request to Yoast with the solution, hopefully it’ll make it into a next version of the plugin. In the mean time, you can solve it by changing line 1690 in file /wp-content/plugins/wordpress-seo/admin/class-metabox.php to:

    if ( !preg_match('%\b'.$job['keyword'].'\b%', $firstp) && !preg_match('%\b'.$job['keyword_folded'].'\b%', $firstp) ) {

    Smile,
    Juliette

    Thread Starter nikhilbhuktar

    (@nikhilbhuktar)

    Hello Juliette,
    Thank you very much for your help. But the problem seems to be resolved automatically.
    ??

    That might be because my fix was included in the latest version which has been released since ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't publish or save draft new posts’ is closed to new replies.