Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Translation Issue while updating 2.2.4.1 -> 2.3.2


Reply


2 Posts   1371 Views

Avatar
Kleinforstkoenig

Community Member, 3 Posts

2 July 2009 at 10:57pm

Hi

i got a strange error while updating my SS2.2.4.1 to 2.3.2. I replaced all the systemfolders and let my customs (mysite and assets) right in place. Updating the Database works just fine, but when i hit the dev/tasks/MigrateTranslatableTask to configure the old translationmodel i got this :

(#177) Migrating from de to de_DE
translation of 'Kontakt' (#90)
[User Error] Bad class to singleton() - UserDefinedForm
GET /dev/tasks/MigrateTranslatableTask

Line 257 in /home/silvers/ltest/site/sapphire/core/Core.php
Source

248 *
249 * @param string $className
250 * @return Object
251 */
252 function singleton($className) {
253    global $_SINGLETONS;
254    if(!isset($className)) user_error("singleton() Called without a
class", E_USER_ERROR);
255    if(!is_string($className)) user_error("singleton() passed bad
class_name: " . var_export($className,true), E_USER_ERROR);
256    if(!isset($_SINGLETONS[$className])) {
257     if(!class_exists($className)) user_error("Bad class to
singleton() - $className", E_USER_ERROR);
258       $_SINGLETONS[$className] = Object::strong_create
($className,null, true);
259       if(!$_SINGLETONS[$className]) user_error("singleton()
Unknown class '$className'", E_USER_ERROR);
260    }
261    return $_SINGLETONS[$className];
262 }
263

Trace

* Bad class to singleton() - UserDefinedForm
Line 257 of Core.php
* singleton(UserDefinedForm)
Line 572 of Versioned.php
* Versioned::get_one_by_stage(UserDefinedForm,Stage,`SiteTree`.`ID`
= 90)
Line 98 of MigrateTranslatableTask.php
* MigrateTranslatableTask->run(HTTPRequest)
Line 51 of TaskRunner.php
* TaskRunner->runTask(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/dev/tasks/MigrateTranslatableTask)
Line 118 of main.php

does anybody have an idea to solve this problem?

greetings,

Avatar
Sam

Administrator, 685 Posts

3 July 2009 at 12:39pm

You should install the userforms module - you've made use of the user-defined forms on your site, a feature that has been moved into a separate module in 2.3.0.