Title: Heartbeat error
Last modified: February 14, 2023

---

# Heartbeat error

 *  [aidinnn](https://wordpress.org/support/users/aidinnn/)
 * (@aidinnn)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/heartbeat-error/)
 * _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)

 *  [nathaniel45](https://wordpress.org/support/users/nathaniel45/)
 * (@nathaniel45)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/heartbeat-error/#post-16690661)
 * find the function wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/
   rest-api/CMB2_REST.php on line 693
 *     ```wp-block-code
            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
 *     ```wp-block-code
       	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 3 years, 3 months ago by [nathaniel45](https://wordpress.org/support/users/nathaniel45/).
 *  [nathaniel45](https://wordpress.org/support/users/nathaniel45/)
 * (@nathaniel45)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/heartbeat-error/#post-16690726)
 * 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
 *     ```wp-block-code
       //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.

 * ![](https://ps.w.org/heartbeat-control/assets/icon-256x256.png?rev=2952275)
 * [Heartbeat Control](https://wordpress.org/plugins/heartbeat-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/heartbeat-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/heartbeat-control/)
 * [Active Topics](https://wordpress.org/support/plugin/heartbeat-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/heartbeat-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/heartbeat-control/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nathaniel45](https://wordpress.org/support/users/nathaniel45/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/heartbeat-error/#post-16690726)
 * Status: not resolved