Resend email notification subitely make error 500
Posted: Thu Jan 04, 2018 5:22 pm
Script URL: not public
Mods for HESK version: 3.2.5
HESK version: 2.7.5
Hosting company: selfhosted
URL of phpinfo.php: not public
URL of session_test.php: not public
What terms did you try when SEARCHING for a solution: resend email
Write your message below:
Hi,
Thanks fr all your work, I dont undertand one thing, i was searching why with my French translation in progress it takes my english templates instead of french.
So I discovered that ticket started in english stay with english template, so i used a lot the resend button wich was working well...
When i finally updated well the template i resend a last time an answer to myself, perfect I try to resend on a true ticket and a red message :
"Error occurred when trying to send notification email."
I come back on the first where it was working seconds ago the same, i go in apache log en error 500, i finally go in hesk log :
But i don't remember anything i changed between the 2 trys :s i only opened the fr/text.php but closed without modification with nano...
The initial notification goes out without problem...
Can you help me ?
Thanks by advance
Mods for HESK version: 3.2.5
HESK version: 2.7.5
Hosting company: selfhosted
URL of phpinfo.php: not public
URL of session_test.php: not public
What terms did you try when SEARCHING for a solution: resend email
Write your message below:
Hi,
Thanks fr all your work, I dont undertand one thing, i was searching why with my French translation in progress it takes my english templates instead of french.
So I discovered that ticket started in english stay with english template, so i used a lot the resend button wich was working well...
When i finally updated well the template i resend a last time an answer to myself, perfect I try to resend on a true ticket and a red message :
"Error occurred when trying to send notification email."
I come back on the first where it was working seconds ago the same, i go in apache log en error 500, i finally go in hesk log :
Code: Select all
2018-01-03 19:14:04 David REST API: EmailTemplateParser /var/www/hesk/api/BusinessLogic/Emails/EmailTemplateParser.php:132 Undefined index: Français #0 /var/www/hesk/api/BusinessLogic/Emails/EmailTemplateParser.php(132): errorHandler(8, 'Undefined index...', '/var/www/hesk/a...', 132, Array)
#1 /var/www/hesk/api/BusinessLogic/Emails/EmailTemplateParser.php(82): BusinessLogic\Emails\EmailTemplateParser->parseSubject('[#%%TRACK_ID%%]...', Object(BusinessLogic\Tickets\Ticket), 'Fran\xC3\xA7ais', Array, Array)
#2 /var/www/hesk/api/BusinessLogic/Emails/EmailSenderHelper.php(44): BusinessLogic\Emails\EmailTemplateParser->getFormattedEmailForLanguage(1, 'fr', Object(BusinessLogic\Tickets\Ticket), Array, Array)
#3 /var/www/hesk/api/Controllers/Tickets/ResendTicketEmailToCustomerController.php(72): BusinessLogic\Emails\EmailSenderHelper->sendEmailForTicket(1, 'Fran\xC3\xA7ais', Object(BusinessLogic\Emails\Addressees), Object(BusinessLogic\Tickets\Ticket), Array, Array)
#4 /var/www/hesk/api/Link.php(220): Controllers\Tickets\ResendTicketEmailToCustomerController->get('13')
#5 /var/www/hesk/api/Link.php(113): Link::callFunction('Controllers\\Tic...', Array, 'GET', Array)
#6 /var/www/hesk/api/index.php(226): Link::all(Array)
#7 {main}
The initial notification goes out without problem...
Can you help me ?
Thanks by advance