504 error - Are you sure you want to do this?

In wordpress if you receive either of the following errors when trying to upload a theme...

504 error 

"Are you sure you want to do this?"

 

Add the following code to your public_html/.htaccess file...
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

 

If the public_html/.htaccess file does not exist, be sure that you have "View hidden files" enabled in your File Manager's settings. Then create the .htaccess file if it does not show. Then add the code.

If this does not resolve your issue, there may be...

  • A temporary glitch on your WordPress hosting servers.
  • A problem with your WordPress plugins or theme.
  • A problem with your DNS settings.
  • A problem with your internet connection.

If this is the case, please try these steps...

  1. Reload the page. Sometimes, a simple reload will fix the error.
  2. Clear your browser cache. This will force your browser to request a new copy of the page from the server.
  3. Try a different browser. If the error persists in one browser, try loading the page in a different browser to rule out a browser-specific issue.
  4. Check your internet connection. If your internet connection is slow or unstable, it can cause the 504 error. Try connecting to a different network or using a different device to see if that resolves the issue.
  5. Disable your plugins. If you recently installed a new plugin, it may be causing the error. To test this, disable all of your plugins and see if the error goes away. If it does, you can start enabling them one at a time until you find the plugin that is causing the problem.
  6. Disable your theme. If you recently changed your theme, it may be causing the error. To test this, disable your theme and see if the error goes away. If it does, you can activate a different theme to see if that resolves the issue.
  7. Contact Ultra. If you've tried all of the above steps and the error is still occurring, you may need to contact our award winning support for assistance. They may be able to help you identify and resolve the issue.

Here are some additional tips for resolving the 504 Gateway Timeout error in WordPress:

  • Use a CDN. A CDN (Content Delivery Network) can help to improve the performance of your website and reduce the chances of a 504 error occurring.
  • Keep your WordPress installation up to date. WordPress releases security updates and bug fixes on a regular basis. It's important to keep your WordPress installation up to date to help prevent errors from occurring.
  • Back up your website regularly. If you do experience a 504 error and are unable to resolve it, you can restore your website from a backup. This will help you to recover your website and get it back online quickly.

Ultra is one of the leading WordPress hosting companies. If your WordPress site is loading slowly you need to give us a free 45 day trial! We have WordPress optimized hosting specifically for your needs.
Click here to get started.

  • 50 Users Found This Useful

Was this answer helpful?

Related Articles

Optimize WordPress Performance

With our service, there are many ways to dramatically speed up the performance of your WordPress...

Unable to create directory uploads/ Is its parent directory writable by the server?

Unable to create directory... Is its parent directory writable by the server? This error can be...

The WordPress app doesn't work with my website

The WordPress app utilizes the xmlrpc.php file on your account put there by WordPress. However, a...

WordPress Response Body too Large and Too many arguments in Request Errors

If you are receiving a response body too large error with WordPress it is a result of WordPress...

Wordpress Error Missing a temporary folder

The "Missing a temporary folder" error in WordPress is caused by incorrect PHP settings on your...