Bug with wp-config files that include require() / include() statements
-
This plugin doesn’t work with wp-cli, and also causes cron errors, if used with a wp-config.php file that in turn includes another file. E.g. if you store additional settings in a separate config file, like wp-settings.php, and use a statement like require_once(‘wp-settings.php’); in your wp-config file, then things start to fail.
Errors look like:
PHP Fatal error: Cannot redeclare wp_unregister_GLOBALS() (previously declared in /srv/mysite.com/www/wp-includes/load.php:19) in /srv/mysite.com/www/wp-includes/load.php on line 33 Fatal error: Cannot redeclare wp_unregister_GLOBALS() (previously declared in /srv/mysite.com/www/wp-includes/load.php:19) in /srv/mysite.com/www/wp-includes/load.php on line 33
Recommend using the ‘redirection’ plugin instead of this ‘redirect’ plugin. Different plugins; different maintainers.
- The topic ‘Bug with wp-config files that include require() / include() statements’ is closed to new replies.