Smarty template error on sub-panel

Hi; I’m getting this error when I do a page load of both DetailView and EditView pages for my custom module:


[05-Aug-2016 11:21:26 Europe/London] PHP Warning:  Illegal string offset 'cookie_name' in C:\devcrm\cache\smarty\templates_c\%%E2^E2B^E2BC33C5%%SubPanelTiles.tpl.php on line 41

Any ideas how I can get around this in an upgrade-safe manner?

TIA.

Well, it seems (as usual) that I’ve had to reverse engineer the code to find the issue… and,(as usual) found it to be a core problem.

In /include/SubPanel/tpls/SubPanelTiles.tpl on line 25:

currently:

should be:

Someone who is familiar with this core code: how can I make this change in an upgrade friendly way??

2 Likes

make a pull request in github so your fix is added to the core and you won’t have to worry about it

best regards