Title: Warning: Illegal string offset after updating server to latest PHP 5.4
Last modified: August 21, 2016

---

# Warning: Illegal string offset after updating server to latest PHP 5.4

 *  Resolved [Manera](https://wordpress.org/support/users/manera/)
 * (@manera)
 * [13 years ago](https://wordpress.org/support/topic/warning-illegal-string-offset-5/)
 * 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](https://wordpress.org/support/users/manera/)
 * (@manera)
 * [13 years ago](https://wordpress.org/support/topic/warning-illegal-string-offset-5/#post-3758417)
 * 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](https://wordpress.org/support/users/bjtliveset/)
 * (@bjtliveset)
 * [13 years ago](https://wordpress.org/support/topic/warning-illegal-string-offset-5/#post-3758519)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/mixcloud-embed.svg)
 * [Mixcloud Embed](https://wordpress.org/plugins/mixcloud-embed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mixcloud-embed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mixcloud-embed/)
 * [Active Topics](https://wordpress.org/support/plugin/mixcloud-embed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mixcloud-embed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mixcloud-embed/reviews/)

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)

 * 2 replies
 * 2 participants
 * Last reply from: [BJT](https://wordpress.org/support/users/bjtliveset/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/warning-illegal-string-offset-5/#post-3758519)
 * Status: resolved