X
X

Select Your Currency

₺ Türk Lirası $ US Dollar
X
X

Select Your Currency

₺ Türk Lirası $ US Dollar

PHP Error Solutions: Diagnosing White Screens and 500 Errors

HomepageArticlesTechnical GuidesPHP Error Solutions: Diagnosing Whi...

For PHP error solutions, instead of first trying to display the error openly to visitors, note when it occurred and inspect the relevant error log. This guide explains the safe process to follow when white screens and 500 errors appear after a PHP version, plugin, or theme change, both on shared hosting panels and on servers with administrator access. Save the current setting before making changes and, if possible, back up the files and database.

Determine your access type first for PHP error solutions

If you use shared hosting, your access is generally limited to the PHP version selector, error logs, file manager, and the application’s own administration screen in the hosting panel. On an administrator-managed server, you can access service logs, the status of PHP-FPM or a similar process manager, and the server configuration. The settings for these two environments are not located in the same place; therefore, searching for a solution that applies to an administrator-managed server in a random panel menu wastes time.

The scope of the error is also important for the first decision. If only one administration screen or a specific page fails to open, the plugin, theme, or application code changed most recently is the primary suspect. If all of the site’s PHP pages return 500 at the same time, the PHP version, process manager, memory limit, or general configuration is more likely to be responsible. Examine one variable accordingly; increasing all limits at once hides which setting had an effect.

Safe investigation that matches the symptom to the log

Find the new log entry for the same request

First record the failed URL, the approximate time, and the operation. Then open the site’s error log in the hosting panel, or the relevant PHP application and web server logs on an administrator-managed server. Search for new entries in the same time range; do not treat an old fatal error line as proof of the current error. If the log contains an entry in a specific plugin or theme file saying “class not found,” “undefined call,” or indicating version incompatibility, the correction should be to make that component’s version compatible or to undo the latest change.

If the log shows a write-permission error, do not change permissions throughout the site. Compare the ownership of the specific directory that the application needs to write to with the runtime user defined in the panel, together with your administrator; on shared hosting, correct the relevant file or folder to the provider’s recommended default. If the log indicates a memory limit, check only the PHP memory setting that the long-running operation or application genuinely needs. If the same event produces neither a permission record nor a memory record, do not treat one problem as evidence of the other.

Controlled steps for applying the change

  1. Stabilize the current state. Note the PHP version, the most recent plugin or theme change, active custom settings, and, if possible, the backup location. This allows you to return to the previous value if the correction does not work. If there is no backup, consider the provider’s backup option before making broad changes to production files.
  2. Narrow down the source of the error. If the log shows a single plugin, theme, or file name, temporarily disable only that component with the application’s own administration tool or return it to the previous compatible version. If the administration screen does not open, use the hosting panel’s application tool or the provider’s safe deactivation method; deleting files is not a safe first step. If the error log changes or the page opens as a result, the source is probably related to this component.
  3. Check compatibility with the PHP version. If the error began immediately after a PHP version change, compare the current version in the panel with the versions supported by the application and its plugins. If the application clearly depends on an older version, temporarily returning to the previous value, then upgrading the application and plugins to compatible versions, is safer. Returning to an older version is a controlled verification step, not a permanent solution; do not remain for a long time on a version that the provider no longer supports.
  4. Review custom PHP settings one at a time. If the error occurs only during a large file upload, a long external request, or an intensive administration operation, check the upload size, execution time, and memory settings in the relevant panel screen, in that order. If the log identifies a specific limit, address only that limit according to the application’s needs and the value permitted by the server. Record the previous value before changing it; forcing an unsupported value can create new 500 errors.
  5. Repeat the same operation and look for new evidence. After the change, retry the same URL that previously failed or submit the same form again. Then check the error log for new entries with current timestamps. If the page opens and no new fatal error appears, the correction has been verified; if a different error line appears, accept that the first entry did not explain the entire problem and proceed according to the new finding. If the problem continues, undo your latest change and compare the previous and new records before changing another variable.

Interpreting the example correctly

For example, suppose that in a hypothetical store, only the page used by the payment plugin shows a white screen after the PHP version is upgraded, and the log records an “undefined function” entry in a specific plugin. This finding calls for checking the plugin’s compatibility with the new PHP version, not increasing the memory limit. If the other pages open when the plugin is temporarily disabled, updating the plugin or temporarily returning to a compatible PHP version is reasonable. If the same test instead produced a memory-limit entry in the log, the decision would shift to examining only the relevant memory setting and the operation’s actual needs.

If the error appears only in the administration screen while public pages work, an administration plugin or the execution time of the administration request is more likely. In contrast, if all pages return 500 and the log shows that the PHP worker process could not be started, PHP-FPM, pool settings, or the server configuration should be examined by an administrator rather than changing a plugin. This distinction prevents you from trying to change a server setting for which you do not have authority.

Safe rollback if the problem continues

If the same symptom remains after one change, restore the previous setting, preserve the logs from the time period you recorded, and stop further attempts. Do not enable detailed PHP error output for visitors on a production site; details should remain in the logs, while the screen should show a general error page. If a service restart is required on an administrator-managed server, perform it only after the configuration has been validated and the provider’s procedure is known; on shared hosting, do not perform service operations outside the panel.

The next safe step is to send the administrator the failed URL, the exact time, the single most recent change, and the relevant line from the new error log. Do not share credentials, access tokens, or personal data. If application resources are insufficient, before changing a managed setting you may review the Turkey VDS server plans page only to consider possible hosting options; moving to a new server does not automatically fix the existing PHP incompatibility.


Top