Jump to:

1131 Posts in 1965 Topics by 402 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Translation Issue while updating 2.2.4.1 -> 2.3.2

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 1270 Views
  • Kleinforstkoenig
    Avatar
    Community Member
    3 Posts

    Translation Issue while updating 2.2.4.1 -> 2.3.2 Link to this post

    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,

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Translation Issue while updating 2.2.4.1 -> 2.3.2 Link to this post

    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.

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