Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline mode #1916

Closed
praserx opened this issue Jun 29, 2020 · 7 comments
Closed

Offline mode #1916

praserx opened this issue Jun 29, 2020 · 7 comments

Comments

@praserx
Copy link

praserx commented Jun 29, 2020

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

@NicoHood
Copy link

NicoHood commented Nov 5, 2020

I think I also ran into this issue here getgrav/grav#1237 (comment)

Nevertheless I think the admin panel should work without internet.

@praserx
Copy link
Author

praserx commented Nov 5, 2020

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.

@NicoHood
Copy link

NicoHood commented Nov 6, 2020

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.

w00fz added a commit that referenced this issue Nov 20, 2020
@w00fz
Copy link
Member

w00fz commented Nov 20, 2020

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 w00fz closed this as completed Nov 20, 2020
@NicoHood
Copy link

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

@w00fz
Copy link
Member

w00fz commented Nov 21, 2020

Done.

@NicoHood
Copy link

NicoHood commented Nov 22, 2020

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 getgrav/grav@e16b29c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants