PHP WSOD

Hi everyone

I think I might have registered with not quite the right forum for my problem as it appears this might be more for coding help. If anyone can refer me to a forum more atuned to my type of issue then thank you.

PHP WSOD soon after populating our relatively new wiki.
Happens in both the wiki (mediawiki) and forum (myBB) sections of our site.
Where do I start troubleshooting? :-[ Not sure how to enable php-errors.log

Thanks for reading.

It would appear you are at the right place.

You don’t have to enable the error-log, it is already recording on your server, depending on the OS depends on where it would be located.

Now, turnout ng on show all errors for the individual page would probably help you now. Do you have access to the code, or was this doe another way or through a CMS?

Hello astonecipher

Thanks for responding. A little about me, I am the administrator of a Debian VPS for a recreational club. My Unix experience is low and even lower with PHP, so please excuse me when I say I didn’t understand the comment above ??? :slight_smile:

Would you mind rephrasing?

Analysing your instructions, I think you want me to turn on show errors, and yes, I have access to the code via console.

What code should I use to turn on errors?

You wouldn’t believe it, and it’s likely there is a still an issue somewhere that I need to find, but I put the following code into the php.ini file:

[php]ini_set(‘display_startup_errors’,1);
ini_set(‘display_errors’,1);
error_reporting(-1);[/php]

Saved, closed, restarted Apache and the php index pages that weren’t loading, now are! :o
How can inputting code fix a problem? ???

The big things is, are there any errors or warning showing. When you get no output from PHP, either the code logic is bad or there are fatal errors that kill the script.

Hi again

That’s the thing, no errors are coming up because the PHP pages have decided to work again after I entered the php.ini code to log errors.

Sponsor our Newsletter | Privacy Policy | Terms of Service