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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1628 Views

Avatar
ht_kanrisha

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

Or,

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?

Thanks,

Avatar
JonoM

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: http://open.silverstripe.org/ticket/6241 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?

Avatar
ht_kanrisha

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!