• 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

    (@jonathanstegall)

    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.