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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

[solved] Blank page on Edit using ModelAdmin


Go to End


3 Posts   1472 Views

Avatar
tahbit

Community Member, 24 Posts

21 May 2014 at 3:07am

Edited: 21/05/2014 8:04pm

Hi - using SilverStripe 3. Problem I am having is that when you edit a record you do not always get the the edit form but just a blank area where the form should be.

I am using ModelAdmin for this. Anyone else had this problem - if so any possible causes or solutions?

Avatar
camfindlay

Forum Moderator, 267 Posts

21 May 2014 at 7:56am

Edited: 21/05/2014 8:04pm

Might be worth checking your DataObject code or perhaps providing some more details. ModelAdmin is usually pretty robust so might need more info to help investigate why it is causing issues in your current project :)

Avatar
tahbit

Community Member, 24 Posts

21 May 2014 at 6:15pm

Edited: 21/05/2014 8:04pm

Thanks, Camfindlay for your response. Took your advice and I think I've identified the issue. The cause was two fold, not all of my tables had columns with either Title or Name in them. The other factor could have been some of the joins I had put in place - hasMany in particular.

Once I had edited the above it seemed to have resolve its self.