Title: PHP 8 issue with class-object-sync-sf-logging.php
Last modified: February 1, 2024

---

# PHP 8 issue with class-object-sync-sf-logging.php

 *  [jimyoung944](https://wordpress.org/support/users/jimyoung944/)
 * (@jimyoung944)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-8-issue-with-class-object-sync-sf-logging-php/)
 *     ```wp-block-code
       Warning: in_array() expects parameter 2 to be array, string given in /home/customer/www/probonopartner.org/public_html/wp-content/plugins/object-sync-for-salesforce/classes/class-object-sync-sf-logging.php on line 156
   
       issue is with $this->statuses_to_log variable.
   
       private function configure_debugging() {
   
          // set debug log status based on the plugin's debug mode setting.
   
          if ( true === $this->debug ) {
   
             $this->statuses_to_log[] = 'debug';
   
             $this->enabled           = true;
   
          } else {
   
                 /* commented out otherwise plugin may crash the site
   
             if ( in_array( 'debug', $this->statuses_to_log, true ) ) {
   
                $delete_value          = 'debug';
   
                $this->statuses_to_log = array_filter(
   
                   $this->statuses_to_log,
   
                   function( $e ) use ( $delete_value ) {
   
                      return ( $e !== $delete_value );
   
                   }
   
                );
   
                update_option( $this->option_prefix . 'statuses_to_log', $this->statuses_to_log );
   
             }
   
                 commented out to here */
   
          }
   
       }
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * (@jonathanstegall)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-8-issue-with-class-object-sync-sf-logging-php/#post-17391035)
 * As you may have seen in the pinned post in this forum, no one is currently working
   on this plugin, either to fix bugs or to provide support.
 * If you are able to submit a strongly tested pull request on GitHub, I do still
   have the ability to review it and submit patch releases, and I can do that when
   my capacity allows.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8 issue with class-object-sync-sf-logging.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/object-sync-for-salesforce.svg)
 * [Object Sync for Salesforce](https://wordpress.org/plugins/object-sync-for-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/object-sync-for-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/object-sync-for-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/object-sync-for-salesforce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/php-8-issue-with-class-object-sync-sf-logging-php/#post-17391035)
 * Status: not resolved