Smarty error after upgrade: 7.8.20 -> 7.8.25

Hi all,

I upgraded my development SuiteCRM (7.8.20 to 7.8.25) and this morning and immediately could not see Account Details.
A blank screen was consistently displayed.

I changed my php.ini file to display errors and this was the error message displayed:

Fatal error: Smarty error: [in cache/themes/SuiteR/modules/Accounts/DetailView.tpl line 60]: syntax error: mismatched tag {/if}

I’ve spent a few hours searching online (including this forum) for a fix for this problem, but was unsuccessful. Fortunately I had backups of the database and web folder, so I have restored to v7.8.20.

Here are the lines from DetailView.tpl that seem to be causing the problem. I have provided the code from the same file in v7.8.20 that works.


DetailView.tpl - Suitecrm 7.8.25 - NOT WORKING!


{capture name="label" assign="label"}{sugar_translate label='LBL_NAME' module='Accounts'}{/capture} {$label|strip_semicolon}: {/if}

++++++++++++++++++++++++++++++++++++
DetailView.tpl - Suitecrm 7.8.20 - WORKING !
++++++++++++++++++++++++++++++++++++

{if !$fields.name.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_NAME' module='Accounts'}{/capture} {$label|strip_semicolon}: {/if}

I hope someone is able to shed some light on this,

Thanks all

Sorry, I can’t find the file you’re describing. Are you trying those variations direclty in ā€œcacheā€, or are you able to tell which original file they’re coming from?

I’d like to check that file in the 7.8.x branch

https://github.com/salesagility/SuiteCRM/tree/7.8.x/themes/SuiteR

to see if it looks like your file, or if maybe some customization is playing trick on you.

My 7.8.20 development environment does have a few customizations for the Accounts and Cases modules but I had no issues with them prior to upgrading to 7.8.25.

I switched to a different theme (Suite 7) during the failed upgrade to 7.8.25. The result was basically the same. The error message pointed to ā€˜cache/themes/Suite7/modules/Accounts/DetailView.tpl’ as the source of the fatal error.

I’m going to try to upgrade to LTS 7.10.12 and see if that fixes this problem.

Have the same problem after upgrade from 7.8.24 to 7.8.25.
Upgraded to 7.10.12 to resolve the problem.

Hi guys.

I think I found the bug.

Before upgrading to 7.10 or 7.11, can you please test this fix on 7.8.25?

https://github.com/salesagility/SuiteCRM/pull/6853/files

Please tell me if this works for you. Thanks.

Thank you. Changed file ā€œDetailView.tplā€ and done ā€œRepairā€.
Now it is ok.

Here is the PR for reference:

https://github.com/salesagility/SuiteCRM/pull/6859

It will be in 7.8.26 coming out very soon.