Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Error 404 page empty in restricted area

Started by Pedro M 4 years ago · 4 replies · 628 views
4 years ago

Hi there.

Currently I've finished a new web made with Grav https://medioreal.com.

In this site, I have a restricted area only for logged users. Below of this area I have several pages with inherit permissions. If you write any wrong address under this restricted area, it shows empty page instead Error 404 message.

What's happening? Is it a bug of error plugin?

You can see this if you visit, for example this address: https://medioreal.com/area-de-alumnos/xxx.

Thanks in advance

4 years ago

Looks like there should be a login form 🤔

image|690x195

4 years ago

But no login form should appear, since that page does not exist.
Error 404 message should appear

4 years ago

Could it be that login plugin somehow takes over error plugin when that non-existant page is under restricted path? Could you try changing plugin priorities?

4 years ago

I've tried with plugin priorities, with this code in priorities.yaml:

YAML
login:
    onPageInitialized:
        handlePage: 100

Also, I've changed the above code with others variants, such as onPageNotFound and with form and error plugins, but no results.

I think this is a some issue with the error plugin.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Vladimir Novak, 2 weeks ago
3 293 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago