Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » treedropdownfield error - Can't select subpages

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

Page: 1
Go to End
Author Topic: 617 Views
  • suntrop
    Avatar
    Community Member
    131 Posts

    treedropdownfield error - Can't select subpages Link to this post

    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?

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: treedropdownfield error - Can't select subpages Link to this post

    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?

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: treedropdownfield error - Can't select subpages Link to this post

    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?

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