• Resolved joe mccann

    (@joetigertech)


    The recent update of this plugin includes the following code in redirect-editor.php:

    + function checkForModRewrite()
    + {
    + return in_array(‘mod_rewrite’, apache_get_modules());
    + }

    If PHP is not installed as an apache module in that context (FPM, FastCGI, suPHP) then this call to apache_get_modules() will fail and take down the entire WordPress site with it:

    PHP Fatal error: Uncaught Error: Call to undefined function apache_get_modules() in /var/www/html/cy/cypressscents.com/wp-content/plugins/redirect-editor/redirect-editor.php:178

    It should check if it has access to those functions before using them

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author zuda

    (@zuda)

    We will release a patch for this ASAP!!! Thank you so much for your feedback.

    Plugin Author zuda

    (@zuda)

    A new patch is coming out right now that does if(function_exists(‘apache_get_modules’)) before checking for modrewrite.

    Plugin Author zuda

    (@zuda)

    New emergency patch is out! Thank you for letting us know and helping support the airtight community!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘check if apache_ functions are available before calling them’ is closed to new replies.