• Resolved Braunson

    (@braunson)


    Updated just recently from the previous version, front-end widget throws a foreach loop pointing to /plugins/devbuddy-twitter-feed/lib/class.twitter-feed-base.php on line 572

    To fix this I simply threw in an if statement for $ftc around the foreach loop.

    Tho a cache issue you may want to look into and resolved. I have ‘don’t cache’ set in my settings for the plugin FYI.

    https://wordpress.org/plugins/devbuddy-twitter-feed/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author EjiOsigwe

    (@ejiosigwe)

    Cheers Braunson,

    I’ve taken a look and I can see the issue indeed. I’ll be applying an update soon.

    Thanks!

    Easy way to fix it, temporarily, is to include (array), so line 572 becomes:

    foreach ( (array)$ftc as $cache ) {

    Plugin Author EjiOsigwe

    (@ejiosigwe)

    Really appreciate the feedback, guys.

    Apologies for the delay but I’ve now released an update with a fix for the bug. I took your approach Braunson.

    Again, thanks all!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Foreach loop error’ is closed to new replies.