I have a big problem within the Silverstripe backend! I'm using Translatable to make a multilingual site.
But there are trees that I can open in one language (I think its the original one), but not in others in the backend; I tried it with the trunk version first, this always gave me "Error loading Subtree", today I have tried with the Beta and it gives me
Fatal error: Call to a member function markPartialTree() on a non-object in /Applications/xampp/xamppfiles/htdocs/sputnic2/cms/code/LeftAndMain.php on
directly in the sitetree!
I suppose my classes seem to be ok, since they are working without problems in other places! Please help, because I cant get it working and the site needs to go live as soon as possible!
$project = 'mysite';
$databaseConfig = array(
"type" => "MySQLDatabase",
"server" => "localhost",
"username" => "root",
"password" => "",
"database" => "SS_sputnic2",
// Sites running on the following servers will be
// run in development mode. See
// for a description of what dev mode does.
// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.com/themes/
I've tried to track the problem down a bit, the ajax request /admin/getsubtree?ajax=1&ID=9 doesnt seem to be properly working, for some ids (of the same page type) it does, for some not; I've tried to compare the database rows for working and not-working IDs, but couldnt find any difference... I think the problem is that for some IDs the getRecord methog in LeftandMain.php returns anm object and for some not, couldnt find any more reasons yet!
which also goes according to the tutorial for 2.3.2! I tried it the other way right now, as you described, but the problem remains! And I'm not sure that it is a Translatable problem, because translations work for me perfectly and it's just some certain subtrees in some languages I can't open anymore! :-(