I have written a test stub plugin which is not working and I am attempting to debug. However, PHP does not seem to want to tell me what is wrong.
With my plugin installed in OJSROOT/plugins/generic/testPlugin, OJS simply loads a blank screen. If I remove it, all is well.
I have attempted to turn as much logging as possible by including in my virtualhost file:
php_value error_log /var/log/php/ojs-2.1.1-test-php_error_log
php_flag display_errors on
php_flag log_errors on
php_value error_reporting 6143
Errors are written to that file because, if I remove my plugin such that OJS works again, and I add "error_log("Test error log.");" to OJSROOT/index.php, the message appears in my custom error log.
I have also added "ini_set('display_errors')..." to the top of OJSROOT/index.php, but that hasn't had any effect either.
It could be true that PHP simply isn't generating any errors, despite OJS not working properly. But something different, and broken, is happening and I need to find out what.
Any advice on increasing the verbosity and debugging of either PHP or OJS?