Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error using email t...
 
Notifications
Clear all

Error using email template w/ "origin" field

2 Posts
2 Users
0 Reactions
1,576 Views
(@jiler)
Posts: 6
Active Member
Topic starter
 
[#7793]

Hello,

I've setup an email template on Invoices with several fields, including "Origin" of the invoice : ${Origin}.
When trying to send an email using this template, ProjeQtOr throw an error :
 

Log file :

2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] on file '/opt/projeqtor/model/persistence/SqlElement.php' at line (6933)
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] cause = Object of class Origin could not be converted to string
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] => #0 /opt/projeqtor/model/persistence/SqlElement.php (6933) -> preg_replace_callback()
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] => #1 /opt/projeqtor/model/persistence/SqlElement.php (5851) -> getMailDetailFromTemplate()
2021-09-21 15:21:17.781 ** ERROR ** [V9.2.3] => #2 /opt/projeqtor/tool/sendMail.php (247) -> sendMailIfMailable()

When removing the ${Origin} field, everything works fine.


 
Posted : 24 Sep 2021 18H57
(@babynus)
Posts: 14952
Member Admin
 

Issue confirmed
Ticket #5722 recorded


 
Posted : 24 Sep 2021 21H03
Share:

Scroll to Top