Title: pope framework messes with apache error code &amp; displays php errors
Last modified: February 1, 2020

---

# pope framework messes with apache error code & displays php errors

 *  Resolved [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/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/](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
    -  This topic was modified 6 years, 4 months ago by [Becki Beckmann](https://wordpress.org/support/users/becki/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/pope-framework-messes-with-apache-error-code-displays-php-errors/#post-12388135)
 * I also tried to submit a bug here: [https://www.imagely.com/report-bug/](https://www.imagely.com/report-bug/)
 * But wordfence never lets me submit anything. If you need apache server logs and
   more prove then please let me know how I can submit that to you.
 * for me it really is an urgent issue as I want apache to report a 503 error and
   php to log the error.
 * how can I find errors if php stop error logging them? and apache sends a 200 
   status code instead of a 503?
 * **PLease help!**
 * thanks & greetings
    Becki
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/pope-framework-messes-with-apache-error-code-displays-php-errors/#post-12398128)
 * Hello [@becki](https://wordpress.org/support/users/becki/),
 * We have already shared this forum thread with the development team.
    We are going
   to use this duplicated forum thread instead because the error messages are visible
   on that one: [https://wordpress.org/support/topic/pope-framework-messes-with-apache-error-code-displays-php-errors-2/](https://wordpress.org/support/topic/pope-framework-messes-with-apache-error-code-displays-php-errors-2/)
 * As soon as we have some feedback, we will let you know.
 * About the problem with that bug report, thank you so much for letting us know.
   
   We already report this back to the IT team so they can take a look. Many thanks!
    -  This reply was modified 6 years, 4 months ago by [gabyimagely](https://wordpress.org/support/users/gabyimagely/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘pope framework messes with apache error code & displays php errors’ is
closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/pope-framework-messes-with-apache-error-code-displays-php-errors/#post-12398128)
 * Status: resolved