Resend email notification subitely make error 500

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
kenny33
Posts: 2
Joined: Wed Jan 03, 2018 6:06 pm

Resend email notification subitely make error 500

Post by kenny33 »

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 :

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} 
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
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Resend email notification subitely make error 500

Post by mkoch227 »

The initial notification works fine as it uses different logic than the resend button.

Based on the stack trace you provided, it looks like the resend logic cannot find a translation for the "New" status in French. Did you install your French language pack after installing Mods for HESK? Regardless if you installed the language pack before or after Mods for HESK, you should be able to fix this by going to Settings -> Manage Statuses, and editing each status and providing a translation for French (as status translations are not pulled from the language file anymore).
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
kenny33
Posts: 2
Joined: Wed Jan 03, 2018 6:06 pm

Re: Resend email notification subitely make error 500

Post by kenny33 »

Oh thanks a lot I was searching for a mistake in my translation File !

Finally it was true there wasn't french in my database, when i've been in it purpose the good translation, just had to confirm !

Thanks a lot I love your mod, I transmit you my french transalation when finished.
gosanchezamdc
Posts: 2
Joined: Mon Feb 05, 2018 5:28 pm

Re: Resend email notification subitely make error 500

Post by gosanchezamdc »

I have a similar situation

/var/www/hesk/api/BusinessLogic/Emails/EmailSenderHelper.php:41 Undefined index: Spanish

#0 /var/www/hesk/api/BusinessLogic/Emails/EmailSenderHelper.php(41): errorHandler(8, 'Undefined index...', '/var/www/hesk/a...', 41, Array)
#1 /var/www/hesk/api/Controllers/Tickets/ResendTicketEmailToCustomerController.php(72): BusinessLogic\Emails\EmailSenderHelper->sendEmailForTicket(2, 'Spanish', Object(BusinessLogic\Emails\Addressees), Object(BusinessLogic\Tickets\Ticket), Array, Array)
#2 [internal function]: Controllers\Tickets\ResendTicketEmailToCustomerController->get('4495')
#3 /var/www/hesk/api/Link.php(220): call_user_func_array(Array, Array)
#4 /var/www/hesk/api/Link.php(113): Link::callFunction('Controllers\\Tic...', Array, 'GET', Array)
#5 /var/www/hesk/api/index.php(227): Link::all(Array)
#6 {main}

I tried the solution about status translations. It did't work.
Thanks in advance.
Post Reply