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.

Customising the CMS /

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

treedropdownfield error - Can't select subpages


Go to End


3 Posts   1510 Views

Avatar
suntrop

Community Member, 141 Posts

16 September 2012 at 2:04am

I have some trouble with a new site running SS3. I created a GridField to add website-internal links.

But the treedropdownfield() produces an error "Not found" when I want to edit a link destination. I click on the dropdown and get the first level pages. But when I click on that little black triangle to open subpages the error message appears and says "Not found".

Strangely only when I edit. When I create a new entry for my related pages GridField everything works fine. I noticed in firebug they have different URL …
/admin/pages/edit/EditForm/field/relatedPages/item/76/ItemEditForm/field/relatedPageID/tree?ID=31&ajax=1
/admin/pages/edit/EditForm/field/relatedPages/item/new/ItemEditForm/field/relatedPageID/tree?ID=31&ajax=1
First doesn't work, second works.

GET http://example.com/admin/pages/edit/EditForm/field/relatedPages/item/76/ItemEditForm/field/relatedPageID/tree?ID=31&ajax=1 404 (Not Found) lib.js:531
jQuery.ajaxTransport.send lib.js:531
jQuery.extend.ajax lib.js:498
$.jstree.plugin._fn.load_node_html lib.js:2424
$.jstree.plugin.$.each.$.jstree._fn.(anonymous function) lib.js:1889
$.jstree.plugin._fn.load_node lib.js:2399
$.jstree.plugin.$.each.$.jstree._fn.(anonymous function) lib.js:1889
$.jstree.plugin._fn.open_node lib.js:1937
$.jstree.plugin.$.each.$.jstree._fn.(anonymous function) lib.js:1889
$.jstree.plugin._fn.toggle_node lib.js:1946
$.jstree.plugin.$.each.$.jstree._fn.(anonymous function) lib.js:1889
$.jstree.plugin._fn.init.get_container.bind.$.proxy.t lib.js:1896
jQuery.extend.proxy.proxy lib.js:46
jQuery.event.dispatch lib.js:207
jQuery.event.add.elemData.handle.eventHandle

I copied the whole SiteTree SQL and put it in a fresh install. Same problem there.

Anybody here who can help?

Avatar
suntrop

Community Member, 141 Posts

17 September 2012 at 9:31pm

Tried to get a little further an recreated the same hierarchy. Unfortunately the same problem.
Anybody who can tell me where to check what the problem is?

Avatar
suntrop

Community Member, 141 Posts

25 September 2012 at 2:04am

It seems to be a bug.

Page
- Subpage
- Subpage 2
- Subpage 3

… works, but …

Page
- Subpage
- Subpage 2
- - Subpage 2.1
- Subpage 3

… fails. When I remove or reorder Subpage 2.1 it works again. I have this error on two sperate installations. Anyone who can confirm or disprove?