This topic has 7 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #143090
     talkhrm
    Participant

    Most of the time the site is experiencing err_empty_response, followed by 502 Bad Gateway error and finally 508 error or Resource limit error. This is happening after i have updated the theme. Kindly check.

    #143177
     Radu
    Moderator

    Please follow these steps to enable wp debug:

    •  Connect to your server by FTP
    • Look in root directory of your WordPress install and open wp-config.php
    • Search for define( ‘WP_DEBUG’, false ); and change FALSE value to TRUE
    COPY CODE
    define( 'WP_DEBUG', true );
    
    •   After this line add this:
    COPY CODE
    define( 'WP_DEBUG_LOG', true );
    

    WP_DEBUG_LOG is a companion to WP_DEBUG that causes all errors to also be saved to a debug.log log file inside the /wp-content/ directory. This is useful if you want to review all notices later or need to view notices generated off-screen (e.g. during an AJAX request or wp-cron run).

    Repeat the described actions and then check the debug.log file and let me know what error appears.

    If this is useless please try to deactivate additional plugins except Visual Composer, K-elements, BuddyPress, Paid memberships pro and revolution slider.

    After you have disabled the plugins try to see if the error persists.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #143707
     talkhrm
    Participant
    This reply has been set as private.
    #143787
     Radu
    Moderator

    In debug are shown only notices that cannot cause your reported errors that make your site to crash 502 Bad Gateway error and finally 508 this kind of errors are related to server resources ask on hosting what causes that

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154566
     steve0nz
    Participant

    I just tried this… first of all my wp-config.php didn’t have the line
    define( 'WP_DEBUG', true );

    So I added the next two lines

    COPY CODE
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );

    However there are no logs in the logfile

    #154601
     Radu
    Moderator

    Ok now check the debug.log file located in wp-content/ directory

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154649
     steve0nz
    Participant

    Hi I receive this error:

    [02-Mar-2017 08:46:55 UTC] PHP Notice: Trying to get property of non-object in /mnt/stor14-wc1-dfw3/staging.ilovenz.me/web/content/wp-includes/class-wp-query.php on line 3884
    [02-Mar-2017 08:46:55 UTC] PHP Notice: Trying to get property of non-object in /mnt/stor14-wc1-dfw3/staging.ilovenz.me/web/content/wp-includes/class-wp-query.php on line 3884
    [02-Mar-2017 08:46:59 UTC] PHP Notice: Trying to get property of non-object in /mnt/stor14-wc1-dfw3/staging.ilovenz.me/web/content/wp-includes/class-wp-query.php on line 3884
    [02-Mar-2017 08:46:59 UTC] PHP Notice: Trying to get property of non-object in /mnt/stor14-wc1-dfw3/staging.ilovenz.me/web/content/wp-includes/class-wp-query.php on line 3884
    [02-Mar-2017 08:47:22 UTC] PHP Notice: Trying to get property of non-object in /mnt/stor14-wc1-dfw3/staging.ilovenz.me/web/content/wp-includes/class-wp-query.php on line 3884
    [02-Mar-2017 08:47:22 UTC] PHP Notice: Trying to get property of non-object in /mnt/stor14-wc1-dfw3/staging.ilovenz.me/web/content/wp-includes/class-wp-query.php on line 3884

    #154678
     Radu
    Moderator

    Hi,

    Those are not errors, those are some notices and you should disable wp debug if it’s activated from wp-config.php form root wp folder

    https://codex.wordpress.org/WP_DEBUG

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?