BackWPup version 3.1.2 – error message with Debugging mode on “Trying to get property of non-object”

in class-job.php
in public static function get_jobrun_url( $starttype, $jobid = 0 )

Change

$wp_admin_user = get_users( array( ‘role’ => ‘administrator’, ‘number’ => 1 ) ); //get a user for cookie auth

to

$wp_admin_user = get_users( array( ‘role’ => ‘backwpup_admin’, ‘number’ => 1) ); //get a user for cookie auth

(probably better to test for either? On my system, only one Administrator, but the role is set to backwpup_admin, there are None with ‘administrator’)

BackWPup uses (or at some earlier time used?) a different Role for the backup administrator, ‘backwpup_admin’ instead of the default Role ‘administrator’.

This is on BackWPup version 3.1.2 on WordPress 3.9.2

Pin It on Pinterest

Share This