[Plugin: WP to Twitter] Bug & Fix (2 posts)

  1. alanhogan
    Posted 6 years ago #

    I was getting the following error *every time I saved a post*, but edited this plugin’s code to fix it.

    Warning: str_split() [function.str-split]: The length of each segment must be greater than zero in /homepages/13/d92881413/htdocs/wegoats/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 378
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/13/d92881413/htdocs/wegoats/wp-content/plugins/wp-to-twitter/wp-to-twitter.php:378) in /homepages/13/d92881413/htdocs/wegoats/wp-includes/pluggable.php on line 865

    Fix: I inserted @ before str_split on line 378.

    There are more elegant fixes, but this one works.


  2. Joe Dolson
    Posted 6 years ago #

    I've instituted that change, among others, in the latest release -- although I did actually switch the function used, as well, for other reasons.

Topic Closed

This topic has been closed to new replies.

About this Topic