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

Can't make registration works!

Started by Muut Archive 10 years ago · 6 replies · 493 views
10 years ago

Hello,

I'm a beginner with Grav and PHP so don't blame too much (I started to read the F*** manual)! :-)

Config: Last Grav installed from the Deliver skeleton + Admin with required plugins.

I try to make a registration form, to do it I follow instructions from the Login plugin at Git (Allow User Registration).

1) Defined /register as 'Registration Path'

  • Tried to open this url in the browser as specified but with no luck! I got:
    400 - Template "form.html.twig" is not defined.
    2) Created a page named Register
  • Retried again, no luck again! (400 - Template "form.html.twig" is not defined.)
  • Tried to define the page type as: Default and Formdata again with no luck! :-(

Of course the form.html.twig exist in the templates/forms folder because it's a 'Team' skeleton. So I suppose that every required files are on the right location.

If someone could help me and guide me to make it works it will be really cool! ;-)

Gilles

10 years ago

Hi, Deliver does not come with a form.html.twig page template in its templates/ folder. Not all the core themes do provide it.

You can copy it from the one present in Antimatter for example: https://github.com/getgrav/grav-theme-antimatter/blob/develop/templates/form.html.twig

With the next release of the Form plugin (available in Grav 1.1 beta) this problem is solved in another way, by making that page template available in all themes by default.

10 years ago

It's just a little confusing for a novice as a file with the same name already exists in the forms folder!

10 years ago

Ok, a file type is only provided by the files present in the templates/ folder, not in its subfolders. Subfolders are for partials, with the exception of the modular folder which serves modular pages.

10 years ago

Also, make sure you follow the right docs. Login 1.3.x, latest stable release, which works on Grav 1.0.x: https://github.com/getgrav/grav-plugin-login/blob/master/README.md

Login 2.0, currently in beta and available in Grav 1.1: https://github.com/getgrav/grav-plugin-login/blob/develop/README.md

We're in a transitioning stage between those 2 releases, so I just tell you this because you might be confused by 2 different set of docs.

10 years ago

Thanks for the details! :-) I really like Grav and can't wait for the next release!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago