Okay
  Public Ticket #3084448
Warning showing on Page (Invalid Argument)
Closed

Comments

  • Timothy started the conversation

    Hi there!

    We have recently moved the website to SiteGround hosting, and everything seemed to go smoothly. But as the client was adding new upcoming shows, we saw an error show up on the Shows page - this error: 

    • Warning: Invalid argument supplied for foreach() in /home/customer/www/gailgagejazz.com/public_html/wp-content/themes/chords/template-listing-events.php on line 126

    I'm not sure how to correct this, and I don't know much about PHP. 

    Thanks in advance!

    Tim

  •  522
    Vasilis replied

    Hi there,

    you will need to disable warning messages in production environments. You can either contact Siteground so they will disable all warnings and notices or you will need to follow this  guide https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/


    Let me know if you need additional help with this.