Jump to:

1132 Posts in 1966 Topics by 403 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » No Access to admin zone after upgrade from 2.2.3 to 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: 781 Views
  • Tom_Austria
    Avatar
    Community Member
    1 Post

    No Access to admin zone after upgrade from 2.2.3 to 2.3.2 Link to this post

    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

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