Home › Forums › WoodMart support forum › AJAX Import Error Trying to Import Dummy Content › Reply To: AJAX Import Error Trying to Import Dummy Content
LiamTGCS
Issue has been solved.
Fix: If you are getting an error 504 Timeout error for the admin-ajax.php, and providing you have full Apache/server access, navigate to (or find similar path):
/usr/local/apache/conf/httpd.conf
Anywhere in the file, add the following code:
Timeout 300
The above code is required as Apache, by default, times out after 60 seconds, contrary to what PHP.Ini settings you have set. You may also need to add this to .Htaccess, too:
<IfModule mod_dtimeout.c>
<Files ~ ".php">
SetEnvIf Request_URI "admin-ajax.php" DynamicTimeout=300
</Files>
</IfModule>
If your instance of Apache has a timeout module loaded, such as the one below, you will need to (in most instances) increase the timeout using the Timeout 300
code above.
LoadModule reqtimeout_module modules/mod_reqtimeout.so