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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

CMSVersion in 2.0.2-rc3


Go to End


2 Posts   1497 Views

Avatar
Nathan Cox

Community Member, 99 Posts

13 July 2007 at 3:37pm

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

Avatar
Sigurd

Forum Moderator, 628 Posts

16 July 2007 at 3:40pm

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