Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » SS fatal error when configuring custom field as Translatable

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2213 Views
  • bleed2002
    Avatar
    4 Posts

    SS fatal error when configuring custom field as Translatable Link to this post

    Hi all,

    the problems seems to be known already [1,2], but no solution so far..

    My configuration: SS 2.2.1, PHP 5.2.5, eAccelerator v0.9.5.2, Apache 2, Mysql 5.0.45

    As soon as I add translation-support for my custom-fields by adding the following to my custom (or some existing) class

    static $extensions = array(
    "Translatable('MyCustomField')"
    );

    SS crashes with a fatal error. The error I'm getting is slightly different dependig if I'm on the site or in the admin.
    I figured out that SS tries to call one (user site) or several non existent methods in the repective class.
    On the user site Children is called.
    On the admin site the methods Children, markUnexpanded, markExpanded, AllChildrenIncludingDeleted, numChildren and isMarked are called.

    When I remove the $extensions-array, run /db/build and flush the cache SS works again..

    Could someone of the core team have a look at this issue? No way of building a multilingual-site with custom attributes right now

    Thanks,

    Patrick

    [1] http://www.silverstripe.com/site-builders-forum/flat/21167
    [2] http://www.silverstripe.com/site-builders-forum/flat/25119

  • bleed2002
    Avatar
    4 Posts

    Re: SS fatal error when configuring custom field as Translatable Link to this post

    There might be no solution to this yet, but could anyone (of the core team or just another developer) at least confirm that the error is reproducable? Do you need more information how to reproduce the error?

    Should I open a ticket for this issue? I badly need a solution for this.

    Thanks to anyone,

    Patrick

  • schellmax
    Avatar
    Community Member
    126 Posts

    Re: SS fatal error when configuring custom field as Translatable Link to this post

    i got the same problem. after adding a field to 'translatable', the admin interface crashes with the error:

    FATAL ERROR: Object::__call() Method 'markUnexpanded' not found in class 'ProjectPage'
    At line 190 in C:\xampp\htdocs\silverstripe_behf2\sapphire\core\Object.php

    still no solution for this?

  • poblom
    Avatar
    Community Member
    25 Posts

    Re: SS fatal error when configuring custom field as Translatable Link to this post

    Hi, from a noob!

    Same problem here, and I'm in urgent need for a solution. Tried to enable a custom field for translation and got the same fatal error as described above.

    static $extensions = array(
       "Translatable('Content2')"
       );

    The table was created, but as said before the admin crashes!

    Documentation says "....you have to explicitly enable them for translation". Yes, but how then, what do I need to do more? Or, what is wrong?

    If there is no solution I guess I will have to rebuild my database from scratch and then enable i18n to get it working. Nothing I really would like to do but...

    Is that a correct interpretation of the documentation?

    Anyone?

    /poblom

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