Unable to update GP Premium

  • Hi guys,
    I have GP Premium 2.5.5 installed on a website. There is no option to update to version 2.5.6 showing so I cannot update via the WordPress Dashboard.

    At first I though it was just the licence key so I cleared the key then re-added it but got a 403 error – this was fixed by adding the PHP snippet outlined here ‘https://learn.generatepress.com/account/#license-key-activation-issues. So the licence key is correct and it says ‘Receiving premium updates.’ but there is still no option to update the plugin.

    I have also tried disabling the firewall on the site (WordFence) but this has not worked either.

    The site is hosted on an IONOS shared server and all other plugins update correctly.

    Is it possible that the IONOS server is being blocked by GP?

    Kind Regards
    Dave

  • Hi Dave,

    Try going to Dashboard > Updates and click “Check again”.

    If it still doesn’t show after that, could you run the debug steps at the bottom of https://learn.generatepress.com/account/#license-key-activation-issues? Turn on WP_DEBUG and WP_DEBUG_LOG, add the second snippet, then click “Check again” on the Updates screen. The log will show exactly what our server returns for the update check, which tells us whether something is still blocking it. Paste the output in the Private information field.

    To answer your question directly: no, we don’t block hosts or server IPs. The 403 comes from the firewall in front of generatepress.com, which sometimes challenges requests from shared and datacentre IPs — that’s exactly what the secondary API is there to work around. I have the IP you sent and will have it checked on our side.

  • Hi George,
    Thanks so much for the quick reply. I have just gone back to Dashboard > Updates and 2.5.6 is now showing and I have successfully updated to 2.5.6 🙂

    When I added the secondary API code to code snippets I chose to have it ‘Run Everywhere’ as when I set it to just run in ‘administration area’ it did not work (licence code kept failing with 403 error). I assume it is OK to have it ‘run everwhere’ and also that I need to leave the snippet active?

    Can you please also confirm that the IP 162.159.135.42 is the correct one to add to the WordFence Whitelist?

    Again, thanks for your support, it is much appreciated.

    Kind Regards
    Dave

  • Hi Dave,

    Great, glad that’s sorted.

    Yes to both — leave the snippet active and leave it on “Run Everywhere”. That’s the right setting, and there’s a good reason admin-only didn’t work: licence key activation goes through the REST API rather than a normal admin page load, and “administration area” scope doesn’t apply to REST requests. The update check does run in the admin, which is why you’d get inconsistent behaviour between the two. “Run Everywhere” covers both. The snippet does nothing except redirect requests to one specific URL, so there’s no overhead elsewhere on the site.

    Do keep it in place permanently. Every future licence check and update check needs it.

    On the WordFence allowlist — 162.159.135.42 is the correct IP for generatepress.com, but adding it to WordFence won’t make any difference here, and you don’t need to. WordFence filters traffic coming into your site. The problem was your server reaching out to us, which WordFence doesn’t sit in front of. That’s also why disabling it earlier didn’t change anything. The snippet is the actual fix.

    No harm in adding it if you’d rather, it just won’t be doing anything.

  • Hi George,
    What you say makes sense, thanks for the clear amd concise explanations. I’ll mark topic as resolved.

    All best and thanks again for great support.
    Dave

  • Ok, Dave, no problem!

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