Blank Reset Password Page

Backend functionalities: user management, course management, reports, certificates, etc.
Post Reply
sistemi.fc
Newbie
Posts: 15
Joined: Tue Mar 02, 2021 4:33 pm

Blank Reset Password Page

Post by sistemi.fc »

Hi,
I ve installed Formalms version 2.4.5 on a private server, everything is working fine except the Lost Password feature.
I click on Lost Password, i m prompted with the page wich asks me the user name or the email used, i enter the email or username , hit SEND and it prompts me a BLANK PAGE, with no Error.
Did anyone else had this problem and know how to fix it?
Ty
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Blank Reset Password Page

Post by alfa24 »

1) PHP version?
2) turn on debug and post the fatal error.
Per supporto GRATUITO contattatemi in privato qui
sistemi.fc
Newbie
Posts: 15
Joined: Tue Mar 02, 2021 4:33 pm

Re: Blank Reset Password Page

Post by sistemi.fc »

Hey,

Version del PHP: 7.0.33-47+ubuntu20.04.1

this is the debug on the blank page



Fatal error: Uncaught Twig_Error_Loader: Unable to find template "/mail/mail.html.twig" (looked into: /var/www/html/docebo/templates/standard/layout). in /var/www/html/docebo/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:232 Stack trace: #0 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(150): Twig_Loader_Filesystem->findTemplate('/mail/mail.html...') #1 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Environment.php(329): Twig_Loader_Filesystem->getCacheKey('/mail/mail.html...') #2 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Environment.php(419): Twig_Environment->getTemplateClass('/mail/mail.html...') #3 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Environment.php(362): Twig_Environment->loadTemplate('/mail/mail.html...') #4 /var/www/html/docebo/appCore/Template/TwigManager.php(81): Twig_Environment->render('/mail/mail.html...', Array) #5 /var/www/html/docebo/lib/lib.mailer.php(243): appCore\Template\TwigManager->render('/mail/mail.html...', Array, '/var/www/html/d...') #6 /var/www/html/docebo in /var/www/html/docebo/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 232
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Blank Reset Password Page

Post by alfa24 »

In /lib/lib.mailer.php

find

Code: Select all

$html = \appCore\Template\TwigManager::getInstance()->render('/mail/mail.html.twig', ['subject' => $subject, 'body' => $body],_templates_ . '/standard/layout');
replace it with:

Code: Select all

$html = \appCore\Template\TwigManager::getInstance()->render('mail/mail.html.twig', ['subject' => $subject, 'body' => $body],_templates_ . '/standard/layout');
Per supporto GRATUITO contattatemi in privato qui
sistemi.fc
Newbie
Posts: 15
Joined: Tue Mar 02, 2021 4:33 pm

Re: Blank Reset Password Page

Post by sistemi.fc »

tried it ... canceled that " / " ... but nothing... this is the error i m getting after canceling the / :

Fatal error: Uncaught Twig_Error_Loader: Unable to find template "mail/mail.html.twig" (looked into: /var/www/html/docebo/templates/standard/layout). in /var/www/html/docebo/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:232 Stack trace: #0 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(150): Twig_Loader_Filesystem->findTemplate('mail/mail.html....') #1 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Environment.php(329): Twig_Loader_Filesystem->getCacheKey('mail/mail.html....') #2 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Environment.php(419): Twig_Environment->getTemplateClass('mail/mail.html....') #3 /var/www/html/docebo/vendor/twig/twig/lib/Twig/Environment.php(362): Twig_Environment->loadTemplate('mail/mail.html....') #4 /var/www/html/docebo/appCore/Template/TwigManager.php(81): Twig_Environment->render('mail/mail.html....', Array) #5 /var/www/html/docebo/lib/lib.mailer.php(243): appCore\Template\TwigManager->render('mail/mail.html....', Array, '/var/www/html/d...') #6 /var/www/html/docebo/ in /var/www/html/docebo/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 232
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Blank Reset Password Page

Post by alfa24 »

is /templates/standard/layout/mail/mail.html.twig present?
Per supporto GRATUITO contattatemi in privato qui
sistemi.fc
Newbie
Posts: 15
Joined: Tue Mar 02, 2021 4:33 pm

Re: Blank Reset Password Page

Post by sistemi.fc »

i m missing the whole MAIL directory...

how can i fix it?

i checked the install kit and its missing from there too
Last edited by sistemi.fc on Tue May 17, 2022 3:23 pm, edited 1 time in total.
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Blank Reset Password Page

Post by alfa24 »

see into layout folder, not standard
Per supporto GRATUITO contattatemi in privato qui
sistemi.fc
Newbie
Posts: 15
Joined: Tue Mar 02, 2021 4:33 pm

Re: Blank Reset Password Page

Post by sistemi.fc »

yeah.... sry ... my bad ... i copied the wrong lines... the mail folder in layout was missing.. i downloaded the install kit and copied the mail folder from there on to the server and now... IT WORKS ..still don t know why it was missing... so ty very much for your help :D
Post Reply