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

  1. Soprano
    Posted 4 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?


  2. tnoguchi
    Posted 4 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
    Plugin Author

    Posted 4 years ago #

    Ah will fix this for the next release, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic


No tags yet.