• i am using 6.1.1 latest version of wordpress and latest version of heartbeat control plugin.

    I have this error in my word press:

    Deprecated: Required parameter $field_id follows optional parameter $type in /home/diets058/public_html/wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php on line 693

    How can I solve that? Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • find the function wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php on line 693

         protected function field_can( $type = 'read_fields', $field_id, $return_object = false ) {
    
    		if ( ! in_array( $field_id instanceof CMB2_Field ? $field_id->id() : $field_id, $this->{$type}, true ) ) {
    			return false;
    		}

    then edit it to

    	protected function field_can( $type, $field_id, $return_object = false ) {
            if (empty($type))$type = 'read_fields';
    		if ( ! in_array( $field_id instanceof CMB2_Field ? $field_id->id() : $field_id, $this->{$type}, true ) ) {

    • This reply was modified 1 year, 11 months ago by nathaniel45.

    I have a another one with the same issue wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php:34

    //change 
    public function list_input( $args = array(), $i ) {
        $a = $this->parse_args( 'list_input', array(
    
    //to
     public function list_input( $args, $i ) {
        if (!is_array($args))$args = array();
        $a = $this->parse_args( 'list_input', array(
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Heartbeat error’ is closed to new replies.