WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Deprecated: Function split() (3 posts)

  1. Soprano
    Member
    Posted 2 years ago #

    WordPress Version: 3.4
    Wordpress SEO version: 1.2.3

    Deprecated: Function split() is deprecated in /home/public_html/l*****.com/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php on line 306
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/l*****.com/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php:306) in /home/public_html/l*****.com/wp-includes/pluggable.php on line 881

    I'm getting this error everytime I save a draft (or sometimes preview) in my post since I updated to 3.4.

    Any ideas?

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

  2. tnoguchi
    Member
    Posted 2 years ago #

    I encountered the same error, basically the PHP function "split" has been deprecated in PHP vers. 5.3.

    To fix this error you'll have to edit the above file "wpseo-functions.php"

    Find line 306 and replace split with explode:

    //$clean_slug_array = array_diff ( split( " ", $clean_slug ), wpseo_stopwords() );
    
      $clean_slug_array = array_diff ( explode( " ", $clean_slug ), wpseo_stopwords() );
  3. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Ah will fix this for the next release, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.