|

How do I troubleshoot 403, 500, 502, 504, 524 Server Errors During Scans?

The WP ADA Compliance plugin inspects every link and file on the installed website. This process takes time and can use a lot of server resources. While the plugin is designed to mitigate common issues such as PHP settings that limit execution time and memory usage sometimes this may not be enough. If you notice 502, 504 or 500 server errors in your log files, in the browser Javascript Console or on the error screen we suggest the following:

502 / 504 / 524 Errors

These errors normally occur while scanning pages with a large number of links and indicate that the server timed out before a scan cycle has completed. If you see these server errors, increase the PHP max_execution_time to at least 300 and memory_limit to 256MB or 700MB for PDF scans. It may be necessary to increase the max_execution_time and memory_limit even further if errors persist. Other potential solutions include:

  1. Hide the error summary while the scan is running. When the error summary is hidden it will not refresh after each scan cycle and use less server resources.
  2. Disable link scans which are only necessary if you have a lot of content that was created outside of WordPress.
  3. Enable cron scans under “Scan & Notification” settings and if not already done, setup a cron job in your control panel. A variety of frequencies are provided to complete the scan in a timely manner.
  4. On the settings page, under “Scan & Notification” settings:  Lower the number of posts to scan each cycle.

500 Errors

The deep scan process can us a lot of server resources when conducted from the report screen and on many budget friendly hosting packages server resources are severely throttled. If this occurs you will see 500 server errors displayed in your browser.

To verify that this has occurred, check your host’s resource usage statistics or contact your host to see if your account was limited during the affected time period. If available, access cPanel and under Metrics go to CPU and Concurrent Connection usage. This will show any recent faults. You may also be able to watch the CPU usage as you are scanning on the right side of the cPanel screen, under “Statistics”.

In order to successfully run a scan you will need to lower resource usage.

Potential solutions include:

  1. Hide the error summary while the scan is running. When the error summary is hidden it will not refresh after each scan cycle and use less server resources.
  2. Disable link scans which are only necessary if you have a lot of content that was created outside of WordPress.
  3. Enable cron scans under “Scan & Notification” settings and if not already done, setup a cron job in your control panel. A variety of frequencies are provided to complete the scan in a timely manner.
  4. On the settings page, under “Scan & Notification” settings:  Lower the number of posts to scan each cycle.
  5. Disable the incorrect white space rule which tends to use a lot of resources.

403 Errors

403 errors indicate that something is blocking the scan process. This could be a server side firewall or a WordPress security plugin. Review firewall block logs and add whitelist entries if required or disable  security plugins during the scan process.

Related article: Troubleshooting issues with slow and long scans on large website?

Similar Posts

  • How can I change the way the “opens in a new window” popup looks on my website?

    Add the following style to your theme style sheet and change it as desired: a span.wp_ada_hidden { position: absolute; left: -9999px; font-size: 9pt !important; border:1px dotted !important; background-color:#eee; color:#000; font-weight:normal !important; padding: 1px; font-family:arial !important; width:11.5em; text-align: center; } Beaver Buider Styles Beaver Builder editor users may find it necessary to insert the following CSS…

  • | |

    How do I renew my license?

    Your license is good for unlimited use of the plugin and valid for the number of domains you selected when you made the initial purchase. Support and updates are available free of charge for 1 year. After the first year you can renew your license to continue to receive support and updates. Once your license…

  • WCAG 2.2 & Section 508 Compliance

    The WP ADA Compliance Plugin evaluates content for WCAG 2.1, WCAG 2.2 or Section 508 Web Accessibility Standards.  For each issue that is detected, easy to follow instructions are provided along with error references and links to additional information to improve understanding of the problem. Since not all issues can be automatically detected, the plugin…

  • | |

    What issues does the WP ADA Compliance Plugin check for?

    The WP ADA Compliance Plugin evaluates content for Section 508, WCAG 2.1 Level A and AA Web Accessibility Standards.  For each issue that is detected, easy to follow instructions are provided along with error references and links to additional information to improve understanding of the problem. Since not all issues can be automatically detected, the…

  • | |

    Custom Content Filter Hook

    The WP ADA Compliance Check plugin includes the “wp_ada_compliance_change_the_content_callback” hook that can be used to change website content as the page loads. It supports a single parameter that is set to the page content. This filter is applied to the content after the WP ADA Compliance Check does  its own filtering to allow you to…

Cart Accessibility Tools
hide