Jump to:

1149 Posts in 2553 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Cached method deprecated in 2.4.7?

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 572 Views
  • tksano
    Avatar
    Community Member
    9 Posts

    Cached method deprecated in 2.4.7? Link to this post

    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,

  • JonoM
    Avatar
    Community Member
    103 Posts

    Re: Cached method deprecated in 2.4.7? Link to this post

    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?

  • tksano
    Avatar
    Community Member
    9 Posts

    Re: Cached method deprecated in 2.4.7? Link to this post

    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!

    572 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.