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.

Support

User register page

admin

Started by yehuda 5 years ago · 2 replies · 2887 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 Thomas, 1 week ago
2 52 8 hours ago
Support · by Anna, 3 days ago
2 59 11 hours ago
Support · by Justin Young, 12 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago