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

User register page

admin

Started by yehuda 5 years ago · 2 replies · 2975 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 Anna, 14 hours ago
1 43 7 hours ago
Support · by gtx, 1 week ago
4 227 1 day ago
Support · by Paul Hodges, 2 weeks ago
13 274 5 days ago
Support · by Anna, 3 weeks ago
9 333 1 week ago
Support · by TomW, 2 weeks ago
4 187 1 week ago