v11 PDF Manager error Cannot use object of type Link2

We are upgrading from v9.x to v11.x

I have a highly customized PDF generation and what appears to be a relatively straightforward error.

PHP Fatal error:  Uncaught Error: Cannot use object of type Link2 as array in /var/www/html/sugarcrm/cache/smarty/templates_c/%%6D/6DF/6DF496D3%%d6e861f7-a86f-11e6-8723-40167e36c126.tpl.php

the line in question is:

</div>  <?php if (isset ( $this->_tpl_vars['fields']['res_resellers_wcont_wolframcontracts_1']['name'] )): ?><div class="page">

<...snip...>

which in my PDF document {if isset($fields.res_resellers_wcont_wolframcontracts_1.name)}, the field in question was obtained by using the Reseller module and Name field from the "Links" section of the dropdown in the "Field" so there is nothing strange there. 

  

I also tried {if !empty($fields.res_resellers_wcont_wolframcontracts_1.name)}

and {if $fields.res_resellers_wcont_wolframcontracts_1.name != ''}

but always get the same error.

What changed in v11.0.1 wrt smarty? Did I miss something in the Release notes?

Parents
  • Hi Francesca,

    There is a change in the smarty library upgrade in the 11.2 version definitely. But as per your above message I understood you are upgrading to 11.0.1. Not sure whether this is affecting from 11.x version. Please go through this link to know about the Smarty Upgrade changes in the 11.2 version. 

    If it is not useful, please ignore it.

    Thanks & Regards,

    Poojitha K

    https://www.bhea.com

Reply
  • Hi Francesca,

    There is a change in the smarty library upgrade in the 11.2 version definitely. But as per your above message I understood you are upgrading to 11.0.1. Not sure whether this is affecting from 11.x version. Please go through this link to know about the Smarty Upgrade changes in the 11.2 version. 

    If it is not useful, please ignore it.

    Thanks & Regards,

    Poojitha K

    https://www.bhea.com

Children