• This plugin is great however I found that it breaks some of our widget related feature with error below:

    FastCGI: server “/usr/lib/cgi-bin/php-fcgi” stderr: PHP message: PHP Fatal error: Uncaught Error: Cannot unset string offsets in /var/www/wordpress/wp-content/plugins/stream/connectors/class-connector-widgets.php:515

    Further troubleshooting I found that it is related to codes below @ class-connector-widgets.php

    protected function handle_sidebars_widgets_changes( $old, $new ) {
    unset( $old[‘array_version’] );
    unset( $new[‘array_version’] );

    and

    public function callback_updated_option( $option_name, $old_value, $new_value ) {

    unset( $new_value[‘_multiwidget’] );
    unset( $old_value[‘_multiwidget’] );

    Basically it is trying to unset element which does not exist, or was unset earlier. I’ve manually fixed it by wrapping it with a check like below:

    protected function handle_sidebars_widgets_changes( $old, $new ) {
    //unset( $old[‘array_version’] );
    if (! empty($old[‘array_version’])) {
    unset( $old[‘array_version’] );
    }

    public function callback_updated_option( $option_name, $old_value, $new_value ) {

    unset( $new_value[‘_multiwidget’] );
    //unset( $old_value[‘_multiwidget’] );
    if (! empty( $old_value[‘_multiwidget’] )) {
    unset( $old_value[‘_multiwidget’] );
    }

    Tested the issue gone after my fix and seems like Stream still working fine. However would appreciate if there is an official fix for this. Below are some of the settings of my WordPress:

    • WP version 4.7.4
    • WP multisites
    • Stream version 3.2.0

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error in Tracking Widget Related Changes’ is closed to new replies.