Mautic Community Forums

Editor Causing Timeouts

I have created a perfectly good theme and have tested the mail.html.twig at emailonacid and passed every test. As soon as my theme is loaded into Mautic. First it is not recognised and with the correct HTML markup. If i try to add manually to the editors the campaign cannot be sent “TIMEOUT” and throws the following exceptions. primarily caused by adding %20 in place of the space for all the Twig placehoders.



Solution please and if possible a way to disable the Froala Editor as i much rarther use correct markup for sending emails. and why of why are external links being added to email templates in particular to font awesome which is used nowhere on my template!!!







[2016-08-03 19:09:53] mautic.ERROR: Uncaught PHP Exception SymfonyComponentHttpKernelExceptionNotFoundHttpException: “Requested URL not found: /s/emails/edit/%7B%7B%20getAssetUrl(‘themes/eafs/img/themes/eafs/img/189x82.png’,%20null,%20null,%20true)%20%7D%7D” at /var/www/html/mautic.eafs-info.com/public_html/app/bundles/CoreBundle/Controller/CommonController.php line 411 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): Requested URL not found: /s/emails/edit/%7B%7B%20getAssetUrl(‘themes/eafs/img/themes/eafs/img/189x82.png’,%20null,%20null,%20true)%20%7D%7D at /var/www/html/mautic.eafs-info.com/public_html/app/bundles/CoreBundle/Controller/CommonController.php:411)"} []

[2016-08-03 19:10:22] mautic.ERROR: [MAIL ERROR] Unable to open file for reading [{{%20getAssetUrl(] Log data: ++ Starting Swift_Transport_EsmtpTransport << 220 eafs-info.com ESMTP service ready >> EHLO mautic.eafs-info.com << 250-eafs-info.com says hello 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250-8BITMIME 250-AUTH CRAM-MD5 PLAIN LOGIN 250-AUTH=CRAM-MD5 PLAIN LOGIN 250-XACK 250-SIZE 204800 250-VERP 250 DSN >> AUTH PLAIN cG10YXVzZXIAcG10YXVzZXIAQTI0MTA3MXo= << 235 2.7.0 authentication succeeded ++ Swift_Transport_EsmtpTransport started >> MAIL FROM: << 250 2.1.0 MAIL ok >> RCPT TO: << 250 2.1.5 ok >> DATA << 354 send message [] []

[2016-08-03 19:10:52] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []

[2016-08-03 19:11:23] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []

[2016-08-03 19:11:53] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []

[2016-08-03 19:12:23] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []


I have created a perfectly good theme and have tested the mail.html.twig at emailonacid and passed every test. As soon as my theme is loaded into Mautic. First it is not recognised and with the correct HTML markup. If i try to add manually to the editors the campaign cannot be sent “TIMEOUT” and throws the following exceptions. primarily caused by adding %20 in place of the space for all the Twig placehoders.

Solution please and if possible a way to disable the Froala Editor as i much rarther use correct markup for sending emails. and why of why are external links being added to email templates in particular to font awesome which is used nowhere on my template!!!

[2016-08-03 19:09:53] mautic.ERROR: Uncaught PHP Exception SymfonyComponentHttpKernelExceptionNotFoundHttpException: “Requested URL not found: /s/emails/edit/%7B%7B%20getAssetUrl(‘themes/eafs/img/themes/eafs/img/189x82.png’,%20null,%20null,%20true)%20%7D%7D” at /var/www/html/mautic.eafs-info.com/public_html/app/bundles/CoreBundle/Controller/CommonController.php line 411 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): Requested URL not found: /s/emails/edit/%7B%7B%20getAssetUrl(‘themes/eafs/img/themes/eafs/img/189x82.png’,%20null,%20null,%20true)%20%7D%7D at /var/www/html/mautic.eafs-info.com/public_html/app/bundles/CoreBundle/Controller/CommonController.php:411)"} []
[2016-08-03 19:10:22] mautic.ERROR: [MAIL ERROR] Unable to open file for reading [{{%20getAssetUrl(] Log data: ++ Starting Swift_Transport_EsmtpTransport << 220 eafs-info.com ESMTP service ready >> EHLO mautic.eafs-info.com << 250-eafs-info.com says hello 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250-8BITMIME 250-AUTH CRAM-MD5 PLAIN LOGIN 250-AUTH=CRAM-MD5 PLAIN LOGIN 250-XACK 250-SIZE 204800 250-VERP 250 DSN >> AUTH PLAIN cG10YXVzZXIAcG10YXVzZXIAQTI0MTA3MXo= << 235 2.7.0 authentication succeeded ++ Swift_Transport_EsmtpTransport started >> MAIL FROM: << 250 2.1.0 MAIL ok >> RCPT TO: << 250 2.1.5 ok >> DATA << 354 send message [] []
[2016-08-03 19:10:52] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []
[2016-08-03 19:11:23] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []
[2016-08-03 19:11:53] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []
[2016-08-03 19:12:23] mautic.ERROR: [MAIL ERROR] Connection to 10.23.0.112:2525 Timed Out Log data: !! Connection to 10.23.0.112:2525 Timed Out (code: 0) [] []

Is a known bug in Mautic 2.0 - 2.0.1 have a problem with the Froala Editor that remove markup.

Will be fix soon.

/s/emails/edit/%7B%7B%20getAssetUrl('themes/eafs/img/themes/eafs/img/189x82.png',%20null,%20null,%20true)%20%7D%7

This seems like you are using the TWIG syntax in the Froala editor or something like that. Twig can be used only in the twig files for now.

Hi,

Thank you very much for the clarification. I always had to open the theme in the Froala editor as many of my editable elements were not allowing me to add text etc… I have been writing the code in PHPStorm/Sublime and uploading the theme to a Unix Box and could not figure out the problem in my themes.

I have finally found the soluton. Many of my data slots were coming back as:

However the theme needs to have the data slots as the following:

A very subtle difference in the double quotes causes the slots not to become editable. This was the reason I had to open in Froala. Maby some theme creator can answer this but possible a cross platform/keyboard issue.

<div data-slot="text">
<div data-slot=”text”>