• Hello, today a message appears twice on the top of a page in my website.
    The message is: Warning: Invalid argument supplied for foreach() in /web/htdocs/www.antoniopanzuto.it/home/wp-content/themes/make/inc/builder/setup.php on line 95

    When I try to edit the page, the page seems not to exist at all, no content is shown.
    Please note that this page was not edited for a long time. I don’t put any new plug-in the website.

    What should I do?
    Thank you in advance.

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

Viewing 1 replies (of 1 total)
  • Hey alelaz,

    It looks like your theme “Make” is trying to reference the file (setup.php) and it cannot be found. Upon inspection of your pages, your path to your theme structure looks like this
    antoniopanzuto.it/wp-content/themes/make/inc/…
    and not
    antoniopanzuto.it/home/wp-content/themes/make/inc/…

    Solution 1
    Double check the php files from the themes and ensure that /home/ is not present. I’ll be inclined to look at the functions.php file in your child theme folder. My next bet would be to check the page template for the Misura-per-misura page. Remove the extra path if found.

    Solution 2
    Contact the theme authors.

    Solution 3
    You could remove the warnings from the live site by doing the following if nothing is broken. Note that the warnings are technically still present, but just not showing to the public. Proceed with caution if you’re not familiar with PHP.
    Find wp-config.php in the root folder (FTP, File Manager etc) and change the following line
    define( 'WP_DEBUG', false );
    to this
    define( 'WP_DEBUG', true );

    Good luck.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning message on a page’ is closed to new replies.