WordPress.org

Forums

WordPress SEO by Yoast
Can't publish or save draft new posts (4 posts)

  1. nikhilbhuktar
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. jrf
    Member
    Posted 1 year ago #

    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

  3. nikhilbhuktar
    Member
    Posted 1 year ago #

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

  4. jrf
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic