This guide will give you information on blank pages that your website can generate.

Check out our other available web hosting guides.

You've got a blank page error?

.

Overview

Why has a blank page appeared on my website?

In contrast to what you might think, a blank page appears for a reason.

  • It masks errors generated by your website, preventing hackers from retrieving important information on your site.

  • How do you correct a blank page?

  • As we've just explained, the blank page appears to mask errors on your website. You will therefore need to, in the first instance, display the errors to then correct them.

  • Try to recall when the blank page appeared. Was it when you installed or updated a plugin or theme, or when you updated your website?

Diagnostic

.

Activate PHP errors

Insert this code line to your website files:

ini_set('display_errors',1);

Generally, it's best to insert this line to the "index.php" file or the file your website consults most frequently, for example your website's configuration file.

Please note: this command line must be inserted after the PHP opening tag:

<?php

Your website will now display the error that needs to be corrected. The blank page will disappear.
.ovhconfig development mode
In order to correctly display errors, you also need to:

  • Put your ".ovhconfig" file in to development mode:

The ".ovhconfig" file must contain the following code:

app.engine=php
app.engine.version=5.4
http.firewall=none
environment=development

This guide explains how to set up PHP-FPM:Enable PHP optimisation with OVH web hosting
.

Check any errors linked to the cache

In order to check if the blank page is still visible without using the cache on the server:

  • At the end of your website's URL, add access to a specific port: :82

  • Example: http://votre-site.fr:82

This makes it possible for you to directly call up the site on the cluster without using "Géocache".

This can also be done with ports 81 to 85.
.

Use FireBug - Errors 429, 500 and 200

Overview
We advise you to use FireBug to get further information on the blank page.
Error 429
FireBug can bring up useful errors even from a blank page.

Example: check if error 429 is in the network tab.

Error 429 appears when your website receives more requests than it can handle.

  • Enabling PHP-FPM can help to resolve the issue:

  • This guide explains how to set up PHP-FPM:Enable PHP optimisation with OVH web hosting.


    Currently this error can be seen on your site via an information page generated by OVH. See the screen opposite.

  • If PHP-FPM doesn't resolve the issue, you may need to think about upgrading your offer.
Error 500
A blank page can currently be seen on your website.

FireBug has analysed this page and brought up an error 500 in the network section.

As it stands, it's impossible to identify where the issue comes from. You will therefore have to enable the errors as we mentioned earlier.

You will then need to correct the error.
200 OK response
A blank page can currently be seen on your website.

FireBug has analysed this page and brought up an 200 OK response in the network section.

The 200 OK response isn't really an error message.

It indicates that the page has correctly loaded, but there's still a blank page.

  • In this event, there's no need to enable error messages as no error has been found.

  • You will therefore need to debug the site without accessing error messages.
    This event seems to be more common in sites developed in WordPress.