• Resolved claudiolara

    (@claudiolara)


    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

    (@pupunzi)

    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

    (@claudiolara)

    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

    (@pupunzi)

    It connects to my server (https://pupunzi.com) to check the PLUS version price.

    Thread Starter claudiolara

    (@claudiolara)

    It works if I connect from a browser, if I bought the license, will the problem go away?

    Plugin Author pupunzi

    (@pupunzi)

    Hi, the plugins makes external calls to the 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

    (@claudiolara)

    How do I prevent the warning?

    Plugin Author pupunzi

    (@pupunzi)

    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 6 years, 7 months ago by pupunzi.
    Thread Starter claudiolara

    (@claudiolara)

    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

    (@claudiolara)

    guess what, I need the fix for the pro version ??

    Plugin Author pupunzi

    (@pupunzi)

    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 6 years, 7 months ago by pupunzi.
    Thread Starter claudiolara

    (@claudiolara)

    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.