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

Login page form not loading

Solved by Jerry Hunt View solution

Started by Jerry Hunt 2 years ago · 3 replies · 295 views
2 years ago

I am serving 2 websites on a single installation based on a subdirecty user/env/info and a variation on the Learn2 theme.

Everything works fine with one exception, on using login to access a private area in the sub site.
I have one set of plugins and relative symlinks in the folder 'env/info/plugins/ to the base plugins for each plugin used in the subdirectory site.
Each site has its own 'config/plugins/' folder with plugin yaml files
THe login form under the main site works
electricalsafety managment.com/private
However the same under the does not generate the form.
electricalsafetymanagment.com/info/private

It clearly a path issue within the plugin, although the admin login works perfectly (for both sites.)
FYI I tried replacing the symlink to the plugin with the full plugin folder but it did't make a difference

Anybody any ideas where to look.

2 years ago

@Jerry, Not sure if it can have any effect, but your sub site, has pipelining enabled. Don't expect it makes a difference, but excluding any difference always helps when searching for issues...

Also, in plugins/login/templates/partials/login-form.html.twig contains:

TWIG
<section id="grav-login">

    {% if page.template == 'login' or show_login_form %}

The \<section> is being written, but the rest is not. Add some dumps like {{ dump(page.template) }} and {{ dump(show_login_form) }}

FYI I tried replacing the symlink to the plugin with the full plugin folder but it did’t make a difference

Did your discard the cache?

2 years ago

Thanks for your help.
I did clear the cache.
Also found another minor issue, probably related.
When I save a plugins config in the sub site, I get Successfully save (and it is) but the admin goes to
admin/admin/plugins/...
which gives error 404
Can't trace why.

I can live with that and for now and given up on private section for the subsite

2 years ago Solution

Addendum
Seem to have fixed the problem.
There was another primary page folder with the name Login, it contained an external link page to an associated site login.
Renaming that folder solved the problem

👍 2

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 54 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago