GeenStijl Posted June 30, 2014 Share Posted June 30, 2014 Im getting the following error when i try to edit email templates: We're sorry, but you cannot use "{php}" in a ticket submission as this is currently being used in exploit attempts. If you do have a legitimate issue, please press the back button in your browser and then change any instances of "{php}" to "(php)" so that your ticket may be submitted. Keep in mind that in the event that you're trying to exploit our system, that neither {php} nor (php) will function. This started to happen after upgrading to 5.2.7 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 30, 2014 Share Posted June 30, 2014 did you look at your email template to see if {php} was present in the template 0 Quote Link to comment Share on other sites More sharing options...
GeenStijl Posted June 30, 2014 Author Share Posted June 30, 2014 did you look at your email template to see if {php} was present in the template There is no {php} in the template. I could edit the template before upgrading.. Here is the template. Dear {$client_name}, Thank you for ordering from ..., your server is setup and the information is below. Please keep this message for your records. Voice Panel URL: http://www.domain.tld Voice Panel E-Mail: {$client_email} Voice Panel Password: {$client_custom_fields.0} Voiceserver IP: {$service_custom_fields.0} NOTE: Copy and paste the IP of your voiceserver and add it as wildcard A record to your domain DNS to use your domain name as your IP address. Product/Service: {$service_product_name} Payment Method: {$service_payment_method} Amount: {$service_recurring_amount} Billing Cycle: {$service_billing_cycle} Next Due Date: {$service_next_due_date} Thank you for choosing us. {$signature} 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 30, 2014 Share Posted June 30, 2014 im curious if you remove all the smarty vars , everything in {} if it will work. Im thinking maybe those are not being assigned to smarty. Its a reach but we have to start somewhere. Try that and let us know if you get the same error. Meanwhile I will noodle over this.. - - - Updated - - - also did you go from 5.2.6 to 5.2.7 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 30, 2014 Share Posted June 30, 2014 I also don't see anything in the changelog from 5.2.6 to 5.2.7 which would alert me. I don't have the full version of 5.2.6 0 Quote Link to comment Share on other sites More sharing options...
GeenStijl Posted June 30, 2014 Author Share Posted June 30, 2014 im curious if you remove all the smarty vars , everything in {} if it will work. Im thinking maybe those are not being assigned to smarty. Its a reach but we have to start somewhere. Try that and let us know if you get the same error. Meanwhile I will noodle over this.. - - - Updated - - - also did you go from 5.2.6 to 5.2.7 I went from 5.2.6 with incremental patch to 5.2.7 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 30, 2014 Share Posted June 30, 2014 and I just saved {php} {/php} to mine ( I have a later version though) to test and it saved it just fine. I also did a search for the error message itself and did not find it in the script. Can you take a screen shot of the page with the error on it for us please so we can see it.. thanks. - - - Updated - - - might I make a suggestion here. 5.2.8 is a security patch. go to 5.2.8 and see if it still happens. You have at last 4 security patches ahead of you http://docs.whmcs.com/Changelog:WHMCS_V5.2#Version_5.2.7 0 Quote Link to comment Share on other sites More sharing options...
GeenStijl Posted June 30, 2014 Author Share Posted June 30, 2014 Here it is: /http://i62.tinypic.com/ng37l4.jpg 0 Quote Link to comment Share on other sites More sharing options...
GeenStijl Posted June 30, 2014 Author Share Posted June 30, 2014 My mistake, i used 5.3.5 at the very beginning and then upgraded to 5.3.6 and later on to 5.3.7. I posted a screenshot but it has to get approved by an moderator. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 30, 2014 Share Posted June 30, 2014 well your on the same version as I am... ok on the screen shot im trying to duplicate that error 0 Quote Link to comment Share on other sites More sharing options...
Infopro Posted June 30, 2014 Share Posted June 30, 2014 Attaching an image to your post using the forum tools instead of linking to outside sources is recommended. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted June 30, 2014 Share Posted June 30, 2014 wow, I even submitted a ticket with php in it.. Posted today at 17:11 {php} echo "hello"; {/php} ---------------------------- do you have any kind of custom email or template module running or is it all out of the box.. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 1, 2014 Share Posted July 1, 2014 there were some file location changes with 5.3.7 did you do those 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 1, 2014 Share Posted July 1, 2014 look at the very bottom of this page, it will show you what goes where now regarding new file locations. http://docs.whmcs.com/Version_5.3_Release_Notes 0 Quote Link to comment Share on other sites More sharing options...
GeenStijl Posted July 1, 2014 Author Share Posted July 1, 2014 Well, it says that its related to the ticket in the error package while im just trying to edit e-mail template. I will try to do a clean install. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 1, 2014 Share Posted July 1, 2014 (edited) yes but if smarty is not in the right place then you may be missing something from smarty. I sort of suspect that's the issue. A clean install is probably the best way to go to be sure. Edited July 1, 2014 by durangod 0 Quote Link to comment Share on other sites More sharing options...
GeenStijl Posted July 1, 2014 Author Share Posted July 1, 2014 Before i did a clean install i made a backup of my current installation and compared the directory includes and includes/classes which had duplicate Smarty, TCPDF and PHPMailer directory. I assume that was causing the problems. The clean install solved the problem. Thanks for your time and help durangod! 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 1, 2014 Share Posted July 1, 2014 Your very welcome sir... glad it all worked out 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.