I managed to get the plugin to work again. Here’s what I did:
0- I had commented out the faulty line of code in my (child) functions.php to get back into my WP admin page.
1- I found that the GeoIP plugin was updated but was not Activated. So I Activated it.
2- I went into the “Options” page for this plugin and clicked on “Update Now”.
3- I uncommented the code in my (child) functions.php and everything worked.
So all good now.
Sorry to hear that …
So the real problem was that the update disactivated the plugin? Weird. You updated via the wordpress backend?
Maybe I should start recommending using function_exist before every plugin call … hm. You could add a check for is_admin() because in the backend you’ll probably not need geo-dectection, right?
I thought all plugin’s were deactivated during their update process and reactivated after the update? So isn’t the problem that the “reactivation” didn’t work? If it had, then the functions.php would not have detected a missing api function.
Yes I updated using the WP backend (admin page). I do each plugin separately so that I can tell which one has caused a problem. It makes it easier to fix.
In a way, I’m glad I haven’t put the function_exist test because that way I got alerted that there was a problem. If I had the function_exist test I might not have noticed that Geo IP detection was not working properly. This way I took action to fix the problem.
I had not realised you could test is_admin. I’ll consider that.
Hm, I’ve checked the wordpress code: you’re right, upgrading actually deactivates it. Still puzzled why this problem doesn’t happen more often/why it fails to activate it.
You’re right, seeing the error message at least tells you something has gone wrong …