Fatal Error on Version: 2.7.0
-
Hi,
Just want to feedback the fatal error produced by my server using version 2.7.0
The error message is as follow:PHP Fatal error: Uncaught Error: Function name must be a string in /var/www/html/wp-content/plugins/pareto-security/pareto_functions.php:2341 Stack trace: #0 /var/www/html/wp-content/plugins/pareto-security/pareto_functions.php(2162): pareto_functions->getREMOTE_ADDR() #1 /var/www/html/wp-content/plugins/pareto-security/pareto_functions.php(15): pareto_functions->get_ip() #2 /var/www/html/wp-content/plugins/pareto-security/pareto_security.php(36): pareto_functions->__construct() #3 /var/www/html/wp-includes/class-wp-hook.php(287): pareto_security_init('') #4 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #5 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #6 /var/www/html/wp-settings.php(403): do_action('plugins_loaded') #7 /var/www/wp-config.php(134): require_once('/var/www/html/w...') #8 /var/www/html/wp-load.php(42): require_once('/var/www/wp-con...') #9 /var/www/html/wp-cron.php(44): require_once('/var/www/html/w...') #10 {main} thrown in /var/www/html/wp-content/plugins/pareto-security/pareto_functions.php on line 2341
The error produced when running wp-cron.php – not visible due to WordPress error masking on the browser – but from the terminal
php wp-cron.php
creates the error.Following the message, pareto_functions.php:2341 falls into this simple function:
/** * getREMOTE_ADDR() */ function getREMOTE_ADDR() { if ( false !== getenv( 'REMOTE_ADDR' ) && ( false !== ( bool ) $this->string_prop( getenv( 'REMOTE_ADDR' ), 2 ) ) && false !== $this->check_ip( getenv( 'REMOTE_ADDR' ) ) ) { return getenv( 'REMOTE_ADDR' ); } elseif ( false !== $_SERVER( 'REMOTE_ADDR' ) && ( false !== ( bool ) $this->string_prop( $_SERVER( 'REMOTE_ADDR' ), 2 ) ) && false !== $this->check_ip( $_SERVER( 'REMOTE_ADDR' ) ) ) { return $_SERVER[ 'REMOTE_ADDR' ]; } }
..somewhere along the “elseif “line… so I just remark all the line as comment except ‘return $_SERVER[ ‘REMOTE_ADDR’ ];’ as a temporary measure and the error disappear. So, confirm the source.
Thanks for the great plugins !
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal Error on Version: 2.7.0’ is closed to new replies.