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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

No Access to admin zone after upgrade from 2.2.3 to 2.3.2

Go to End



Community Member, 1 Post

30 June 2009 at 3:16am

Edited: 30/06/2009 3:23am

Dear Community!

I upgraded Silverstripe from 2.2.3 to 2.3.2 (stable).
I left the old files “mysite” and “themes” in the web directory.
All others directories and files I changed with the new ones.
I don’t make any further changes.

After then, I typed
This show me my page with “your are logged as xxxx”. xxxxx = my username

If I type to get access to the admin page I get following error message:

Website Error
There has been an error
The website server has not been able to respond to your request.

After the then added the line

in the _config.php and get the following message:

[User Error] Bad class to singleton() - UserDefinedForm

GET /silverstripe/admin/

Line 257 in /var/www/


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 }



    * Bad class to singleton() - UserDefinedForm

      Line 257 of Core.php

    * singleton(UserDefinedForm)

      Line 206 of SiteTree.php

    * SiteTree::page_type_classes()

      Line 312 of CMSMain.php

    * CMSMain->PageTypes()

      Line 972 of CMSMain.php

    * CMSMain->AddPageOptionsForm()

    * call_user_func_array(Array,Array)

      Line 318 of ViewableData.php

    * ViewableData->obj(AddPageOptionsForm)

      Line 44 of

    * include(/tmp/

      Line 354 of SSViewer.php

    * SSViewer->process(CMSMain)

      Line 773 of ViewableData.php

    * ViewableData->renderWith(Array)

      Line 480 of LeftAndMain.php

    * LeftAndMain->Left()

    * call_user_func_array(Array,Array)

      Line 408 of ViewableData.php

    * ViewableData->XML_val(Left,,1)

      Line 59 of

    * include(/tmp/

      Line 354 of SSViewer.php

    * SSViewer->process(CMSMain)

      Line 175 of Controller.php

    * Controller->handleAction(HTTPRequest)

      Line 129 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(/admin/)  

The URL "" that is shown in the code above is from the old server. The correct Silverstripe CMS should be "" (new server).

The change of the server wasn't in the course of the upgrade, but some month before.

Where I have to change the code or databade so that Silverstripe readout the correct URL.
What is correct way to gain access again to the admin zone.

Thanks in advance

Your sincerly