• Hey,
    Great plugin!! This is by far the best one Twitter plugin I have found, really well done.

    I’ve noticed that some errors appear in my logs occasionally – any idea of how to fix?

    PHP Warning: end() expects parameter 1 to be array, null given in /home/../public_html/wp-content/plugins/devbuddy-twitter-feed/lib/class.twitter-feed.php on line 379

    PHP Warning: Invalid argument supplied for foreach() in /home/../public_html/wp-content/plugins/devbuddy-twitter-feed/lib/class.twitter-feed.php on line 383

    Any help would be great!

    thanks

    https://www.ads-software.com/plugins/devbuddy-twitter-feed/

Viewing 4 replies - 1 through 4 (of 4 total)
  • A temporary fix (until integrated into the plugin) is to change line 379 to this:
    if ( is_null($this->feed_data) || $this->feed_data === FALSE ) {

    Thread Starter James Hunt

    (@bonkerz)

    Thanks! At the moment this does not work for me.

    So to replace

    379 – $feed_end_tweet = end( $this->feed_data );

    with

    379 – if ( is_null($this->feed_data) || $this->feed_data === FALSE ) {

    That bracket does not get closed somewhere?

    Thread Starter James Hunt

    (@bonkerz)

    Still getting this error in my logs, the OCD in me really wants it fixed – anyone have a solution?

    [26-Jul-2016 11:59:45 UTC] PHP Warning: end() expects parameter 1 to be array, null given in /home/***/public_html/wp-content/plugins/devbuddy-twitter-feed/lib/class.twitter-feed.php on line 379

    Have you been able to resolve this?

    FYI, the full section code is (lines 362 to 365)

    // Retrieval was unsuccessful
     if ( is_null($this->feed_data) || $this->feed_data === FALSE ) {
         return FALSE;
     }
    • This reply was modified 7 years, 12 months ago by yk11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error log – twitter-feed’ is closed to new replies.