<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span>Manu,
</span></span></span></span></span></span></span></span></div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span><br class=""></span></span></span></span></span></span></span></span></div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span>After some days we ran into this error:</span></span></span></span></span></span></span></span></div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span><b class="">Fatal error</b>: Cannot redeclare csrf_startup() (previously declared in /home/jupix/public_html/vtiger/config.inc.php:213) in <b class="">/home/jupix/public_html/vtiger/config.inc.php</b> on line <b class="">224</b></span></span></span></span></span></span></span></span></div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span><br class=""></span></span></span></span></span></span></span></span></div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span>We added the code you suggested to the end of config.inc.php </span></span></span></span></span></span></span></span></div><div apple-content-edited="true" style="orphans: 2; widows: 2;" class="">Would make any diference?</div><div apple-content-edited="true" style="orphans: 2; widows: 2;" class="">If we add this code to config.php , before line include('config.inc.php’); or after? What do you recommend?</div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span><br class=""></span></span></span></span></span></span></span></span></div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><br class=""></div><div apple-content-edited="true" style="orphans: auto; widows: auto; " class=""><span style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-weight: normal; "><span><span style="font-family: Helvetica; font-style: normal; "><span><span><span><b class=""><br class=""></b></span></span></span></span></span></span></span></span></div>
<br class=""><div><blockquote type="cite" class=""><div class="">No dia 13/09/2015, às 20:04, Steve Kenow <<a href="mailto:skenow@rdspos.com" class="">skenow@rdspos.com</a>> escreveu:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Yeah - any time you edit and save the email, the script is added again. I always view the source before saving and strip out the script completely. 1 will be added back as it is being saved.<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Sep 10, 2015 at 8:15 PM, Richard Hills - Technologywise <span dir="ltr" class=""><<a href="mailto:richard@tw.co.nz" target="_blank" class="">richard@tw.co.nz</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF" class="">
Can anyone tell me more about this issue?<br class="">
<br class="">
I've just set up a workflow to send an email and ideally I don't
want any tracking / html at all. Wondering if there is a way to
force an email for this workflow to exclude all html?<br class="">
<br class="">
My issue is mostly however with the javascript included in the mail:<br class="">
<br class="">
<blockquote type="cite" class="">
<pre class=""> <script type="text/javascript">if (top != self) {top.location.href = self.location.href;}</script><script type="text/javascript">var csrfMagicToken = "sid:6d69ceadb7e999ee89105b6ec2b7f01790db3bb7,1441924512";var csrfMagicName = "__vtrftk";</script><script src="libraries/csrf-magic/csrf-magic.js" type="text/javascript"></script><script type="text/javascript">if (top != self) {top.location.href = self.location.href;}</script><script type="text/javascript">var csrfMagicToken = "sid:b61c3de7d74cdc94362af7597429f8cdfcb0a05c,1441927628";var csrfMagicName = "__vtrftk";</script><script src="libraries/csrf-magic/csrf-magic.js" type="text/javascript"></script></pre>
</blockquote>
I have attempted to add the patch below, but have a feeling the bug
was causing multiples of the javascript to be sent, whereas one is
actually expected?<br class="">
<br class="">
Any advice would be appreciated, worst case I will add a custom
workflow function and use my own mailer calls.<br class="">
<br class="">
Thanks<div class=""><div class="h5"><br class="">
<br class="">
<div class="">On 31/08/15 17:10, Manu urs wrote:<br class="">
</div>
</div></div><blockquote type="cite" class=""><div class=""><div class="h5">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">Hi<br class="">
<br class="">
</div>
Please add the below patch of code in the config.php file
to solve the issue.<br class="">
<br class="">
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<pre class="">/**
* Vtiger specific custom config startup for CSRF
*/
function csrf_startup(){
//Override the default expire time of token
$GLOBALS['csrf']['expires'] = 259200;
/**if an ajax request initiated, then if php serves content with <html> tags
* as a response, then unnecessarily we are injecting csrf magic javascipt
* in the response html at <head> and <body> using csrf_ob_handler().
* So, to overwride above rewriting we need following config.
*/
if(isAjax()) {
$GLOBALS['csrf']['frame-breaker'] = false;
$GLOBALS['csrf']['rewrite-js'] = null;
}
}
function isAjax() {
if (!empty($_SERVER['HTTP_X_PJAX']) && $_SERVER['HTTP_X_PJAX'] == true) {
return true;
} elseif (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
return true;
}
return false;
}</pre>
</blockquote>
<br class="">
</div>
Regards,<br class="">
</div>
Manu Urs<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Sun, Aug 30, 2015 at 11:42 AM,
Stacey Johnson <span dir="ltr" class=""><<a href="mailto:stacey.johnson110@gmail.com" target="_blank" class="">stacey.johnson110@gmail.com</a>></span>
wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">
<div class="">What about below reported bug?<br class="">
</div>
What time frame "soon" should normally cover?<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Sat, May 9, 2015 at 12:46 AM,
Uma S <span dir="ltr" class=""><<a href="mailto:uma.s@vtiger.com" target="_blank" class="">uma.s@vtiger.com</a>></span>
wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">Hi,
<div class=""><br class="">
</div>
<div class="">We are in between different project development
work, will get back soon.</div>
</div>
<div class="gmail_extra">
<div class="">
<div class=""><br class="">
<div class="gmail_quote">On Fri, May 8, 2015 at
9:33 PM, Alan Lord <span dir="ltr" class=""><<a href="mailto:alanslists@gmail.com" target="_blank" class=""></a><a href="mailto:alanslists@gmail.com" target="_blank" class="">alanslists@gmail.com</a>></span>
wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On
08/05/15 16:39, Manuel Fernando wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Uma S,<br class="">
<br class="">
I know you could reproduce this error.
Great, but any fix soon or plans<br class="">
to update us?<br class="">
</blockquote>
<br class="">
</span>
+1<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
<a href="http://www.vtiger.com/" target="_blank" class="">http://www.vtiger.com/</a><br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<div class=""><br class="">
</div>
</div>
</div>
<span class="">-- <br class="">
<div class="">
<div dir="ltr" class="">With<br class="">
Best Regards<br class="">
Uma.S<br class="">
<div class="">Vtiger Team</div>
</div>
</div>
</span></div>
<br class="">
_______________________________________________<br class="">
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank" class="">http://www.vtiger.com/</a><br class="">
</blockquote>
</div>
<br class="">
</div>
<br class="">
_______________________________________________<br class="">
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank" class="">http://www.vtiger.com/</a><br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<br class="">
-- <br class="">
<div class="">
<div dir="ltr" class="">
<div class="">Regards,<br class="">
</div>
Manu<br class="">
</div>
</div>
</div>
<br class="">
<fieldset class=""></fieldset>
<br class="">
</div></div><pre class="">_______________________________________________
<a href="http://www.vtiger.com/" target="_blank" class="">http://www.vtiger.com/</a></pre><span class="HOEnZb"><font color="#888888" class="">
</font></span></blockquote><span class="HOEnZb"><font color="#888888" class="">
<br class="">
<pre cols="72" class="">--
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
<a href="mailto:richard@tw.co.nz" target="_blank" class="">richard@tw.co.nz</a>
<a href="http://www.technologywise.co.nz/" target="_blank" class="">www.technologywise.co.nz</a>
ph: <a href="tel:%2B64%20%280%297%20571%201060" value="+6475711060" target="_blank" class="">+64 (0)7 571 1060</a>
fax: <a href="tel:%2B64%20%280%297%20571%201061" value="+6475711061" target="_blank" class="">+64 (0)7 571 1061</a></pre>
</font></span></div>
<br class="">_______________________________________________<br class="">
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank" class="">http://www.vtiger.com/</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><i class=""><b class="">Steve Kenow</b></i><br class=""></div><div class="">Retail Data Systems of Minnesota<br class=""></div>Manager, Service Desk and End User Support<br class=""><div class="">Direct: 952.392.2686</div><div class="">Office: 952.934.4002</div><div class=""><a href="mailto:skenow@rdspos.com" target="_blank" class="">skenow@rdspos.com</a></div><div class=""><br class=""><img src="http://rdspos.com/Portals/0/Web-RDS-Logo.jpg" height="39" width="96" class=""><br class=""><br class=""><br class=""></div></div></div></div></div></div></div></div></div>
</div>
_______________________________________________<br class=""><a href="http://www.vtiger.com/" class="">http://www.vtiger.com/</a></div></blockquote></div><br class=""></body></html>