• Resolved leunamme

    (@leunamme)


    Hi dear,

    I had updated the plug-in and everything was working properly until this morning when the same problem of displaying data from the specific country started again.

    The page I need help with: [log in to see the link]

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

    • This reply was modified 4 years, 7 months ago by sindycanber.
    Plugin Author Duke Yin

    (@freeduke)

    Hello @leunamme
    I don’t know why API authors are keep changing the C?te d’Ivoir keywords form one to another, maybe tomorrow will be another keywords..

    One temporarily solution here:

    1 use a text editor(like Notepad++, textmate) open corona-virus-data\admin\class-corona-virus-data-admin.php

    2 Search and find “Ivory Coast” in line 208, replace the fist and second to “C?te d’Ivoire” or “CIV”

    3 Save this php file, go to your setting page reload it, choose C?te d’Ivoire form the selector, hit save settings.

    4 Data should be there in your front end.

    I will wait a few days to see if it is fixed on C?te d’Ivoire or another words, then I will push an update.

    Thank you @leunamme

    All is well. ??

    Thread Starter leunamme

    (@leunamme)

    Hi dear,

    I tried the manipulation that you suggested to me and my site just crashed (reassure you it’s on my test site).
    This is how I changed the line of code (208). Did I do wrong ?:
    I’ve the same with CIV

    <option value="C?te d'Ivoire" <?php selected( $options['cov__select_field_0'], 'C?te d\'Ivoire' ); ?>><?php _e('Ivory Coast','corona-virus-data'); ?></option>

    See error message:

    Parse error: syntax error, unexpected ‘class’ (T_CLASS) in /htdocs/lab.eurekaconseil.net/wp-content/plugins/corona-virus-data/admin/class-corona-virus-data-admin.php on line 1
    Une erreur critique est survenue sur votre site.

    • This reply was modified 4 years, 7 months ago by leunamme.
    Plugin Author Duke Yin

    (@freeduke)

    @leunamme
    Hi try to make “C?te d’Ivoire” to “civ”, witch is its ios3 code.
    like this:

    <option value="civ" <?php selected( $options['cov__select_field_0'], 'civ' ); ?>><?php _e('Ivory Coast','corona-virus-data'); ?></option>

    After that you should select this country and save again.

    Sorry for the trouble.

    • This reply was modified 4 years, 7 months ago by Duke Yin.
    Plugin Author Duke Yin

    (@freeduke)

    Remember to use a pure text editor to edit a php file

    Thread Starter leunamme

    (@leunamme)

    I did the manipulation as indicated with “civ” but it’s the same. The site crashes with the same error message (impossible even to have access to the WordPress backoffice):

    Message error:

    Parse error: syntax error, unexpected ‘class’ (T_CLASS) in /htdocs/lab.eurekaconseil.net/wp-content/plugins/corona-virus-data/admin/class-corona-virus-data-admin.php on line 1

    I looked at line 1 of the file (the very first line of the code) and it was only this bit of instruction. There is nothing else :
    <?php

    I use Notepad++

    Plugin Author Duke Yin

    (@freeduke)

    @leunamme Hi sorry for late

    Try to delete and reinstall the plugin, use wordpress built-in plugin editor to modify the code.

    It’s in wp-admin -> Plugins – Plugin editor.

    Find Coronavirus data in top right, then select admin – > class-corona-virus-data-admin.php

    Replace the “C?te d’Ivoire” with “civ” in line 208

    Good luck

    Plugin Author Duke Yin

    (@freeduke)

    @leunamme Hi there

    I made an update for this and some other issue, please update.

    Thread Starter leunamme

    (@leunamme)

    Hey, how are you. I just did the update and everything works again. I hope this time is the right one

    [ no need to leave link to your site again ]

    • This reply was modified 4 years, 7 months ago by Yui.
    Plugin Author Duke Yin

    (@freeduke)

    @leunamme yeah, hope this API won’t change the key words of C?te d’Ivoire angin, cheers.

    Thread Starter leunamme

    (@leunamme)

    Hello friend,

    The issue is occured again. How can i solve it ?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘No data loading again’ is closed to new replies.