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.

  • 52 Users Found This Useful

Was this answer helpful?

Related Articles

WordPress Site Search

Adding search functionality is a wonderful way to add functionality and pleasure to a visitors...

Create Static Files with your WordPress Install

Reduce the processor and memory load of your site but publishing it into html files.Use the...

Plugins on WordPress

There are many great ways to setup and install plugins on WordPress. You may find a library of...

CloudFlare for WordPress

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