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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Error 404 page empty in restricted area

Started by Pedro M 4 years ago · 4 replies · 490 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 Rene, 1 week ago
2 54 1 week ago
Plugins · by Xavier, 4 weeks ago
2 61 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1188 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 54 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 79 2 months ago