Jump to content

Problem in WHMCS


silenceti

Recommended Posts

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.

Link to comment
Share on other sites

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 ??

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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. :idea:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated