• I installed a paid theme that was working just fine and now when I log in it shows an error message continuously when I am trying to customize my home page and I believe is messing with other settings. The error message shows up as:

    Warning: Invalid argument supplied for foreach() in?/home/customer/www/travellingmunchie.com/public_html/wp-content/themes/isla/inc/custom-controls/custom-controls.php?on line?496

    I am brand new to setting up my own websites and have no idea where to go or what to do to fix this. I read up on it online and it said something about changing the foreach () but I do not have a clue how to get there. Someone please help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi, @travellingmunchie

    This error message indicates an issue with the foreach loop in the file custom-controls.php located in the Isla theme folder. This loop is likely attempting to iterate over an array or an object that is not valid.

    To troubleshoot this issue, you can take the following steps:

    1. Ensure that all the theme files have been uploaded correctly and that there are no missing or corrupted files.
    2. Check if any plugins have been updated or change made to the website that may have caused this issue.
    3. If you have access to your website’s FTP or File Manager, you can try to find the custom-controls.php file and make a backup copy of it. Then, you can attempt to edit the file and see if you can fix the error by identifying which array or object the loop is trying to iterate over and fixing it.
    4. If you don’t have access to the FTP or File Manager and you have a support ticket with the theme developer, you can contact them, and they may be able to help you.
    5. If none of the above works, you may consider rolling back to a previous working version of the website, disabling the theme, or trying a different theme.

    It is important to note that changing your website’s code can be dangerous and may result in a broken website if not done carefully.
    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Error message/ invalid argument for template custom controls’ is closed to new replies.