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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

V 2.3.3 admin errors


Reply


3 Posts   1018 Views

Avatar
vivilanco

Community Member, 19 Posts

5 August 2009 at 4:19am

Edited: 05/08/2009 4:43am

Hi,

working on a new site and usingthe 2.3.3 base install, but i'm having to revert to the 2.3.2 due to admin login not working. each time it has a different responce (cycles through 3 / 4 different modes)

most the time it does nothing and stays on a blank page, but sometimes... i get the following error:

[Warning] None of these templates can be found: Security_Security.ss, Security.ss
POST /Security/Security/LoginForm

Line 175 in /home/vndcgfmq/clients/healthcareestate.co.uk/sapphire/core/SSViewer.php
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_Security.ss, Security.ss
Line 175 of SSViewer.php
* SSViewer->__construct(Array)
Line 308 of Controller.php
* Controller->getViewer(Security)
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(/Security/Security/LoginForm)
Line 118 of main.php

also getting this with 2.3.2 for somereason within the template im designing... hmm

just as an FYI. thanks

Avatar
Carbon Crayon

Community Member, 598 Posts

29 October 2009 at 6:49am

As I just descovered, this error occurs when you forget the <% base_tag %> in themes/YourTheme/templates/Page.ss
should go just after the <title>.

Hope that helps someone! :)

Avatar
dendeffe

Community Member, 135 Posts

9 January 2010 at 2:46am

Glad I found this thread :) Thanks Aram.

Maybe it's a good idea to stress this in the first tutorial, where there's info about the base tag? http://doc.silverstripe.org/doku.php?id=tutorial:1-building-a-basic-site#templates