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:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SS3 Gridfield "Not Found" Error

Go to End

27 Posts   5838 Views


Community Member, 26 Posts

8 November 2012 at 12:37am

bb-drummer, I don't think your problem is related to the error in this topic but here are a few details that might help.

You don't really need to define an 'ID' field and index on your DataObject since this is created automatically.

These don't seem necessary unless they are adding new fields to the dataobject

class Bereiche1Mitglieder extends BereicheMitglieder {} 
class Bereiche2Mitglieder extends BereicheMitglieder {} 
class Bereiche3Mitglieder extends BereicheMitglieder {}

then you can just use:
public static $has_many = array( 
      "Bereich1Mitglieders"   => "BereicheMitglieder", 
      "Bereich2Mitglieders"   => "BereicheMitglieder", 
      "Bereich3Mitglieders"   => "BereicheMitglieder" 

on your DataObject also you could maybe just use:

static $has_one = array( 
    "BereicheMitgliederPage" => "BereicheMitgliederPage"

on your page object, you probably don't need these line too:

$itemsInGrid1 = DataList::create('Bereiche1Mitglieder'); 
$itemsInGrid2 = DataList::create('Bereiche2Mitglieder'); 
$itemsInGrid3 = DataList::create('Bereiche3Mitglieder'); 

try this and see how it goes. Also would be good if you could give us more details on the error returned.


Community Member, 14 Posts

8 November 2012 at 1:44am

hello thi3r,

thanks for your reply...

with those changes it is not possible to add or delete a record anymore, too (that's why i had those 3 xtra extensions of the DataObject (aka BereicheMitglieder, with those it worked). Also, all record now show up in every of the 3 Bereiche{n}Mitglieder 'groups'...

the error i get is similar to the one in the beginning of this thread:
a message "not found" pops up and in (chrome's) network inspector the result of the corresponding request is "I can't handle sub-URLs of a Form object."


Community Member, 14 Posts

8 November 2012 at 3:48am

hello thi3r,

finally, your hints did the trick... i initially forgot to remove the xtra 'ID' field... and i re-added the extended 'data-objects' (to have those 3 separated 'groups')...

thanks a lot for your help


Go to Top