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.

  • 82 Users Found This Useful

Was this answer helpful?

Related Articles

How to disable WordPress comments, pingbacks, and trackbacks

There are a few ways to disable comments, pingbacks and trackbacks in WordPress:   Go to...

Static HTML Files Not Being Displayed with WordPress

Static HTML Files Not Being Displayed with WordPress   This can occur when WordPress's...

Elementor - Critical Error with both Elementor and Elementor Pro plugins enabled

Running Elementor and Elementor Pro simultaneously can be memory-intensive. Elementor and...

Quickly Disable All WordPress Plugins via phpMyAdmin

Before beginning, be sure to have a backup of your database. You may backup your database by...

CloudFlare for WordPress

The Cloudflare plugin for WordPress is a free plugin that allows you to connect your WordPress...