[TYPO3-shop] tt-products: fh_be_library breaks tt_guest
Franz Holzinger
franz at fholzinger.com
Fri Apr 27 08:06:58 CEST 2007
LucitherCom a écrit :
> hello,
>
> prior to to the installation of tt_products
> i installed FH_BE-library 0.0.16
>
> now i have following error in my tt_guest:
>
> Fatal error: Undefined class name 'tx_fhlibrary_view' in
> /xxxxx/xxxxx/xxxx/xxxxxxx/typo3conf/ext/tt_guest/pi/class.tx_ttguest.php on line 165
>
>
> the code in question:
> ------------------------
> if ($contentTmp == 'error') {
> if (t3lib_extMgm::isLoaded(FH_LIBRARY_EXTkey)) {
> $content .= tx_fhlibrary_view::displayHelpPage(
> $this,
> $this->cObj->fileResource('EXT:'.TT_GUEST_EXTkey.'/pi/guest_help.tmpl'),
> TT_GUEST_EXTkey,
> $this->errorMessage
> );
> unset($this->errorMessage);
> } else {
>
> -------------------------------
>
> seems it looks for the loaded extension if it runs into trouble, but
> cannot find the class.
>
> after deinstalling fh_be-lib..
> everything is shiny again.
>
> any ideas why? or is fh_be-lib really needed for the shop?
>
Add this line:
if ($contentTmp == 'error') {
if (t3lib_extMgm::isLoaded(FH_LIBRARY_EXTkey)) {
include_once(PATH_BE_fh_library.'/lib/class.tx_fhlibrary_view.php');
$content .= tx_fhlibrary_view::displayHelpPage(
$this,
$this->cObj->fileResource('EXT:'.TT_GUEST_EXTkey.'/pi/guest_help.tmpl'),
TT_GUEST_EXTkey,
$this->errorMessage
);
- Franz
More information about the TYPO3-project-tt-products
mailing list