Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Private area not working

Solved by Daniel View solution

Started by alex 2 months ago · 8 replies · 666 views
2 months ago

Hello,

I would like to create a private area on my site. I am using Grav 2.1.6 with the Helios theme 2.1.17.

I followed the documentation at https://learn.getgrav.org/2/cookbook/general-recipes#create-a-private-area and added the following to the page's frontmatter:

YAML
access:
    site.login: true

The login is now enforced (nice!), but after logging in I only see an empty page with the heading "User Login", none of the page content is rendered.

How can I fix this?

Thank you for your help.

2 months ago

Hi Alex, check the Login plugin settings, specifically Options > Redirect to login and Options > Redirect after login and ensure they are set to Disabled.

2 months ago

Hi Vadym,

thanks for the reply. I had those options disabled but still got the same issue.
Anyway, I have somehow manged to get it to work, or get used to it, but it's still a bit weird :)

What i want to achieve:

I would like to have an area on my site with an internal area, where i will put some Guidelines in how to write content. I would like to show the "Internal Area" link in my main navigation, when a user is logged in and hide it for everyone else.

I have this in Frontmatter:

YAML
access:
  site.login: true
login:
  visibility_requires_access: true

Additionally the following non-default configurations:
Plugins -> Login -> Dynamic Page Visibility -> Enabled
Configuration -> System -> Session -> Session Split -> No

Now when i visit the page (with a clean browser cache), the "Internal Area" link is hidden (nice!).
I log into my admin area and visit my page again - the link is still hidden (why?)
If i visit the URL directly, i get a User login form, if i log in, the page is shown and if i hit F5, also the navigation updates.
Also when logout from the admin menu, the page stays visible.

It seems, that "Session Split = No" is not working correctly, or i may misunderstand it.
(i am using Admin2, if that matters)

My problem is now more or less solved, i just want to point out that "Session Split -> No" seems to not change anything on my setup.

last edited 09/18/26 by alex
5 days ago

Hello everybody

I would like to achieve a similar thing than alex and have the same issues when using the helios theme.

The restricted access pages are set up and all works fine when I use the quark2 them for example. But when I switch to the Helios Premium theme the same user logins do not work and also the page structures/ navigation etc do not work. Just in the way alex described above with the additional problem that also refreshing/F5 doesn't help.

Caching is off globally.

Latest grav, latest plugins, fresh install.

Help appreciated as I just bought the Helios Publisher Pro Bundle and expected this to work in the same way as it did when testing under the quark2 theme.

Daniel

5 days ago

@daniel

But when I switch to the Helios Premium theme the same user logins do not work and also the page structures/ navigation etc do not work.

For Premium themes and plugins, there is a dedicated support page on Github. There you will receive support by the devs themselves.

https://github.com/getgrav/grav-premium-issues

1 reply
last edited 11/26/26 by pamtbaau
4 days ago pamtbaau @daniel But when I switch to the Helios Premium theme the same user logins do not work and…

Thank you, I posted the question there, waiting for a response and will give an update here.

I'm still wondering if I missed any other setting... But since it works when I switch the theme to quark2 I currently still blame the theme.

@alex Does the private area now work for you with the helios theme without the need to reload the pages after each login/logout?

4 days ago

Hey Daniel,

I haven't checked in for a while, as I haven't had time to work on my Grav site lately. But I'd definitely love to hear whether contacting the official premium support gets you any further.

(Full disclosure: I didn't know that this ( https://github.com/getgrav/grav-premium-issues ) is the place to turn to as a premium theme user. Good to know.)

last edited 11/27/26 by alex
22 hours ago Solution

Hello all

The private area works now fine with the Helios theme, the developers quickly located the issue and corrected it :-)

❤️ 1

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 225 8 hours ago
Support · by Supple, 5 days ago
1 97 1 day ago
Support · by TomW, 1 week ago
3 158 3 days ago
Support · by TomW, 6 days ago
2 105 5 days ago
Support · by TomW, 1 week ago
3 199 1 week ago