17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2121 Views |
-
SS fatal error when configuring custom field as Translatable

19 January 2008 at 6:46am Last edited: 19 January 2008 6:59am
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 -
Re: SS fatal error when configuring custom field as Translatable

21 January 2008 at 10:29pm
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
-
Re: SS fatal error when configuring custom field as Translatable

1 May 2008 at 11:48pm Last edited: 1 May 2008 11:49pm
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.phpstill no solution for this?
-
Re: SS fatal error when configuring custom field as Translatable

27 July 2008 at 5:58am Last edited: 27 July 2008 6:00am
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
| 2121 Views | ||
|
Page:
1
|
Go to Top |


