Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've just updated WordPress SEO to Version 1.3.4.2

When posting or updating a post I get this error.

Warning: preg_match() [function.preg-match]: No ending delimiter '/' found in /home/greewoo/public_html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1435

Warning: Cannot modify header information - headers already sent by (output started at /home/greewoo/public_html/wp-content/plugins/wordpress-seo/admin/class-metabox.php:1435) in /home/greewoo/public_html/wp-includes/pluggable.php on line 876
share|improve this question
    
Very questionably a WordPress question, by the way. See the faq. –  s_ha_dum Jan 7 '13 at 15:03
add comment

1 Answer 1

PHP's preg_* functions require the regex pattern to be wrapped in delimiters like '/[a-z]*/ or #[a-z]*#. The first error means that somewhere the last delimiter is missing, like this: '/[a-z]*. The error is on line 1435 of wp-content/plugins/wordpress-seo/admin/class-metabox.php. If you can't spot it edit your question to include the lines 1430 to 1440, or so, of that file.

share|improve this answer
    
Thanks @s_ha_dum. Yes, I modified the file admin/class-metabox.php, line 1435: old line : if ( preg_match( '/alt=("|\')(.*?)\1|', $img, $alt ) ) new line : if ( preg_match( '/alt=("|\')(.*?)\1/', $img, $alt ) ) it seems to work for me. –  palPalani Jan 7 '13 at 15:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.