• Resolved TT1

    (@tt1)


    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/

Viewing 15 replies - 1 through 15 (of 24 total)
  • Just updated…and see the same error.

    Me too 🙂

    Me too. 🙁

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

    Here also.. Everytime I publish a post.

    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] );
    		} */

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

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

    Plugin Contributor Joost de Valk

    (@joostdevalk)

    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.

    Plugin Contributor Joost de Valk

    (@joostdevalk)

    Version 1.3.4.1 should be there.

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

    I am having the same error as well.

    Franck Scipion

    (@ingresosalcuadrado)

    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

    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!

    The update fixed the error for me during Post update.

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

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Error message: Unknown modifier’ is closed to new replies.