Hello, in my project with version 7.2.1 I am suddenly getting this error:
[Mon May 14 10: 24: 43.364467 2018] [: error] [pid 5994] [client :: 1: 58686] PHP Fatal error: Smarty error: [in cache / modules / Campaigns / EditView.tpl line 712]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1274) in /var/www//include/Smarty/Smarty.class.php on line 1095, referer: http: // localhost / /index.php?module=Campaigns&offset=1&stamp=1526286278080998200&return_module=Campaigns&action=DetailView&record=3f681828-46dc-6af3-632b-5aab8c332a74
when I try to edit a campaign This worked before, maybe it has affected you that I have added a new custom module, from Admin -> Module Builder, although it has nothing to do with the campaigns.
If your error had the full call stack it would be much easier to see where that call is coming from. Can you get that? The bug is (probably) not in Smarty code, but in the SuiteCRM code that calls it.
Check your php_errors.log and give us the list of function calls below that message. These lines start with [0], [1], [2] etc.
Maybe you need XDEBUG installed and activated to see this, I’m not sure.
and put it up there just before the Smarty call. Edit the log message a bit. Then check your logs for the file name immediately before the failure. Then go into that file and check parenthesis.
Sorry, false alarm. It turns out that this campaign module had customized it but later I made a dump of a database that was not matched by this customization. And that’s why.