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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Upgrade to 2.3: Login to Backend fails


Go to End


9 Posts   5588 Views

Avatar
Stephan

Community Member, 55 Posts

26 February 2009 at 10:19pm

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

Avatar
Sam

Administrator, 690 Posts

26 February 2009 at 10:24pm

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?

Avatar
Stephan

Community Member, 55 Posts

26 February 2009 at 10:32pm

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.

Avatar
Stephan

Community Member, 55 Posts

26 February 2009 at 10:48pm

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

Avatar
Stephan

Community Member, 55 Posts

27 February 2009 at 11:18am

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.

Avatar
Sam

Administrator, 690 Posts

27 February 2009 at 11:22am

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.

Avatar
Stephan

Community Member, 55 Posts

27 February 2009 at 11:47am

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

Avatar
tbarho

Community Member, 41 Posts

1 April 2010 at 4:58am

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?

Go to Top