Invalid Argument in Error.Log - by TeeDev

This topic has 2 replies, 2 voices, and was last updated 8 years, 10 months ago ago by Eva Kemp

  • Avatar: TeeDev
    TeeDev
    Participant
    June 10, 2015 at 15:30

    Hi there

    My error.log file has recently started to show multiple entries of the following:

    Invalid argument supplied for foreach() in /home/user/public_html/wp-content/themes/woopress-main/framework/theme-functions.php on line 4864

    It is this line:

        foreach ($tweets as $tweet) {
            $html .= '<li class="lastItem firstItem"><div class="media"><i class="pull-left fa fa-twitter"></i><div class="media-body">' . $tweet['text'] . '</div></div></li>';
        }
        $html .= '</ul>';
        $html = etheme_tweet_linkify($html);
        return $html;
    }

    Screenshot: https://www.dropbox.com/s/u338pnpl6y4l79g/Screen%20Shot%202015-06-10%20at%2015.26.52.jpg?dl=0

    Any ideas what is causing this?

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    June 10, 2015 at 18:45

    Hello,

    What theme version are you using?
    Please provide us with FTP and wp-admin panel credentials in private content.

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.