WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Error message: Unknown modifier (25 posts)

  1. TT1
    Member
    Posted 1 year ago #

    I've just updated to version 1.3.4 and when I want to preview or save a draft of a post I get this error message:

    Warning: preg_match() [function.preg-match]: Unknown modifier ''' in /var/sites/public_html/content/plugins/wordpress-seo/admin/class-metabox.php on line 1435

    Warning: Cannot modify header information - headers already sent by (output started at /var/sites/public_html/content/plugins/wordpress-seo/admin/class-metabox.php:1435) in /var/sites/public_html/wp-includes/pluggable.php on line 876

    How do I fix this?

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

  2. Tesur Rajan
    Member
    Posted 1 year ago #

    Just updated...and see the same error.

  3. indigogirl
    Member
    Posted 1 year ago #

    Me too :)

  4. boah123
    Member
    Posted 1 year ago #

    Me too. :(

    Warning: preg_match() [function.preg-match]: Unknown modifier ''' in [..]\wp-content\plugins\wordpress-seo\admin\class-metabox.php on line 1435

  5. Martijnchel
    Member
    Posted 1 year ago #

    Here also.. Everytime I publish a post.

  6. Weboxeur
    Member
    Posted 1 year ago #

    Edit: The regex's isn't correctly formated. I tweeted Yoast about this, in meanwhile you can fix this by commenting the lines 1434 to 1437 in plugins/wordpress-seo/admin/class-metabox.php.

    /* foreach ( $matches[0] as $img ) {
    			if ( preg_match( '|alt=("|\')(.*?)\1|', $img, $alt ) )
    				$imgs['alts'][] = $this->strtolower_utf8( $alt[2] );
    		} */
  7. Hazlo
    Member
    Posted 1 year ago #

    Same here. I was just sending a post concerning the same issue meanwhile this one came out. Sorry for duplicating!!

  8. Guga Franke
    Member
    Posted 1 year ago #

    Same problem here... How can i fix it? =\

  9. Joost de Valk
    Member
    Plugin Author

    Posted 1 year ago #

    Aargh, found:

    changing:

    if ( preg_match( '|alt=("|\')(.*?)\1|', $img, $alt ) )

    on that line to:

    if ( preg_match( '/alt=("|\')(.*?)\1/', $img, $alt ) )

    fixes it.

    Pushing an update.

  10. Joost de Valk
    Member
    Plugin Author

    Posted 1 year ago #

    Version 1.3.4.1 should be there.

  11. isolde100
    Member
    Posted 1 year ago #

    I got the same message today. Good to see others have the same problem.

  12. jasonsaulnier
    Member
    Posted 1 year ago #

    I am having the same error as well.

  13. Franck Scipion
    Member
    Posted 1 year ago #

    It does not fix the issue for me:

    Warning: Cannot modify header information - headers already sent by (output started at ****/wp-content/plugins/wordpress-seo/admin/class-metabox.php:1435) in ****/wp-includes/pluggable.php on line 876

  14. negue.c
    Member
    Posted 1 year ago #

    Upgrade 1.3.4.1 solved this "unknown modifier & cannot modify header info" for me. I just checked the source code of a post I published (using this WP SEO upgrade) and it's all good. Thank you Joost!

  15. Webmistress89
    Member
    Posted 1 year ago #

    The update fixed the error for me during Post update.

  16. isolde100
    Member
    Posted 1 year ago #

    I downloaded this latest update and it fixed my problems. So disregard my previous message above in this thread.

  17. Franck Scipion
    Member
    Posted 1 year ago #

    Solved Thanks!

  18. Hazlo
    Member
    Posted 1 year ago #

    Thanks Joost for fixing the issue so quick. Thanks for all your work as well. And a nice and happy Xmas too!

  19. Guga Franke
    Member
    Posted 1 year ago #

    The update fixed the error. Thanks Joost. ;)

  20. Jijo Jose
    Member
    Posted 1 year ago #

    Came here with same error..... update solved the issue. Thank You.

  21. TT1
    Member
    Posted 1 year ago #

    Update fixed it. Thanks!

  22. hafee
    Member
    Posted 1 year ago #

    Warning: Cannot modify header information - headers already sent by (output started at ******\wp-content\themes\BlogCars-1-1 - Copy\functions.php:1) in ******blog-wordpress\wp-includes\pluggable.php on line 876

    I am having the latest version 3.5.1

  23. hafee
    Member
    Posted 1 year ago #

    It's a blank space in function.php.
    I done it.

  24. Linda Lee
    Member
    Posted 1 year ago #

    I am having that happen now after I updated.
    It is a blank space?

  25. Linda Lee
    Member
    Posted 1 year ago #

    Warning: preg_match() [function.preg-match]: Unknown modifier
    error

    Just found my solution on another thread that is closed.
    I had a / in my focus keyword.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.