Grav-plugin-admin: Offline mode

Created on 29 Jun 2020  路  7Comments  路  Source: getgrav/grav-plugin-admin

Hi, I have a problem with admin plugin and GPM. My website has no connection to the internet and there should be offline mode, but I still get this error: "An exception has been thrown during the rendering of a template ("GPM not reachable. Please check your internet connection or check the Grav site is reachable")." So is it possible to use Grav in internal network without internet connection (in previous version 1.6 everything was OK and everything worked)? Thanks

enhancement

All 7 comments

I think I also ran into this issue here https://github.com/getgrav/grav/issues/1237#issuecomment-722540799

Nevertheless I think the admin panel should work without internet.

No internet connection also slowing down the admin interface (or it looks like that). So I "fixed" that adding $ignore_exception = true; to the GPM method.

Yes, it slows down every call, as it always tries to connect to the grav page. There should be a cleaner way than just this hack.

Thanks for your comments guys. This is handled better now in Grav 1.7 / Admin 1.10. The implementation was in place but it was indeed missing a few areas where it would still try and wait on a repository indexing.

I tested offline mode now and i could navigate and use the admin as if I was online. Of course you won't see pending updates, some gravatar images might look broken, but you can definitely save in Intranet mode.

@w00fz Nice! Will this fix get backported to grav 1.6?

Done.

Nice! I do not see the commit in the git yet, but I might be missing it with all those different branches. Found it here https://github.com/getgrav/grav/commit/e16b29c56662c2881fef7f2490c1b568abd7dd64

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wildafrica picture wildafrica  路  4Comments

Genenenenaam picture Genenenenaam  路  5Comments

WilliamMiceli picture WilliamMiceli  路  4Comments

artofthesmart picture artofthesmart  路  4Comments

simonlayfield picture simonlayfield  路  3Comments