Database error – Database downloaded and unzipped but failed to install []
-
Error when trying to enable Localise Links. This was working previously on my site.
=INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES(‘cw’, ‘CW’, ‘CUW’, ‘Cura?ao’, ‘Cura?ao’, 12.2, -68.94)=ip2nation install: Database downloaded and unzipped but failed to install []
This appears to be a result of WordPress not handling the special characters in the ip2nation database script correctly. The good news is, it’s not a huge deal. Instead of clicking the “Localize Amazon Links” on the Plugin Setup page, go to the Settings page and find the “Localize Amazon Links” button there.
It appears the option on the Setup page will try to reinstall the database every time, whereas the option in the Settings will not. Once you enable the option in the Settings page, you’re all set. It will show as enabled now in the Setup page as well.
Now, you’ll still be missing about 9 entries from your IP database, but they’re really minor countries that I don’t believe contribute to any Amazon Affiliate programs. If you really want them for some reason, you can run the below SQL script (I won’t walk you through that process, if you don’t know how it’s not a big deal).
INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('cw', 'CW', 'CUW', 'Cura', 'Cura', 12.2, -68.94); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('gg', 'GG', 'GGY', 'Guernsey', 'Guernsey', 49.46, -2.58); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('im', 'IM', 'IMN', 'Isle of Man', 'Isle of Man', 54.23, -4.57); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('je', 'JE', 'JEY', 'Jersey', 'Jersey', 49.21, -2.13); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('bl', 'BL', 'BLM', 'Saint Barthelemy', 'Saint Barth?my', 17.91, -62.83); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('mf', 'MF', 'MAF', 'Saint Martin (French part)', 'Saint Martin (French part)', 17.91, -62.83); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('sx', 'SX', 'SXM', 'Sint Maarten (Dutch part)', 'Sint Maarten (Dutch part)', 18.03, -63.1); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('ss', 'SS', 'SSD', 'South Sudan', 'South Sudan', 18.03, -63.1); INSERT INTO ip2nationCountries (code, iso_code_2, iso_code_3, iso_country, country, lat, lon) VALUES('um', 'UM', 'UMI', 'United States Minor Outlying Islands', 'United States Minor Outlying Islands', 19.3, 166.63); At least that is my understanding of the issue, maybe the plugin developer can let us know if this is correct?
- The topic ‘Database error – Database downloaded and unzipped but failed to install []’ is closed to new replies.