Fix the Error 524 a timeout occurred error
Error 524 is an HTTP status code used by Cloudflare to indicate that while a connection between your website and hosting account was established, Cloudflare ended the process on your website before the process was finished.
The Error 524 a timeout occurred is temporary, however by following the steps provided below, you can see why it’s happening and take measures to avoid encountering it again going forward.
A. Check your hosting account resource usage
1. Log in to your hosting control panel
2. Click on the Resource Usage button
3. Click on the Current Usage tab
4. Locate the CPU Usage, Physical Memory Usage and Faults graphs. If you see the usage going above the limit line, this means your hosting account is exhausting its server resources, which can trigger the Error 524 a timeout occurred on your website.
5. Allow some time to pass in order for your resource usage to stabilize. Once stabilized, reload your website.
6. Review both the CPU Usage and Memory Usage to better understand them along with the action steps listed in each guide.
As additional steps to clear the Error 524 a timeout occurred, follow the steps below.
B. Check your website error log report
1. Log in to your hosting control panel
2. Click on the Account Usage button
3. Locate your website’s domain name under the Domain column
4. On your domain’s row, click on Error Log under the Logs column
5. Scroll all the way to the bottom of the report and locate the most recent date and time (timestamps are in EST- Eastern Standard Time) – this is your most recent error log entry
6. On the most recent error log entry, scroll all the way to the right (horizontally) to view the full error, here is an example:
7. The error log will indicate what component of your WordPress website is triggering the critical error. Normally, it will be a plugin or theme triggering the critical error, see the examples below:
If there is a plugin triggering the error, you will see it indicated like the format below. The name of the plugin triggering the error will be indicated after the / forward slash in front of the word plugins.
2023-11-09 19:37:32.076020 [NOTICE] [1681121] [T0] PHP Fatal error: Uncaught Error: Call to undefined function hello_world() in /home/domains/skystrahelp/public_html/wp-content/plugins/helloplugin/functions.php:50
If there is a theme triggering the error, you will see it indicated like the format below. The name of the theme triggering the error will be indicated after the / forward slash in front of the word themes.
2023-11-09 19:37:32.076020 [NOTICE] [1681121] [T0] PHP Fatal error: Uncaught Error: Call to undefined function hello_world() in /home/domains/skystrahelp/public_html/wp-content/themes/hellotheme/functions.php:50
8. Take note of the name of the plugin or theme causing the error. From our examples above, for the plugin error, the name of the plugin causing the error is helloplugin, and for the theme error, it is hellotheme.
9. Now that you’ve identified the component triggering the error, you need to disable it. Move to the steps below to disable the plugin or theme triggering the error.
C. Disable the plugin or theme causing the error
1. Log in to your hosting control panel
2. Click on the File Manager button
3. Double click on the domains folder
4. Locate your website’s folder and double click on it
5. Locate the public_html folder and double click on it
6. Locate the wp-content folder and double click on it
7. In the wp-content folder, you will see a plugins and themes folder. If you are trying to disable a plugin, double click on the plugins folder. If you are trying to disable a theme, double click on the themes folder.
8. Inside the plugins or themes folder, locate the folder for the plugin or theme you are trying to disable (it will have the exact same name as from your error log).
9. Right click on the folder to reveal a dropdown and select Rename, we’ll use a plugin called akismet as an example:
10. In the Rename popup, in front of the existing name of your plugin or theme, put – old as its suffix. For example, if your plugin folder name is akismet, then you would rename is to akismet-old
11. Once you’ve added – old to the plugin or theme folder name, click the Rename button to save it
12. Now, log in to your WordPress admin dashboard – it should now be loading
13. You can also reload your website and you should now see it loading
D. Refresh your browser page
1. Locate the circular arrow icon near the address bar and click it
2. Press F5 or Ctrl + R on Windows, or Cmd + R on a Mac to refresh using keyboard shortcuts
E. Clear your browser cache and cookies
Google chrome:
1. Click on the three vertical dots on the top-right corner of the browser
2. Navigate to More Tools > Clear Browsing Data
3. Make sure Cached images and files and Cookies and other site data are checked
4. Click on Clear Data
Safari:
1. Click on Safari in the top menu and then select Preferences
2. Navigate to the Privacy tab and click on Manage Website Data
3. Click on Remove All and then confirm your decision
4. Close the preferences window and refresh the page you were trying to access
Mozilla Firefox:
1. Click on the three horizontal lines at the top-right corner, then select Settings
2. Select the Privacy & Security tab on the left
3. Scroll down to the Cookies and Site Data section and click on Clear Data
4. Make sure Cookies and Site Data and Cached Web Content are both selected, then click Clear
F. Load your website in Incognito or Private mode
Google chrome:
1. Click the three-dot menu in the top right corner of your browser
2. Select New Incognito Window
3. Load your website from the Incognito window
Safari:
1. Click File from the menu at the top of the screen
2. Select New Private Window
3. Load your website from the private window
Mozilla Firefox:
1. Click the three-line menu in the top right corner of your browser
2. Select New Private Window
3. Load your website from the private window
G. Remove Cloudflare from your domain name
1. Sign into your Cloudflare customer portal
2. Click on your domain name
3. Click on DNS
4. If you have custom DNS records in Cloudflare, put them in your domain name’s DNS Zone on your Skystra hosting control panel. If you have no custom records, move to the next step.
3. Under Advanced Actions click on Remove this site from Cloudflare
4. Follow the prompts to remove Cloudflare from your domain name
5. Change your domain name’s nameservers to the Skystra nameservers
H. Disable firewall and/or anti-virus software
1. Open Control Panel on Windows or System Preferences on macOS. For antivirus, open the application.
2. Select Firewall & network protection on Windows or the Firewall tab on macOS. In antivirus, go to settings.
3. Turn off Windows Defender Firewall or Firewall on macOS. Choose to disable or turn off in the antivirus program.
I. Disable VPN connection
1. Look for the VPN icon in your device applications or menu bar
2. Click the icon to open your VPN application
3. Press the disconnect button within the app to disable your VPN connection
J. Check on a mobile data connection
1. On your mobile device, open the Settings app
2. Locate the Wi-Fi 📶 section and click on it
3. Toggle the WiFi switch to the ‘Off’ position to disable the WiFi connection
4. In the Settings app, locate and select Connections or Cellular/Mobile Data (the exact name may vary depending on your device)
3. Toggle the Mobile Data switch to the On position to activate the mobile data connection
4. Check the top of your device screen for a mobile data indicator (such as 4G, LTE, or 5G) to confirm that mobile data is active
5. Open a browser window on your mobile device
6. Load your website