$smarty->assign('action_block','file:blocks/regform.tpl');
$page['need_validator']=1;
//dump_html($_POST);
$reginfo = req('reg',array());
$page['seo_title'] = 'Регистрация';
$regdone=0;
if(isset($reginfo['login'])){
if(validate_mail_uniq($reginfo['login'],$valid,$message)){
register_user($reginfo);
$page['need_validator']=0;
$regdone=1;
// try_authorize($reginfo['login'],$reginfo['pass'],$smarty);
}else{
$reg_error = 'Такой Email уже занят';
$smarty->assign('reg_error',$reg_error);
}
}
$smarty->assign('regdone',$regdone);
//dump_html($reginfo);
?>
Fatal error: Uncaught TypeError: Smarty\Template::parseResourceName(): Return value must be of type string, null returned in /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php:304
Stack trace:
#0 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(255): Smarty\Template->parseResourceName()
#1 /var/www/web.nixpro.by/html/mozgi/morda/templates_c/29c7b43fc13004120c7853c3de8a7a78e4bd7426_0.file_index.tpl.php(106): Smarty\Template->renderSubTemplate()
#2 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template/GeneratedPhpFile.php(111): content_69f148474f6089_72398274()
#3 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template/Compiled.php(110): Smarty\Template\GeneratedPhpFile->getRenderedTemplateCode()
#4 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(180): Smarty\Template\Compiled->render()
#5 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(655): Smarty\Template->render()
#6 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(589): Smarty\Template->_execute()
#7 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Smarty.php(2121): Smarty\Template->fetch()
#8 /var/www/web.nixpro.by/html/index.php(581): Smarty\Smarty->fetch()
#9 {main}
thrown in /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php on line 304