How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Wrong location with WP Rocket

Viewing 10 posts - 1 through 10 (of 15 total)
  • Author
    Posts
  • #17575
    elix4r
    Participant

    Hey there!

    I am using latest version of PokaTheme and it seems like there is some kind of trouble when you use Geo Location and WP Rocket caching plugin altogether.

    Geo location plugin show an incorrect location – so for example if I am residing in Latvia, the plugin show that I’m resident of USA.

    I’ve tried to clear cache in WP Rocket plugin itself, and in GEO plugin as well. Also I’ve tried to check my site using Chrome, Opera browsers and in incognito mode. The issue still exists.

    I would appreciate any help with this.

    Thank you in advance.

    #17577
    C
    Participant

    Following this thread.

    #17589
    elix4r
    Participant

    I’ve got in touch with WP Rocket and their response was;

    Rosa from WP Rocket here. Thanks for contacting us!

    I have checked your website
    I can notice what you mention. This usually happens when the plugin uses PHP to do the geolocation and when WP Rocket is activated the cache system starts working, so, if the page is cached, the PHP will never be executed.

    This is how caching works, avoiding PHP execution to reduce the loading time. This is the normal way WP Rocket (And other caching plugins) works.

    Explaining a bit more, the PHP code will run only once (for the first visitor), and for the upcoming visitors will appear the cache version with the flag of the previous visitor.

    To solve it, you can:

    Using Geolocation/Geotargeting plugins with WP Rocket – poka’s geolocation plugin is not compatible with WP Rocket, but you can switch to a compatible one.
    Disable page cache and keep optimizations globally on your site.
    Disable the page cache feature in the affected pages.

    Please keep in mind when you disable the cache feature, the performance of your website will be affected.

    If your geolocation feature is using cookies then you might want to try the alternate method below:
    Create Different Cache Files with Dynamic and Mandatory Cookies

    Let me know if you need any further assistance, I am happy to help.😊
    Best Regards,

    I have disabled caching and it seems like GEO location is now shown correctly.

    #17591
    admin
    Keymaster

    Hello,

    There is a conflict between GEOLocation and cache plugins, we have added in our task list to prepare a fix fir this in the next version release of the GEOLocation plugin and of PokaTheme4 (which has the GEOLocation feature built-in).

    Our suggestion for now is to disable caching or (as mentioned by the WP Rocket team) disable the page cache feature in the affected pages.

    #17666
    clickingmedia
    Participant

    Hello PokaTheme developers,

    I’m facing the same Geolocation issue with Cloudflare APO and cache.
    I hope you find a solution soon 🙂

    Thank you for your support and amazing theme,

    Jaume S.

    #17668
    mavenad
    Participant

    Hello I just purchased and downloaded the theme and when attempting to install it it says “installation failed no style.css file found”

    #17672
    admin
    Keymaster

    Hello,

    We are still working on it and I believe we will be able to deliver the next theme version which will include a fix for this. Thank you!

    #17673
    admin
    Keymaster

    Hello mavenad,

    You are trying to install the wrong ZIP.

    First, you need to unzip the ZIP you downloaded. Then, you should install “pokatheme.zip”.

    Check our documentation as well: https://pokatheme.com/pokatheme-documentation/

    #17686
    JT
    Participant

    Same conflict with LiteSpeed Cache, GEO is cached and only the location where it was generated is shown.

    #17687
    clickingmedia
    Participant

    Hello admin,

    Do you have any deadline for the new theme version with the GEO cache fix?
    Meanwhile, I’ve disabled the GEO location feature because the website load was slower without a cache.

    Thank you,

    Jaume S,

Viewing 10 posts - 1 through 10 (of 15 total)
  • You must be logged in to reply to this topic.