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.

Content Editor Discussions

Forum for content editors and CMS users.

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

Save and Publish - Validation Failed


Reply

3 Posts   1759 Views

Avatar
vegetav

14 May 2010 at 11:56pm (Last edited: 17 May 2010 10:32pm), Community Member, 23 Posts

I have a problem, I have a silverstripe site that has been working absolutely fine for some time. However after simply updating some text today, when I click 'Save and Publish' where it normally confirms "Published MyPage Successfully" in a green box, I'm getting "Validation Error" in a red box. It's doing this on every page throughout the site and I really need to make the changes live!

Has anyone come accross this problem before?

It seems that the cause may be something to do with the image gallery... I'm getting this error in my gallery tab in the CMS along witht the validation failed when trying to submit.

'admin/EditForm/field/ImageGalleryPics?ctf[ImageGalleryPics][start]=0&ctf[ImageGalleryPics][per_page]=10&ctf[ImageGalleryPics][showall]=0&ctf[ImageGalleryPics][sort]=SortOrder&ctf[ImageGalleryPics][sort_dir]=DESC&ctf[ImageGalleryPics][search]=&ctf[ImageGalleryPics][filter]=' is not a number, only numbers can be accepted for this field

Attached Files
Avatar
D-L

28 May 2010 at 8:44am Community Member, 13 Posts

Yeah I've recently been getting that problem as well - with SilverStripe 2.4.
It seems that it's something to do with the Date fields. If the date fields are cleared, then 'Save' or 'Save and Publish' works fine.

It's definitely a bug of sorts... unless I'm missing something.

Avatar
vegetav

28 May 2010 at 9:20am Community Member, 23 Posts

Ahh... I actually figured out what the problem was in the end. It was a silly mistake really... I was trying to use the same variable twice. Double check your code!