• GoDaddy Community
  • Managed WordPress Hosting
  • Managed WordPress Hosting

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution

    PHP warning leading to White Screen

    Hi I'm getting the following error from my error logs:

     

    PHP Warning: Invalid argument supplied for foreach() in /home/**************/public_html/au/wp-cron.php on line 117

     

    When typing my domain in www.N1CK.com.au it goes to a White Screen, which is partially loading data.

     

    From what i've read this error is to do with scheduling of updates for plug ins.

     

    I have checked all the plugins, they are all updated.

     

    This is the only site on my GoDaddy account that is not working.

     

    I have opened up wp-cron.php to see if it lists any plugins, I can't see any.  The error code above is the only information I have.

     

    Thanks

    1 ACCEPTED SOLUTION

    @TheONEex 

     

    Actually at looking at your source code - It looks like there is a open script tag but no closing script at the bottom of your header

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community

    View solution in original post

    6 REPLIES 6
    Super User IV

    @TheONEex 

     

    In your wp-config.php can you set debug mode to true - the issue may not be in the cron file itself but with a Plugin using the cron file

     

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community

    @TheONEex 

     

    Actually at looking at your source code - It looks like there is a open script tag but no closing script at the bottom of your header

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community

    View solution in original post

    Thanks you.

     

    @PL281 

    Where do I put the closing script tag? between which lines?

     

    Appreciate your assistance!

    @PL281 

     

    Debug = Set to true

    @TheONEex 

     

    I'd have to see where it is coming from - if I had to guess your theme has a custom JavaScript window and that is where the script isn't complete - you can actually put debug back to false - the issue here is that the HTML is broken so it isn't rendering correctly

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community

    @PL281 

    Thank You for your help!

     

    It was the schema I had inserted in the custom schema section!  

    THANK YOU!