pope framework messes with apache error code & displays php errors
-
Hello there ??
first thanks a lot for your awesome plugin!
tried to submit earlier and it reported an error so will leave some stuff out marked SKIPPING. hope the message gets transported?
I want to report a really strange issue with nextgen gallery plugin.
I’m running an OpenSuSE Box 15.1 with PHP 7.2.25 but also testet with PHP 7.3.14
And I’m 100% sure that this is because of nextgen gallery plugin because if I disable the plugin all is fine.
What is the problem?
I have PHP setup to not show any errors via php.ini display_errors = off
If I then force an error by calling a wrong function name, e.g. add_filter123() the PHP error gets displayed right in the browser.Error thrown
Call to undefined function add_filter123()Which I really don’t want as I don’t want to leak any error infos via the web browser.
another really strange thing is that Apache does not report the error with a 503 error code as it should
apache simply gives a 200 status which is really not what I want.SKIPPING
So i checked and looked and double checked and double looked to find out what causes the error?
If i de-activate nextgen gallery plugin and produce the same error as above via add_filter123() apache then reports a 503
SKIPPING
and no php error is displayed in the browser as it should as php.ini says display_errors = off
I then did a bit more digging by renaming folders / files to find out which part of nextgen gallery plugin is causing this weird behaviour?
My search ended up with the pope framework /wp-content/plugins/nextgen-gallery/pope/lib
in that folder thers’s an autoload.php
If i then rename e.g. class.pope_cache.php to class.pope_cache.php.123 to produce an error all goes back to normal.Apache reports an error:
SKIPPING
PHP reports an error
SKIPPING
and no php errors displayed in the browser
If i rename the file class.pope_cache.php so it gets loaded all is back to strange behaviour
the php error is displayed in the browser
Error thrown
Call to undefined function add_filter123()apache gives me a status code of 200 instead of a 503
SKIPPING
and the error log doesn’t report any errors at all which is really not what I want.
php should report an error as it does once I disable the nextgen gallery plugin:SKIPPING
I double and triple checked everything! the error is in the pope framework and I can reproduce this strange behaviour all the time.
from what i can see pope framework seems to be a couple of years old?https://bitbucket.org/photocrati/pope-framework/src/default/lib/
perhaps it is not compatible with newer PHP versions?
I would really, really love to get this fixed.
as php errors not being reported by apache as 503 instead sending a 200 status code?
and displaying the errors in the browser even though display_errors is set to off?this is really strange! Can we fix this?
thanks & greetings
Becki
- The topic ‘pope framework messes with apache error code & displays php errors’ is closed to new replies.