Legacy call failed but got new code working
-
Thanks for the great plugin.
My experience when upgrading to version 2.1.1.
First my site crashed during the upgrade process (at the end of the process it through up some PHP syntax error and failed to re-activate the plugin). From the error message I could see that I had used some PHP in my child theme’s function.php which caused the error. The offending code was:
global $htbrGeoInfo; $htbrGeoInfo = geoip_detect_get_info_from_current_ip();Used FTP to comment out the second line of code, that let me access WP admin. I then tried activating the plugin and it prompted me to update the database which I did.
Then I tried changing to use the new function “geoip_detect2_…” but it complained about my reference to:
$htbrGeoInfo->country_codeChanged it to:
$htbrGeoInfo->country->isoCodeThat fixed it and I’ve been able to find and fix similar PHP code that I used elsewhere in my code. I’ve tested using a proxy server service and it works perfectly.
Now that I’ve got it working on my test site (duplicate of live site), I’m sufficiently confident to update my live site.
Thanks again.
The topic ‘Legacy call failed but got new code working’ is closed to new replies.