Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » CMSVersion in 2.0.2-rc3

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1306 Views
  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    CMSVersion in 2.0.2-rc3 Link to this post

    I don't know if this is an issue, since I've guessing it only happens in release candidates, but I noticed in 2.0.2-rc3 that there are 3 "undefined offset" errors when you go to admin.

    It turns out they're caused by LeftAndMain::CMSVersion - the regular expressions don't allow for the /rc/ in the version string.

    If you put "(?:\/rc)?" in each of the 3 regexes like this: "/sapphire\/(? ?:branches)|(?:tags))(?:\/rc)?\/([A-Za-z0-9._-]+)\/silverstripe_version/"

    it fixes the errors

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: CMSVersion in 2.0.2-rc3 Link to this post

    Yes I noticed this too, but thanks very much for supplying the patch!

    1306 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.