Jump to:

517 Posts in 247 Topics by 260 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Save and Publish - Validation Failed

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1718 Views
  • vegetav
    Avatar
    Community Member
    23 Posts

    Save and Publish - Validation Failed Link to this post

    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
  • D-L
    Avatar
    Community Member
    13 Posts

    Re: Save and Publish - Validation Failed Link to this post

    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.

  • vegetav
    Avatar
    Community Member
    23 Posts

    Re: Save and Publish - Validation Failed Link to this post

    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!

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