[TYPO3-german] Zugriff auf Repository
Eike Starkmann
starkmann at undkonsorten.com
Wed Mar 25 12:11:28 CET 2015
Ich tippe mal stark darauf das die StoragePid nicht gesetzt ist.
Deshalb ist zumindest das Ergebnis leer.
Bis denne, Eike
Am 24.03.2015 um 17:13 schrieb bugblatterbeast:
> Funktioniert denn bei Euch die Extension blog_example und wenn ja auf
> welcher TYPO3 Version???
>
> Bei mir kommt auf Version 6.2 zunächst die Fehlermeldung:
> Fatal error: Access level to
> Tx_BlogExample_Controller_AbstractController::addFlashMessage() must be
> public (as in class TYPO3\CMS\Extbase\Mvc\Controller\AbstractController)
> in
> WEBSITE_PATH/typo3conf/ext/blog_example/Classes/Controller/AbstractController.php
> on line 73
>
> Das lässt sich aber beheben. Daraufhin kommt die Ausgabe:
> PHP Warning
> PHP Warning:
> include_once(WEBSITE_PATH/typo3/sysext/cms/tslib/class.tslib_content.php):
> failed to open stream: No such file or directory in
> WEBSITE_PATH/fileadmin/php/my_functions.php line 4
> PHP Warning
> PHP Warning: include_once(): Failed opening
> 'WEBSITE_PATH/typo3/sysext/cms/tslib/class.tslib_content.php' for
> inclusion
> (include_path='WEBSITE_PATH/typo3/contrib/pear/:.:/usr/share/php:/usr/share/pear')
> in WEBSITE_PATH/fileadmin/php/my_functions.php line 4
>
> Dann kommt die nicht wahrheitsgemäße Meldung: "Es sind momentan keine
> Blogs angelegt"
>
> Testweise habe ich die Extension auch auf einer 4.6er Instanz
> installiert. Da gibt es keine Fehlermeldungen und Warnungen aber
> letzendlich das gleiche Problem.
>
> Ich habe auf beiden Instanzen mal eine Testausgabe wie zuvor in der
> Funktion indexAction() im BlogController implementiert:
> $temp1 = $this->blogRepository->findAll();
> $temp2 = $temp1->toArray();
> $temp3 = print_r($temp2, true);
> echo "<!-- $temp3 -->\n";
>
> Ergebnis ist jedes mal ein leeres Array.
> <!-- Array
> (
> )
> -->
>
> Gibt es denn keine funktionierende Beispiel-Extension für Extbase/FLOW3?
>
> Gruß, bbb
More information about the TYPO3-german
mailing list