• Resolved Md Sharif Miah

    (@wpsharif)


    Hi,

    I’m facing an issue with this plugin. Please see the log:

    PHP Notice: ?Trying to access array offset on value of type bool in root\wp-content\plugins\corona-virus-data\includes\class-corona-virus-data.php on line 200

    PHP Notice: ?Trying to access array offset on value of type bool in root\wp-content\plugins\corona-virus-data\includes\class-corona-virus-data.php on line 201

    PHP Notice: ?Trying to access array offset on value of type bool in root\wp-content\plugins\corona-virus-data\includes\class-corona-virus-data.php on line 202

    I’m looking forward to your assistance.

    Best Regards

    Sharif

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Duke Yin

    (@freeduke)

    Hi, Sharif,

    Seems like you didn’t set the options when you trying to use short-codes.

    Please set the plugin options at Admin -> Options -> Corona Virus Data before you insert any short codes in pages or posts.

    Regards.

    • This reply was modified 2 years, 1 month ago by Duke Yin.
    Thread Starter Md Sharif Miah

    (@wpsharif)

    Hi :),

    Thank you so much for your quick response.

    I didn’t find any “Options” option for the plugin. https://prnt.sc/iKks0FiMNSLp

    Could you please help to checking out this?

    Regards

    Plugin Author Duke Yin

    (@freeduke)

    Just select your country (or any country) in that page as in your screenshoot and hit ‘Save Changes’.

    Your PHP notice means there is no options’ been saved in your database, so you have to hit save on that page at least for once.

    Thread Starter Md Sharif Miah

    (@wpsharif)

    Nice! It’s working. Thanks ??

    In that case, if not selected the country it should check the empty value. Then it’ll not showing PHP Notice.

    Anyway, Thanks again.

    Have a good day.

    Plugin Author Duke Yin

    (@freeduke)

    Glad to help.

    PHP notices are the least important and only appear when you are turnning “WP_DEBUG” ‘on’ in site config file, which is ‘off’ by default.

    Notices are just for debug purposes and won’t hurt the plugin process in the vast majority of cases.

    So don’t worry and if you are on product site I highly suggset you to turn WP_DEBUG off in wp_config.

    Thread Starter Md Sharif Miah

    (@wpsharif)

    Hi,

    Again, thank you so much for your assistance.

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Notice: Trying to access array offset on value of type bool’ is closed to new replies.