Cerber with InfiniteWP – Fatal error
-
Using Cerber with InfiniteWP (theme and plugin manager for multiple sites), I got this error on one site when reloading data from within the InfiniteWP dashboard:
PHP Fatal error occurred: Call to undefined function cerber_is_admin_page() in /home/SITE/public_html/SITE/wp-content/plugins/wp-cerber/settings.php on line 63.
I was able to solve this by editing lines 91-94 of cerber-load.php changing from:
if ( defined( ‘WP_ADMIN’ ) || defined( ‘WP_NETWORK_ADMIN’ ) ) {
// Load dashboard stuff
require_once( dirname( __FILE__ ) . ‘/dashboard.php’ );
}commenting out the if statement to:
// if ( defined( ‘WP_ADMIN’ ) || defined( ‘WP_NETWORK_ADMIN’ ) ) {
// Load dashboard stuff
require_once( dirname( __FILE__ ) . ‘/dashboard.php’ );
// }Obviously this is NOT ideal. Do you know why this would have happened? InfiniteWP uses an API key to login to WordPress I think.
- The topic ‘Cerber with InfiniteWP – Fatal error’ is closed to new replies.