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...
- Reload the page. Sometimes, a simple reload will fix the error.
- Clear your browser cache. This will force your browser to request a new copy of the page from the server.
- 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.
- 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.
- 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.
- 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.
- 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.