WordPress.org

Forums

[resolved] [closed] Theme Invalid argument supplied for foreach (6 posts)

  1. bekamancer
    Member
    Posted 2 years ago #

    Hi,

    This error message is displayed at the bottom of all pages and does not go away.

    Warning: Invalid argument supplied for foreach() in /data/20/2/10/7/2988007/user/3315608/htdocs/store/wp-content/themes/mystile/functions/admin-functions.php on line 3193

    I have tried numerous amounts of themes and all but the default ones have this error.

    I made sure all folders and files have all permissions enabled, and I even deleted WordPress of my server entirely and installed the previous 3.4 version of WordPress.

    By googling the error there seems to be quite a few sites that also have this error

    Any thoughts?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    I have tried numerous amounts of themes

    Downloaded from where?

  3. bekamancer
    Member
    Posted 2 years ago #

    Mostly from woothemes.com

    I never had this problem before, and I used their themes before as well.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    It could just be a bad lot of themes. Try downloading a couple from http://wordpress.org/extend/themes for testing purposes. http://wordpress.org/extend/themes/responsive is excellent if you want your site to work well on mobiles. http://wordpress.org/extend/themes/suffusion is incredibly customisable. But any recently updated theme should be fine. I think your error will disappear with any of these themes.

  5. bekamancer
    Member
    Posted 2 years ago #

    Thanks!

    It was a problem with the framework, it was outdated so it needed to be manually updated.

  6. jeanne38654
    Member
    Posted 2 years ago #

    So, how did you manually update it? I need to do the same. Thanks!

    ***Nevermind - I figured it out. For anyone else reading, just go to your dashboard > mystile theme > update framework.

    That easy!

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic