Jump to:

1149 Posts in 2553 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Upgrade to 2.3: Login to Backend fails

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1 2
Go to End
Author Topic: 3332 Views
  • Stephan
    Avatar
    Community Member
    55 Posts

    Upgrade to 2.3: Login to Backend fails Link to this post

    Hi experts,
    I just upgraded to 2.3 on a windows server and the frontend works perfect.
    But I can't log in to the backend.
    When I call /admin and login, I end up at /Security/Security/LoginForm which is empty (no source at all).
    No PHP error is thrown.

    What can I do ?
    I'm totally lost

    TIA
    Stephan

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Upgrade to 2.3: Login to Backend fails Link to this post

    It sounds like the <base> tag isn't being generated properly on the form page.

    Can you look for the <base> tag (in the <head>) and tell us what it says?

  • Stephan
    Avatar
    Community Member
    55 Posts

    Re: Upgrade to 2.3: Login to Backend fails Link to this post

    Thanks for the quick answer.
    But I can't find any base tag.
    Firebug says the generated source is:
    <html><head></head><body></body></html>

    The /admin login page also has no base tag.

  • Stephan
    Avatar
    Community Member
    55 Posts

    Re: Upgrade to 2.3: Login to Backend fails Link to this post

    I switched to dev-mode and now it says:
    [Warning] None of these templates can be found: Security_Security.ss, Security.ss

    and this is true. They are nowhere

    They are also not in the gz-File.

    Is my .htaccess wrong ?
    But it worked till then wirthout problems.

    # Helicon ISAPI_Rewrite configuration file
    # Version 3.1.0.58

    ### SILVERSTRIPE START ###
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !(\.gif)(\.jpg)(\.png)(\.css)(\.js)(\.php)$
    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule (.*) sapphire/main.php?url=$1&%{QUERY_STRING} [L]
    ### SILVERSTRIPE END ###

    TIA
    Stephan

  • Stephan
    Avatar
    Community Member
    55 Posts

    Re: Upgrade to 2.3: Login to Backend fails Link to this post

    Hi experts,
    I'm sorry but is there nobody who can help me out ?
    The site is running on windows with IIS6.0 and mod_rewrite from helicon.
    The site did work perfectly with 2.2.3.
    But after upgrading to 2.3 I can't log into the backend.
    The frontend works perfect.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Upgrade to 2.3: Login to Backend fails Link to this post

    Hi there,

    Make sure that you have this code near the top of the <head> section of your template. It needs to be before script and CSS tags:

    <% base_tag %>

    If it's not there, put it in, and this should get fixed.

  • Stephan
    Avatar
    Community Member
    55 Posts

    Re: Upgrade to 2.3: Login to Backend fails Link to this post

    Hi Sam,
    thanks very much.
    That saved my day.

    But now I do have another problem
    I can't switch to german language in the backend.
    If I do so, it says:
    [Notice] Undefined index: en_US
    GET /sapphire/main.php?url=admin/myprofile&
    Line 16 in C:\inetpub\kunden\silverstripe\wwwroot\cms\lang\de_DE.php

    Although de_DE.php and en_US are avalable.

    TIA
    Stephan

  • tbarho
    Avatar
    Community Member
    41 Posts

    Re: Upgrade to 2.3: Login to Backend fails Link to this post

    So I have a custom DataObject search form on my page that searches for parts, and the form is visible on every page. When I try to use the form on all other pages, it works fine, but if I try to use it on the Security/login page, it breaks with this error:

    [Warning] None of these templates can be found: Security_PartsSearch.ss, Security.ss

    Source

    166                $this->chosenTemplates['main'] = $this->chosenTemplates[$templateFolder];
    167                unset($this->chosenTemplates[$templateFolder]);
    168             }
    169          }
    170
    171          if(isset($_GET['debug_request'])) Debug::message("Final template selections made: " . var_export($this->chosenTemplates, true));
    172
    173       }
    174
    175       if(!$this->chosenTemplates) user_error("None of these templates can be found: ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING);
    176
    177       parent::__construct();
    178    }
    179    
    180    /**
    181     * Returns true if at least one of the listed templates exists
    Trace

    None of these templates can be found: Security_PartsSearch.ss, Security.ss
    Line 175 of SSViewer.php
    SSViewer->__construct(Array)
    Line 305 of Controller.php
    Controller->getViewer(PartsSearch)
    Line 172 of Controller.php
    Controller->handleAction(HTTPRequest)
    Line 129 of RequestHandler.php
    RequestHandler->handleRequest(HTTPRequest)
    Line 119 of Controller.php
    Controller->handleRequest(HTTPRequest)
    Line 280 of Director.php
    Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    Director::direct(/Security/PartsSearch)
    Line 118 of main.php

    I'm using the BlackCandy theme, which has <% base_tag %>. Any ideas?

    3332 Views
Page: 1 2
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.