• Resolved jksastrology

    (@jksastrology)


    I have recently moved my website to a new host.

    My website has a custom made checkout page. When I was with my old host, some of my checkout fields relied on the Apache GeoIP extension for it to work. I remember an extension called GeoIP (Geo IP mod by Maxmind) was installed on the previous server (host) for my custom made checkout to work.

    Unfortunately, I cannot install this geoip module on my new hosts server, they do not allow the GeoIP extension to be installed. Therefore, I think I need to use a plugin called GeoIP detection plugin instead (https://pluginarchive.com/wordpress/geoip-detect).

    Does anyone know how I go about using the GeoIP detection plugin instead?

    Below are the errors I am getting on my custom made checkout page. I believe these errors are due to files missing in the include(/usr/share/GeoIP/geoip.inc location, where the GeoIP extension used to be installed on the previous server. I am not sure if the WordPress GeoIP detection plugin could be used instead. I really would appreciate any help!

    Warning: include(/usr/share/GeoIP/geoip.inc): failed to open stream: No such file or directory in /home/customer/www/jksastrology.com/public_html/wp-content/plugins/pdf-after-checkout-generator/pdf_after_checkout_generator.php on line 18

    Warning: include(): Failed opening ‘/usr/share/GeoIP/geoip.inc’ for inclusion (include_path=’.:/usr/local/php56/pear’) in /home/customer/www/jksastrology.com/public_html/wp-content/plugins/pdf-after-checkout-generator/pdf_after_checkout_generator.php on line 18

    Fatal error: Call to undefined function geoip_open() in /home/customer/www/jksastrology.com/public_html/wp-content/plugins/pdf-after-checkout-generator/pdf_after_checkout_generator.php on line 19

    Thank you

    Jamie

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Benjamin Pick

    (@benjamin4)

    GeoIP and GeoIPv2 has a completely different API, so you will need to modify your PHP code. Actually, my plugin provides a compat layer so with the method geoip_detect_get_info_from_ip() you will receive a class of type geoiprecord as in GeoIP. But still, you will need a developer to dive into the custom code – my plugin is only there to help the developer’s work.

    Thread Starter jksastrology

    (@jksastrology)

    Hello Benjamin,

    Thank you for your response. What is the difference between GeoIP and GeoIPv2 ?

    I am very new to coding by the way.

    Also, what is the difference between the GeoIP Apache mod, and the GeoIP detection plugin?

    By goal is to use the wordpress GeoIP detection plugin in replace of the GeoIP apache module.

    Thank you,

    Jay

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using the WordPress GeoIP Detection Plugin with a Custom Made Checkout’ is closed to new replies.