Warning: Invalid argument supplied for foreach() error?

  • Author
    Posts
  • #41458

    So, I get this error for every single file in the Tempera directory.

    Warning: Invalid argument supplied for foreach() in /home/tamhub2/brooksidecottages.net/wp-content/themes/tempera/admin/customizer.php on line 114

    However, of course, the /admin/”xxxxx” on line “xxx” is always different. It is going across my entire webpage.

    Anyone have a fix?

    Edit: just tried 3 other CC themes and all of them give me the same error.

    #41506
    Zed
    Cryout Creations mastermind

    This may be caused by a limitation or security lock in your PHP configuration.

    Line 114 in Tempera tries to read data from a variable defined at the beginning of the same file and shouldn’t fail.

    Which PHP version is your server running?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #41901

    Sorry, I did not see your reply. It is currently hosted with PHP 5.6

    #41970
    Zed
    Cryout Creations mastermind

    Could you delete and reinstall the theme (make a settings export first)?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #42012

    how exactly do I make a settings export? Thru ftp?

    #42159
    Zed
    Cryout Creations mastermind

    You can export the theme’s settings from the theme’s settings page (Appearance > Tempera Settings).

    If you’re familiar with FTP you could also create a backup of the theme files (in case you’ve made any changes to these).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #42626

    I tried doing that, no luck. Still getting the same errors

    #42703
    Zed
    Cryout Creations mastermind

    Did you try temporarily disabling all your active plugins to rule out any interference from them?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Warning: Invalid argument supplied for foreach() error?’ is closed to new replies.