Results 1 to 8 of 8

Thread: syntax error: unbalanced parenthesis in if statement

  1. #1
    jskov is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    19

    Default syntax error: unbalanced parenthesis in if statement

    When I go to my opportunities detail view, I receive this error. Please help.



    Code:
    Fatal Error: Smarty error: [in cache/modules/Opportunities/DetailView.tpl line 84]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1270) occured in /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php on line 1095 [2010-10-25 17:52:37] display_stack_trace caller, file: /var/www/vhosts/MYSITE.com/httpdocs/crm/include/utils.php line#: 2777
    [L:](:StackTraceErrorHandler)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php[L:1095](:trigger_error)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php[L:1813](Smarty:trigger_error)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty_Compiler.class.php[L:2209](Smarty:_trigger_fatal_error)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty_Compiler.class.php[L:1270](Smarty_Compiler:_syntax_error)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty_Compiler.class.php[L:463](Smarty_Compiler:_compile_if_tag)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty_Compiler.class.php[L:312](Smarty_Compiler:_compile_tag)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php[L:1491](Smarty_Compiler:_compile_file)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php[L:1424](Smarty:_compile_source)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php[L:1263](Smarty:_compile_resource)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/TemplateHandler/TemplateHandler.php[L:273](Smarty:fetch)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/EditView/EditView2.php[L:600](TemplateHandler:displayTemplate)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/View/views/view.detail.php[L:90](EditView:display)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/modules/Opportunities/views/view.detail.php[L:71](ViewDetail:display)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/View/SugarView.php[L:133](OpportunitiesViewDetail:display)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/Controller/SugarController.php[L:291](SugarView:process)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/Controller/SugarController.php[L:272](SugarController:processView)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/SugarApplication.php[L:84](SugarController:execute)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/index.php[L:43](SugarApplication:execute)

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: syntax error: unbalanced parenthesis in if statement

    Hello,

    Try Admin > Repair > Quick Repair & Rebuild.

    If it doesn't help, attach custom/modules/Opportunities/metadata/detailviewdefs.php here.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    jskov is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    19

    Default Re: syntax error: unbalanced parenthesis in if statement

    I tried the quild rebuild a couple times.

    Here is the file.

    Thanks!
    Attached Files Attached Files

  4. #4
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: syntax error: unbalanced parenthesis in if statement

    Hello,

    Have you customized the view by changing view.detail.php for opportunities module?

    As I tried using your file in my instance and I had no such error.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  5. #5
    jskov is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    19

    Default Re: syntax error: unbalanced parenthesis in if statement

    I have not. I have attached that file. I am not sure what the issue is here - i tried to install the theme Modern Aqua over the weekend (I have 6.0.1) and it seems like that may have been when something happened?
    Attached Files Attached Files

  6. #6
    jskov is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    19

    Default Re: syntax error: unbalanced parenthesis in if statement

    In addition, I just turned on Developer Mode, and have this error at the top of every page when it loads. The only other thing I have done in the past while that i can think of is jjwg mapping - but any changes on that were at least a week or 2 ago. This happened within the past day or 2.

    Code:
    Warning: unlink(cache/smarty/templates_c/%%85^85B^85B0F62F%%header.tpl.inc) [function.unlink]: No such file or directory occured in /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php on line 1774 [2010-10-26 09:06:16] display_stack_trace caller, file: /var/www/vhosts/MYSITE.com/httpdocs/crm/include/utils.php line#: 2777
    [L:](:StackTraceErrorHandler)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php[L:1774](:unlink)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/internals/core.rm_auto.php[L:40](Smarty:_unlink)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/Smarty/Smarty.class.php[L:1032](:smarty_core_rm_auto)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/View/SugarView.php[L:493](Smarty:clear_compiled_tpl)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/View/SugarView.php[L:125](SugarView:displayHeader)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/Controller/SugarController.php[L:291](SugarView:process)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/Controller/SugarController.php[L:272](SugarController:processView)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/include/MVC/SugarApplication.php[L:84](SugarController:execute)
    /var/www/vhosts/MYSITE.com/httpdocs/crm/index.php[L:43](SugarApplication:execute)
    Last edited by jskov; 2010-10-26 at 01:10 PM. Reason: Update

  7. #7
    jskov is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    19

    Default RE: syntax error: unbalanced parenthesis in if statement

    Here is the error from the sugarcrm error log:

    Code:
    Tue Oct 26 13:37:20 2010 [21675][1][ERROR] SugarBean.load_relationships, Null relationship name passed.
    Please help.

    Thanks!

  8. #8
    jskov is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    19

    Default Re: syntax error: unbalanced parenthesis in if statement

    I figured out the issues:

    There was a problem with one of the custom fields - this field was included in the Edit and Detail views, but not the list view. I found the field following an error that let me to the .tpl files in cache/modules/Opportunities .

    Once, I found the error line, it lead me to the field, and I disabled that field in those views - bingo.

    Now, just to decide what to do with that field - probably just create a new field, and export data from the bad field - clean it, then import into the new field.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help - SQL Error : The statement has been terminated.
    By roberrington in forum Developer Help
    Replies: 0
    Last Post: 2010-09-20, 12:34 AM
  2. Replies: 2
    Last Post: 2010-04-16, 12:39 PM
  3. Replies: 7
    Last Post: 2009-12-21, 10:49 AM
  4. Replies: 1
    Last Post: 2009-04-09, 08:46 PM
  5. Replies: 1
    Last Post: 2006-10-30, 01:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •