[TYPO3-doc] Standalone Sphinx

Philipp Gampe philipp.gampe at typo3.org
Thu Apr 18 13:33:13 CEST 2013


Hi Xavier,

Xavier Perseguers wrote:

> Hi,
> 
> The Sphinx extension (Forge) now comes with a simple Backend module to
> compile your documentation... :)
> 
> Happy documenting!

Not working with current core :(

I think you first have to get the folder object from the folder name and 
then call start.

Uncaught TYPO3 Exception
#1: PHP Catchable Fatal Error: Argument 1 passed to 
TYPO3\CMS\Filelist\FileList::start() must be an instance of 
TYPO3\CMS\Core\Resource\Folder, string given, called in /home/phil/git-
clones/git-svn/sphinx/Classes/Controller/mod1/index.php on line 86 and 
defined in /home/phil/t3-playground/t3-
git/typo3/sysext/filelist/Classes/FileList.php line 174 (More information)

TYPO3\CMS\Core\Error\Exception thrown in file
/home/phil/t3-playground/t3-
git/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 108.

4 TYPO3\CMS\Core\Error\ErrorHandler::handleError(4096, "Argument 1 passed to 
TYPO3\CMS\Filelist\FileList::…s/Controller/mod1/index.php on line 86 and 
defined", "/home/phil/t3-playground/t3-
git/typo3/sysext/filelist/Classes/FileList.php", 174, array)

/home/phil/t3-playground/t3-git/typo3/sysext/filelist/Classes/FileList.php:
00172:   * @todo Define visibility
00173:   */
00174:  public function start(\TYPO3\CMS\Core\Resource\Folder $folderObject, 
$pointer, $sort, $sortRev, $clipBoard = FALSE, $bigControlPanel = FALSE) {
00175:   $this->script = 
\TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('file_list');
00176:   $this->folderObject = $folderObject;

3 TYPO3\CMS\Filelist\FileList::start("1:/content_uploads/", 0, NULL, NULL, 
NULL, NULL)

/home/phil/git-clones/git-svn/sphinx/Classes/Controller/mod1/index.php:
00084:   $filelist->backPath = $GLOBALS['BACK_PATH'];
00085: 
00086:   $filelist->start($this->id, 0, $this->MOD_SETTINGS['sort'], $this-
>MOD_SETTINGS['reverse'], $this->MOD_SETTINGS['clipBoard'], $this-
>MOD_SETTINGS['bigControlPanel']);
00087: 
00088:   // Generate the list

2 Tx_Sphinx_Controller_Mod1::main()

/home/phil/git-clones/git-svn/sphinx/Classes/Controller/mod1/index.php:
00324: }
00325: 
00326: $SOBE->main();
00327: $SOBE->printContent();
00328: 

1 require("/home/phil/git-clones/git-
svn/sphinx/Classes/Controller/mod1/index.php")

/home/phil/t3-playground/t3-git/typo3/mod.php:
00039:  require $temp_path . 'conf.php';
00040:  $BACK_PATH = '';
00041:  require $temp_path . 'index.php';
00042:  $isDispatched = TRUE;
00043: } else {

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – linkvalidator
TYPO3 .... inspiring people to share!



More information about the TYPO3-project-documentation mailing list