silenceti Posted September 21, 2016 Share Posted September 21, 2016 HI, I've a problem in client login homepage: Parse error: syntax error, unexpected '}' in /home/.../vendor/smarty/smarty/libs/SmartyBC.class.php(464) : eval()'d code on line 1 Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/..../vendor/smarty/smarty/libs/SmartyBC.class.php(464) : eval()'d code on line 1 It's something in server or apache? Can someone help? thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 21, 2016 Share Posted September 21, 2016 i've seen that occur if there are {php} tags in the template - do you have any ?? 0 Quote Link to comment Share on other sites More sharing options...
silenceti Posted September 21, 2016 Author Share Posted September 21, 2016 i've seen that occur if there are {php} tags in the template - do you have any ?? I guess so. how can I despite this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 21, 2016 Share Posted September 21, 2016 for the time being, you could try changing an admin setting... setup -> general settings -> security -> allow smarty php tags set it to "Enabled" and see if that makes any difference. http://docs.whmcs.com/Security_Tab#Allow_Smarty_PHP_Tags The use of {php} tags is depreciated in WHMCS v6 and above, but legacy support can be enabled here during a transition period. We recommend keeping this option disabled unless specifically required. For more information refer to Templates and Custom PHP Logic. if this is being caused by {php} tags, then you'll have to update your code and avoid using {php}. is this a new installation, or have you upgraded from a previous version ?? 0 Quote Link to comment Share on other sites More sharing options...
silenceti Posted September 21, 2016 Author Share Posted September 21, 2016 for the time being, you could try changing an admin setting... setup -> general settings -> security -> allow smarty php tags set it to "Enabled" and see if that makes any difference. http://docs.whmcs.com/Security_Tab#Allow_Smarty_PHP_Tags if this is being caused by {php} tags, then you'll have to update your code and avoid using {php}. is this a new installation, or have you upgraded from a previous version ?? HI Brian, I've this enable already --> "allow smarty php tags" This a new install of whmcs with a theme. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 22, 2016 Share Posted September 22, 2016 This a new install of whmcs with a theme. a custom client theme ? so if you switch to using 'Six', does the page work fine ? if so, then it's either an issue with your custom theme (perhaps not the latest version), or you'd added some code/addon/hook that is breaking it. 0 Quote Link to comment Share on other sites More sharing options...
silenceti Posted September 22, 2016 Author Share Posted September 22, 2016 a custom client theme ? so if you switch to using 'Six', does the page work fine ? if so, then it's either an issue with your custom theme (perhaps not the latest version), or you'd added some code/addon/hook that is breaking it. Thanks for your reply. If i switch it works. I can check if there is some update to the theme, but i don't have add any code/addon or hook. thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 22, 2016 Share Posted September 22, 2016 Hi, if there is no additional code/hook/addon, then perhaps the custom theme isn't compatible with the version of WHMCS that you are using (i'm assuming its v6.3.1 ?) difficult to say without seeing it, but if I were you, i'd get hold of the latest version and see if that fixes the issue. 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.