Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Problems with translateable DataObject

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

Page: 1
Go to End
Author Topic: 1431 Views
  • netnoise
    Avatar
    Community Member
    10 Posts

    Problems with translateable DataObject Link to this post

    Hi!

    I have a multilanguage setup enabled with

    Object::add_extension('SiteTree', 'Translatable');
    Object::add_extension('Event', 'Translatable');

    ("Event" is the class name of my custom data object.)

    When trying to view/edit a Data Object using the ComplextTableField the opening lightbox contains the following error message:

    Debug::fatalHandler(256,Uncaught SS_HTTPResponse_Exception: I can't handle sub-URLs of a CMSMain object.,/var/www/silverstripe/sapphire/core/control/RequestHandler.php,287,Array)
    line 650 of Debug.php

    exceptionHandler(exception 'SS_HTTPResponse_Exception' with message 'I can't handle sub-URLs of a CMSMain object.' in /var/www/silverstripe/sapphire/core/control/RequestHandler.php:287
    Stack trace:
    #0 /var/www/silverstripe/sapphire/core/control/RequestHandler.php(165): RequestHandler->httpError(404, 'I can't handle ...')
    #1 /var/www/silverstripe/sapphire/core/control/Controller.php(147): RequestHandler->handleRequest(Object(SS_HTTPRequest))
    #2 /var/www/silverstripe/sapphire/core/control/Director.php(283): Controller->handleRequest(Object(SS_HTTPRequest))
    #3 /var/www/silverstripe/sapphire/core/control/Director.php(127): Director::handleRequest(Object(SS_HTTPRequest), Object(Session))
    #4 /var/www/silverstripe/sapphire/main.php(122): Director::direct('/admin/EditForm...')
    #5 {main})

    Requested URL was: http://example.com/admin/EditForm/field/MyEvent/item/2/edit?ajax=1

    Silverstripe 2.4 beta 1

    Did I miss something?

  • theAlien
    Avatar
    Community Member
    131 Posts

    Re: Problems with translateable DataObject Link to this post

    Hi,
    I've no knowledge of multilanguage-setups.
    But I noticed you're still using 2.3.4 beta1.
    That's pretty old. The 2.3-branche is at 2.3.6 at the moment and there already is an 2.4.0 beta1 version available.

    To sort out if your version is causing the error I would stick to the 2.3.6 stable though...

  • netnoise
    Avatar
    Community Member
    10 Posts

    Re: Problems with translateable DataObject Link to this post

    Hi,

    sorry, was a typo - I'm using 2.4 beta 1. :o)

  • kien vang
    Avatar
    Community Member
    1 Post
    1431 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.