No data loading again
-
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]
-
Hi
-
This reply was modified 5 years, 12 months ago by
sindycanber.
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. 🙂
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 5 years, 12 months ago by
leunamme.
@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 5 years, 12 months ago by
Duke Yin.
Remember to use a pure text editor to edit a php file
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 :
<?phpI use Notepad++
@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
@leunamme Hi there
I made an update for this and some other issue, please update.
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 5 years, 12 months ago by
Yui.
@leunamme yeah, hope this API won’t change the key words of Côte d’Ivoire angin, cheers.
Hello friend,
The issue is occured again. How can i solve it ?
-
This reply was modified 5 years, 12 months ago by
The topic ‘No data loading again’ is closed to new replies.