I installed a standard SS3.0.5 site and then add the DocsViewer module (master branch) to the /docsviewer folder at the document root and ran /dev/build.
[Warning] Missing argument 2 for DocumentationViewer::handleAction(), called in /Users/steve/__projects/quinn.com/etc/305_docroot/framework/control/RequestHandler.php on line 184 and defined
GET /dev/docs
Line 134 in /Users/steve/__projects/quinn.com/etc/305_docroot/docsviewer/code/controllers/DocumentationViewer.php
Source
125 /**
126 * Overloaded to avoid "action doesn't exist" errors - all URL parts in
127 * this controller are virtual and handled through handleRequest(), not
128 * controller methods.
129 *
130 * @param $request
131 * @param $action
132 * @return SS_HTTPResponse
133 */
134 public function handleAction($request, $action) {
135 try {
136 $response = parent::handleAction($request, $action);
137 } catch(SS_HTTPResponse_Exception $e) {
138 if(strpos($e->getMessage(), 'does not exist') !== FALSE) {
139 return $this;
140 } else {
Trace
DocumentationViewer->handleAction(SS_HTTPRequest)
RequestHandler.php:184
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153
Controller->handleRequest(SS_HTTPRequest,DataModel)
DocumentationViewer.php:176
DocumentationViewer->handleRequest(SS_HTTPRequest,DataModel)
Director.php:296
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:119
Director::direct(/dev/docs,DataModel)
main.php:126
[User Warning] None of these templates can be found in theme 'simple': DocFolderListing.ss
GET /dev/docs
Line 670 in /Users/steve/__projects/quinn.com/etc/305_docroot/framework/view/SSViewer.php
Source
661 $this->chosenTemplates = SS_TemplateLoader::instance()->findTemplates(
662 $templateList, self::current_theme()
663 );
664 }
665
666 if(!$this->chosenTemplates) {
667 $templateList = (is_array($templateList)) ? $templateList : array($templateList);
668
669 user_error("None of these templates can be found in theme '"
670 . self::current_theme() . "': ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING);
671 }
672 }
673
674 /**
675 * Returns true if at least one of the listed templates exists.
676 *
Trace
None of these templates can be found in theme 'simple': DocFolderListing.ss
SSViewer.php:670
SSViewer->__construct(DocFolderListing)
ViewableData.php:325
ViewableData->renderWith(DocFolderListing)
DocumentationViewer.php:652
DocumentationViewer->getContent()
ViewableData.php:106
ViewableData->__get(Content)
ViewableData.php:368
ViewableData->obj(Content,,,1,)
ViewableData.php:408
ViewableData->cachedCall(Content,)
ViewableData.php:421
ViewableData->hasValue(Content,,1)
call_user_func_array(Array,Array)
SSViewer.php:144
SSViewer_Scope->__call(hasValue,Array)
SSViewer.php:490
SSViewer_DataPresenter->__call(hasValue,Array)
SSViewer_DataPresenter->hasValue(Content,,1)
.cache.framework.templates.Controller.ss:39
include(/private/var/folders/s2/r1m_qbxn1dn7fd0slybq9n_w0000gv/T/silverstripe-cache-Users-steve-__projects-quinn.com-etc-305_docroot/.cache.framework.templates.Controller.ss)
SSViewer.php:838
SSViewer->includeGeneratedTemplate(/var/folders/s2/r1m_qbxn1dn7fd0slybq9n_w0000gv/T/silverstripe-cache-Users-steve-__projects-quinn.com-etc-305_docroot/.cache.framework.templates.Controller.ss,DocumentationViewer,,Array)
SSViewer.php:910
SSViewer->process(DocumentationViewer)
Controller.php:214
Controller->handleAction(SS_HTTPRequest,)
DocumentationViewer.php:136
DocumentationViewer->handleAction(SS_HTTPRequest)
RequestHandler.php:184
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153
Controller->handleRequest(SS_HTTPRequest,DataModel)
DocumentationViewer.php:176
DocumentationViewer->handleRequest(SS_HTTPRequest,DataModel)
Director.php:296
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:119
Director::direct(/dev/docs,DataModel)
main.php:126
[Warning] file_get_contents() [function.file-get-contents]: Filename cannot be empty
GET /dev/docs
Line 886 in /Users/steve/__projects/quinn.com/etc/305_docroot/framework/view/SSViewer.php
Source
877 if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process", " for $template");
878 $cacheFile = TEMP_FOLDER . "/.cache"
879 . str_replace(array('\\','/',':'), '.', Director::makeRelative(realpath($template)));
880
881 $lastEdited = filemtime($template);
882
883 if(!file_exists($cacheFile) || filemtime($cacheFile) < $lastEdited || isset($_GET['flush'])) {
884 if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process - compile", " for $template");
885
886 $content = file_get_contents($template);
887 $content = SSViewer::parseTemplateContent($content, $template);
888
889 $fh = fopen($cacheFile,'w');
890 fwrite($fh, $content);
891 fclose($fh);
892
Trace
file_get_contents()
SSViewer.php:886
SSViewer->process(ViewableData_Customised,)
ViewableData.php:335
ViewableData->renderWith(DocFolderListing)
DocumentationViewer.php:652
DocumentationViewer->getContent()
ViewableData.php:106
ViewableData->__get(Content)
ViewableData.php:368
ViewableData->obj(Content,,,1,)
ViewableData.php:408
ViewableData->cachedCall(Content,)
ViewableData.php:421
ViewableData->hasValue(Content,,1)
call_user_func_array(Array,Array)
SSViewer.php:144
SSViewer_Scope->__call(hasValue,Array)
SSViewer.php:490
SSViewer_DataPresenter->__call(hasValue,Array)
SSViewer_DataPresenter->hasValue(Content,,1)
.cache.framework.templates.Controller.ss:39
include(/private/var/folders/s2/r1m_qbxn1dn7fd0slybq9n_w0000gv/T/silverstripe-cache-Users-steve-__projects-quinn.com-etc-305_docroot/.cache.framework.templates.Controller.ss)
SSViewer.php:838
SSViewer->includeGeneratedTemplate(/var/folders/s2/r1m_qbxn1dn7fd0slybq9n_w0000gv/T/silverstripe-cache-Users-steve-__projects-quinn.com-etc-305_docroot/.cache.framework.templates.Controller.ss,DocumentationViewer,,Array)
SSViewer.php:910
SSViewer->process(DocumentationViewer)
Controller.php:214
Controller->handleAction(SS_HTTPRequest,)
DocumentationViewer.php:136
DocumentationViewer->handleAction(SS_HTTPRequest)
RequestHandler.php:184
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153
Controller->handleRequest(SS_HTTPRequest,DataModel)
DocumentationViewer.php:176
DocumentationViewer->handleRequest(SS_HTTPRequest,DataModel)
Director.php:296
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:119
Director::direct(/dev/docs,DataModel)
main.php:126