Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Cached method deprecated in 2.4.7?

Go to End

3 Posts   1108 Views


Community Member, 9 Posts

29 February 2012 at 4:27pm

Hi everyone,

I have an issue with upgrading our silverstripe install from 2.4.6 to 2.4.7.

I use cached methods, which have an underscore (_) prepended to their names, in my code for performance improvement. However, after I upgraded my site to 2.4.7, silverstripe started to produce errors as shown below:

Warning: implode() [function.implode]: Invalid arguments passed
At line 365 in /***/silverstripe/sapphire/core/ViewableData.php


Warning: Illegal offset type
At line 385 in /***/silverstripe/sapphire/core/ViewableData.php

Is this expected behaviour? Is cached method or call deprecated in 2.4.7?



Community Member, 130 Posts

29 February 2012 at 5:21pm

There is a bug that causes this - you can find a patch for ViewableData.php here: although it's strange that you weren't having a problem with 2.4.6 as this bug has been around for a while I think?


Community Member, 9 Posts

1 March 2012 at 12:16am

Oops, I remembered that I applied the patch a while ago. I unintentionally overwrote that file with the 2.4.7 upgrade!

Thank you for reminding me of it, JonoM!