Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

User register page

admin

Started by yehuda 5 years ago · 2 replies · 3030 views
5 years ago

I am having trouble creating an actual page for user_register. (I have enabled and setup several users from the frontend.) The Readme says to make a blank page called user_register or have that route. When I try this I always get terrible errors.

twig An exception has been thrown during the rendering of a template ("strtr(): Ignoring replacement of empty string")

Right now I'm trying to get my site back up. I removed the page and purged the cache to no avail. It keeps regenerating these cache files after I delete them.
./cache/compiled/config/master-testgrav.cf.php
./cache/compiled/files/53813fc400cb995a928f8caf6c8ff5cf.yaml.php
./cache/compiled/files/6befc9c94366c7230d94ebba9ea14c41.yaml.php

any help thanks

5 years ago

@yehudac, I've tried to create a "User Registration" page myself using the instructions from the README of the Login plugin.

I only managed to create a "User Registration" using the first method by adding a menu-item pointing to the url as set for route_register in login.yaml. Note however that the site.menu method, mentioned in the instructions, does NOT work for most themes.

I've created a new issue for the Login plugin to share my experience.

5 years ago

thanks. i used quark theme to get the site back up.

I tried several methods like adding menu in system/config/site.yaml but it didn't work.

I tried adding page with type: 'item' then redirect to 'user_register'

this worked thanks

Suggested topics

Topic Participants Replies Views Activity
Support · by blu3prince, 3 days ago
1 65 43 minutes ago
Support · by complanar, 6 days ago
6 156 1 day ago
Support · by Rick Beebe, 7 days ago
2 114 3 days ago
Support · by alex, 5 days ago
2 100 4 days ago
Support · by Marcel, 2 weeks ago
1 151 4 days ago