• Resolved Manera

    (@manera)


    Hi BJT,

    plug-in throws warning after updating server to latest PHP 5.4.x version. The Plugin seems to work fine though:

    Warning: Illegal string offset ‘height’ in /zzz/blog/wp-content/plugins/mixcloud-embed/mixcloud-embed-core.php on line 348

    Warning: Illegal string offset ‘width’ in /zzz/blog/wp-content/plugins/mixcloud-embed/mixcloud-embed-core.php on line 349

    Warning: Illegal string offset ‘color’ in /zzz/blog/wp-content/plugins/mixcloud-embed/mixcloud-embed-core.php on line 350

    Warning: Illegal string offset ‘iframe’ in /zzz/blog/wp-content/plugins/mixcloud-embed/mixcloud-embed-core.php on line 351

    Warning: Illegal string offset ‘playlist’ in /zzz/blog/wp-content/plugins/mixcloud-embed/mixcloud-embed-core.php on line 352

    Warning: Illegal string offset ‘profile’ in /zzz/blog/wp-content/plugins/mixcloud-embed/mixcloud-embed-core.php on line 353

    I already tried uninstalling and re-installing, no success.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Manera

    (@manera)

    Hi again,

    the warning comes up because of a missing isset.
    Here is the fix ??

    Change lines 346-354 to:

    // read if there is a default value or a customized value
            $options = array(
                'height' => (isset ($options["height"]) != "") ? $options["height"] : $this->getOption("player_height"),
                'width' => (isset ($options["width"]) != "") ? $options["width"] : $this->getOption("player_width"),
                'color' => (isset ($options["color"]) != "") ? $options["color"] : $this->getOption("player_color"),
                'iframe' => (isset ($options["iframe"]) != "") ? $options["iframe"] : $this->getOption("player_iframe"),
                'playlist' => (isset ($options["playlist"]) != "") ? $options["playlist"] : $this->getOption("player_playlist"),
                'profile' => (isset ($options["profile"]) != "") ? $options["profile"] : $this->getOption("widget_profile"),
            );
    BJT

    (@bjtliveset)

    fixed in the latest version! thanks for the fix ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: Illegal string offset after updating server to latest PHP 5.4’ is closed to new replies.