Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

User register page

admin

Started by yehuda 5 years ago · 2 replies · 3230 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago