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?