504 Gateway Timeout Error


Apache users may increase the default timeout value in the httpd.conf file. For example:

Timeout: The number of seconds before receives and sends time out.

Timeout 600

Furthermore, increasing the max_execution_time limit in php.ini can also bring positive results:

max_execution_time 300

Save the changes, restart apache, and re-check. The 504 gateway timeout error should be gone if the cause was insufficient request timeout value.

Method 2

adding the following lines to the wp-config.php file:

define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, false );

Once done, all generated entries will appear in wp-contents/debug.log file.