I have a User registration form:
{exp:user:register
return='member/register/pending'
admin_register='yes'
required='m_firstname|m_lastname|username|email|password|password_confirm'
error_page='notifications/user-error'
}
{!-- form fields --}
{/exp:user:register}
Submitting a successful form returns the correct member/register/pending
template, but submitting a form with errors returns a blank page at the site's root (http://mysite.com/
).
This is my error template; the {if ajax}
/{if not_ajax}
tags are from Mo' Variables:
{!-- Error template for the User module --}
{!-- if the template is requested with Ajax, return JSON data. Otherwise, display a normal page --}
{if ajax}
{exp:http_header content_type='application/json'}
{
"success": false,
"heading": "{heading}",
"message": "{content}"
}
{/if}
{if not_ajax}
{embed='_global/document_head' page_title='{title}'}
<body class="single">
{header}
<article class="bizness">
<header>
<h1>{heading}</h1>
</header>
{content}
{link}
</article>
{footer}
{global_scripts}
{document_foot}
{/if}
Debugging doesn't return anything.
EE 2.6.1
User 3.4.4
notifications/user-error
template? Are you logged in as a Super Admin and have EE debugging set to "1" in both EE and index.php? This is to display any PHP errors if there are any.