Page 1 of 1

Blank Reset Password Page

Posted: Tue May 17, 2022 12:17 pm
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

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 12:50 pm
by alfa24
1) PHP version?
2) turn on debug and post the fatal error.

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 1:41 pm
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

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 2:02 pm
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');

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 2:48 pm
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

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 3:13 pm
by alfa24
is /templates/standard/layout/mail/mail.html.twig present?

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 3:19 pm
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

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 3:23 pm
by alfa24
see into layout folder, not standard

Re: Blank Reset Password Page

Posted: Tue May 17, 2022 3:27 pm
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