I'm having a real hard time at the moment because for some reason PHP errors (in web pages) don't seem to get reported anywhere.
I've narrowed the problem down a bit, if I put a PHP file in my root web directory then any errors *are* reported. However if I put an error into some of the code in my wiki nothing happens except that I get a completely blank page.
I've looked at the .htaccess file, no joy there, doesn't set anything relevant. There's nothing appearing in the apache log file either, total silence.
Any ideas?
Does it some how relate to the php.ini/php.conf file, what error reporting values have you got set up in there?
Also, assuming you are using Apache, is the wiki on a separate vhost, that has different logging options?
Just a thought....
On Mon, Feb 06, 2012 at 06:45:08PM +0000, Chris Green wrote:
I'm having a real hard time at the moment because for some reason PHP errors (in web pages) don't seem to get reported anywhere.
I've narrowed the problem down a bit, if I put a PHP file in my root web directory then any errors *are* reported. However if I put an error into some of the code in my wiki nothing happens except that I get a completely blank page.
I've looked at the .htaccess file, no joy there, doesn't set anything relevant. There's nothing appearing in the apache log file either, total silence.
I've fathomed out what my problem is/was.
If there's a *parsing* error in the PHP then apache/PHP shows nothing and I get the blank white screen. It's only run time errors that get through to the apache error log and/or the browser window.
So all I need to do is 'php -f <php script>' and check for parsing errors before trying the code via apache.
I'm not sure if it always used to be like this but it certainly seems that way now and I've not explicitly changed things in any .ini files anywhere, though system upgrades may have done so of course.