[Typo3-shop] fatal error
Eric Vlemmings
evlem at world-remove-online.nl
Thu Jul 28 13:25:00 CEST 2005
sr_feuser_register is now installed in typo3conf\ext is that allright? and
what about the static extensions which I also have installed in
typo3conf\ext.
when I fill in all the obliged fields except the AGB one, then I get a
correct message, saying that not everything is filled in. But I can
understand that because that's apart in the code of class.tx_ttproducts.php
if ($check=='') {
$label = '*** AGB ***';
} else {
if (t3lib_extMgm::isLoaded('sr_feuser_register')) {
$label =
$LANG->sL('LLL:EXT:sr_feuser_register/pi1/locallang.php:missing_'.$check);
} else {
$label = 'field: '.$check;
}
}
But if I forget an other obliged field then I get the nasty one.
"Franz Holzinger" <franz at fholzinger.com> schreef in bericht
news:mailman.1.1122548845.5090.typo3-project-tt-products at lists.netfielders.de...
> Hello Eric,
>>
>> If I look at line 371 I see the following:
>>
>> $label =
>> $LANG->sL('LLL:EXT:sr_feuser_register/pi1/locallang.php:missing_'.$check);
>>
>> Does it matter where you have installed the sr_feuser_register? I mean
>> local or global?
>>
>
>>
>>>
>>>Fatal error: Call to a member function on a non-object in
>>>/home/realdata/public_html/typo3/ext/tt_products/pi/class.tx_ttproducts.php
>>>on line 371
>>>
>
> Yes there is a difference, because without it the text for the error
> messages cannot be shown. However I do not understand why the global
> $LANG variable does not have an object in your case.
>
>
>>>My template
>>>document.getElementsByName('infoform')[0].action='###FORM_URL_FINALIZE###';">
>>>
>>>Bananashop template
>>>onclick="document.forms[0].action='###FORM_URL_FINALIZE###';">
>>>
>>>What's the difference between those 2?
>>>
>
> In the first your form has got a name in the second it is unnamed.
> The first solution will work also when you have more than one form on a
> page.
>
>
> Franz
More information about the TYPO3-project-tt-products
mailing list