• Resolved free14

    (@free14)


    I did everything on this instruction https://www.pricebasedcountry.com/docs/getting-started/configuring-woocommerce-geolocation/. But woocommerce’s Status System status doesn’t have “MaxMind GeoIP database”, I have “geolocation” in Woocommerce settings, the maxmind license key is also installed, and I see a database file that was created in my wp-content/uploads/woocommerce_uploads and if it’s removed then it appears automatically. The YITH WooCommerce GeoIP Language Redirect plug-in is installed but by creating rules it does not switch the WPML language. Tell me why there is no point?

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter free14

    (@free14)

    This plug-in YITH WooCommerce GeoIP Language Redirect has nothing to do with the problem. The problem was before him.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    From WooCommerce 3.9, WooCommerce removed the Maxmind database check from the Database section.

    PBoC adds this info to the section Geolocation Debug of the WooCommerce Status Report.

    To check the maxmind database status go to Geolocation debug section.

    Thread Starter free14

    (@free14)

    That’s good news. But I didn’t know where to look and check it out.

    Thread Starter free14

    (@free14)

    Thread Starter free14

    (@free14)

    This item is also missing. ### Geolocation debug info ###

    Plugin Author Oscar Gare

    (@oscargare)

    Go To WooCommerce > Status and scroll to the “Geolocation debug” section.

    PBoC (Price Based on Country ) adds the Geolocation debug section to the system report, so you need to keep PBoC active to see it.

    Thread Starter free14

    (@free14)

    ### Geolocation debug info ###

    Default customer location: geolocation
    MaxMind GeoIP database: ?
    MaxMind GeoIP license: ?
    MM_COUNTRY_CODE: ?
    GEOIP_COUNTRY_CODE: ?
    HTTP_CF_IPCOUNTRY: ?
    HTTP_X_COUNTRY_CODE: ?
    HTTP_X_REAL_IP: ?
    HTTP_X_FORWARDED_FOR: ?
    REMOTE_ADDR: xx.xx.xx.xx
    Real external IP: xx.xx.xx.xx
    WCPBC_USE_REMOTE_ADDR: –
    Geolocation Test: ?The first IP not empty of your server variables does not match with your real IP.

    Thread Starter free14

    (@free14)

    Great news appeared item GeoIP I am very happy. But why doesn’t he define the strange?

    Thread Starter free14

    (@free14)

    Country

    Thread Starter free14

    (@free14)

    REMOTE_ADDR: xx.xx.xx.xx (see local 10.0.0.)
    Real external IP: xx.xx.xx.xx (see real ext 45.142)

    Thread Starter free14

    (@free14)

    This option does not help. $_SERVER[‘HTTP_X_FORWARDED_FOR’] = $_SERVER[‘REMOTE_ADDR’];

    Plugin Author Oscar Gare

    (@oscargare)

    Are you running WordPress in localhost? The WooCommerce geolocation function does not work in a localhost environment.

    Thread Starter free14

    (@free14)

    WordPress is installed on the server (own); access to the external IP is open and the site is visible everywhere.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    If the country is not in an HTTP header (MM_COUNTRY_CODE, GEOIP_COUNTRY_CODE, HTTP_CF_IPCOUNTRY, HTTP_X_COUNTRY_CODE ), WooCommerce uses the first not empty variable from the following SERVER variables to get the customer IP: HTTP_X_REAL_IP, HTTP_X_FORWARDED_FOR, REMOTE_ADDR.

    In your case, WooCommerce will uses REMOTE_ADDR, that does not match with your real external IP, so the WooCommerce geolocation function will not work.

    You can check what value the maxmind database will return for your REMOTE_ADDR and compare it the country of your real externar IP at https://www.maxmind.com/en/geoip-demo

    You have a problem that I can’t solve. Contact your hosting provider support.

    Thread Starter free14

    (@free14)

    But REMOTE_ADDR is the local server address it is for nat. But real external IP at https://www.maxmind.com/en/geoip-demo – shows the correct country and city.

    • This reply was modified 4 years, 10 months ago by free14.
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Maxmind GeoIP database not displayed in Woocommerce-Status’ is closed to new replies.