• Hello,

    I use WordPress since several years.

    For the first time, and since just before updating my website to WordPress 5.7, my website has encountered errors type 503

    I have deactivated all the plugins and seen that my website is ok without any activated plugin.

    I have started to activate plugins one by one regarding the php debug log file.

    I have seen that some plugins generates PHP notices and more there’s more my website is down.

    PHP notices are often like:

    
    [04-Apr-2021 01:23:03 UTC] PHP Notice:  is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /home2/leol2108/public_html/wp-includes/functions.php on line 5313
    [04-Apr-2021 01:23:03 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /home2/leol2108/public_html/wp-includes/functions.php on line 5313
    [04-Apr-2021 03:22:25 UTC] PHP Notice:  is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /home2/leol2108/public_html/wp-includes/functions.php on line 5313
    [04-Apr-2021 03:22:25 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in .../wp-includes/functions.php on line 5313
    [04-Apr-2021 05:23:54 UTC] PHP Notice:  is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in .../wp-includes/functions.php on line 5313
    [04-Apr-2021 05:23:54 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in .../wp-includes/functions.php on line 5313
    [04-Apr-2021 06:11:34 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in .../wp-includes/class-wp-query.php on line 4196
    [04-Apr-2021 06:11:34 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in .../wp-includes/class-wp-query.php on line 4196
    

    For each plugin I use which generate php notices, I have started to send a message but is it really the solution???

    Regards,

    Olivier

    • This topic was modified 3 years, 11 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 2 replies - 1 through 2 (of 2 total)
  • You can typically ignore Notices.
    However, some things to go over :
    – make sure your plugins, WP theme and WP core are up to date
    – make sure your php version is up to date
    – change to a default WP theme and see if the Notice remains
    https://en-ca.www.ads-software.com/themes/twentytwenty/
    – check custom code in your theme functions.php file

    Thread Starter magicphotoevents

    (@magicphotoevents)

    Hello @corrinarusso,

    Thanks for your reply.

    I do not have any php notice with my theme and without any plugin.

    I have made a lot of tests starting by deactivate all plugins for activating them one by one regarding the php error log file.

    More I activate plugins more there’s php notices and more my website encounters errors type 503.

    I do not understand why the php notices have an impact on the website availability, but it is.

    I have checked the server resources when errors 503 occurs but there’s nothing to say on this side.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Notices & Errors type 503’ is closed to new replies.