check if apache_ functions are available before calling them
-
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)
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.