PHP 8 issue with class-object-sync-sf-logging.php
-
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)
Viewing 1 replies (of 1 total)
The topic ‘PHP 8 issue with class-object-sync-sf-logging.php’ is closed to new replies.