Title: Error log &#8211; twitter-feed
Last modified: August 31, 2016

---

# Error log – twitter-feed

 *  [James Hunt](https://wordpress.org/support/users/bonkerz/)
 * (@bonkerz)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-log-twitter-feed/)
 * 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://wordpress.org/plugins/devbuddy-twitter-feed/](https://wordpress.org/plugins/devbuddy-twitter-feed/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [yk11](https://wordpress.org/support/users/yk11/)
 * (@yk11)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-log-twitter-feed/#post-7191107)
 * 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](https://wordpress.org/support/users/bonkerz/)
 * (@bonkerz)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-log-twitter-feed/#post-7191122)
 * 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](https://wordpress.org/support/users/bonkerz/)
 * (@bonkerz)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-log-twitter-feed/#post-7191227)
 * 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
 *  [yk11](https://wordpress.org/support/users/yk11/)
 * (@yk11)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-log-twitter-feed/#post-8913729)
 * 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 9 years, 3 months ago by [yk11](https://wordpress.org/support/users/yk11/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error log – twitter-feed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/devbuddy-twitter-feed.svg)
 * [DevBuddy Twitter Feed](https://wordpress.org/plugins/devbuddy-twitter-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/devbuddy-twitter-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/devbuddy-twitter-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/devbuddy-twitter-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/devbuddy-twitter-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/devbuddy-twitter-feed/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [yk11](https://wordpress.org/support/users/yk11/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-log-twitter-feed/#post-8913729)
 * Status: not resolved