Title: Config error
Last modified: March 28, 2018

---

# Config error

 *  Resolved [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * (@claudiolara)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/)
 * IIS 7
    PHP 7.2 Wordpress 4.9.4
 * Plugin install correctly but when I try to configure the plugin using the settings
   link I got an error page:
    “PHP Warning: Illegal string offset ‘COM’ in C:\inetpub\
   WPNazar\wp-content\plugins\wpmbytplayer\mbYTPlayer.php on line 427”
 * Any clues?

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10130787)
 * This is a Warning, not an error and should not be blocking the correct behavior
   of the settings page. Anyway I’m not able to reproduce this behavior; the warning
   you are getting is due to an option that should have been set as array but it
   seams that it doesn’t contain the expected value.
 * That option is filled by an external call to my server to get the price of the
   PLUS version of the plug-in and it seams that in your case it is not possible
   to make the external call.
 * Is that happening on a specific environment or on your production site?
 *  Thread Starter [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * (@claudiolara)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10151741)
 * it is a testing server on a DMZ, do you have te address where the server must
   connect to test it?
    I helped out traslating to spanish the plugin 😉
 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10159009)
 * It connects to my server ([https://pupunzi.com](https://pupunzi.com)) to check
   the PLUS version price.
 *  Thread Starter [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * (@claudiolara)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10161304)
 * It works if I connect from a browser, if I bought the license, will the problem
   go away?
 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10161660)
 * Hi, the plugins makes external calls to the [https://pupunzi.com](https://pupunzi.com)
   server for the license verification; so you’ll have the problem anyway running
   under a DMZ server. the only way is to prevent the warning if the parameter is
   not set.
 *  Thread Starter [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * (@claudiolara)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10161975)
 * How do I prevent the warning?
 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10162051)
 * You should add this two lines
 *     ```
           if (empty($response))
               $response = json_encode(array("result" => "OK", "COM" => "--", "DEV" => "--"));
       ```
   
 * in the “mbYTPlayer.php” file at line 57 to return always a value.
 * Anyway the plug-in is supposed to be on-line to work properly… how can you stream
   from Youtube if your server is off-line?
    -  This reply was modified 8 years, 2 months ago by [pupunzi](https://wordpress.org/support/users/pupunzi/).
 *  Thread Starter [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * (@claudiolara)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10166905)
 * That did the trick!! great thanks!! it is extrange, the server is online and 
   the video works beautifully I will go with the pro now.
 *  Thread Starter [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * (@claudiolara)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10167317)
 * guess what, I need the fix for the pro version 🙂
 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10167708)
 * with the next PLUS release this issue will e fixed. For the time you can add 
   the same two lines:
 *     ```
       if (empty($response))
         $response = json_encode(array("result" => "OK", "COM" => "--", "DEV" => "--"));
       ```
   
 * in the /inc/mb_core.php file at line 265.
    -  This reply was modified 8 years, 2 months ago by [pupunzi](https://wordpress.org/support/users/pupunzi/).
 *  Thread Starter [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * (@claudiolara)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10170297)
 * Thanks, it works great now, once everything is ready I will pass it to production.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Config error’ is closed to new replies.

 * ![](https://ps.w.org/wpmbytplayer/assets/icon.svg?rev=1544312)
 * [mb.YTPlayer for background videos](https://wordpress.org/plugins/wpmbytplayer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmbytplayer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmbytplayer/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmbytplayer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmbytplayer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmbytplayer/reviews/)

## Tags

 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * 11 replies
 * 2 participants
 * Last reply from: [claudiolara](https://wordpress.org/support/users/claudiolara/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/config-error-4/#post-10170297)
 * Status: resolved