Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Error 404 page empty in restricted area

Started by Pedro M 4 years ago · 4 replies · 741 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 renedebaaij, 2 days ago
0 39 2 days ago
Plugins · by complanar, 3 weeks ago
6 392 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 209 2 weeks ago
Plugins · by complanar, 1 month ago
2 484 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 763 2 months ago