• Resolved MeOnline

    (@webber2012)


    Found an error with the new 3.7.0 version:
    constant(): Couldn’t find constant disable_wp_cron

    Location:
    wp-content/plugins/companion-auto-update/cau_functions.php:377
    constant()
    wp-content/plugins/companion-auto-update/cau_functions.php:377
    checkCronjobsDisabled()
    wp-content/plugins/companion-auto-update/cau_functions.php:122
    cau_pluginHasIssues()
    wp-content/plugins/companion-auto-update/companion-auto-update.php:409
    cau_checkForIssues()
    wp-includes/class-wp-hook.php:287
    do_action_ref_array(‘admin_bar_menu’)
    wp-includes/admin-bar.php:95
    wp_admin_bar_render()
    wp-includes/class-wp-hook.php:287
    do_action(‘in_admin_header’)
    wp-admin/admin-header.php:256

Viewing 5 replies - 1 through 5 (of 5 total)
  • Should be

    function checkCronjobsDisabled() {
    	if ( defined( 'disable_wp_cron' ) ) {
    		if( constant( 'disable_wp_cron' ) == 'true' ) {
    			return true;
    		} else {
    			return false;
    		}
    	elseif ( defined( 'DISABLE_WP_CRON' ) ) {
    		if( constant( 'DISABLE_WP_CRON' ) == 'true' ) {
    			return true;
    		} else {
    			return false;
    		}
    	} else {
    		return false;
    	}
    }
    
    Thread Starter MeOnline

    (@webber2012)

    @marcfbe Thanks!

    @@papin Is that correct and will this be added to the next update of Companion Auto Update?

    Plugin Author Papin Schipper

    (@papin)

    @webber2012 yes that should fix it. We’ve added it to the next release

    Thread Starter MeOnline

    (@webber2012)

    @papin Thanks!

    @papin well, seems like whatever you “added” to this latest release in this regard didn’t do anything – this error still shows up on the latest release you pushed out 2 days ago as well.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘ERROR: constant(): Couldn’t find constant disable_wp_cron’ is closed to new replies.