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

No Access to admin zone after upgrade from 2.2.3 to 2.3.2


Reply


891 Views

Avatar
Tom_Austria

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 http://xxx.yyyyy.at/silverstripe/dev/build/?flush=1.
This show me my page with “your are logged as xxxx”. xxxxx = my username

If I type http://xxx.yyyyy.at/silverstripe/admin 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
Director::set_environment_type("dev");

in the _config.php and get the following message:

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

GET /silverstripe/admin/

Line 257 in /var/www/zzz.yyyy.at/htdocs/silverstripe/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 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 .cache.var.www.zzz.yyyy.at.htdocs.silverstripe.cms.templates.Includes.CMSMain_left.ss

* include(/tmp/silverstripe-cache-var-www-zzz.yyyy.at-htdocs-silverstripe/.cache.var.www.zzz.yyyy.at.htdocs.silverstripe.cms.templates.Includes.CMSMain_left.ss)

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 .cache.var.www.zzz.yyyy.at.htdocs.silverstripe.cms.templates.LeftAndMain.ss

* include(/tmp/silverstripe-cache-var-www-zzz.yyyy.at-htdocs-silverstripe/.cache.var.www.zzz.yyyy.at.htdocs.silverstripe.cms.templates.LeftAndMain.ss)

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 "zzz.yyyy.at" that is shown in the code above is from the old server. The correct Silverstripe CMS should be "xxx.yyyy.at" (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

Tom