[TYPO3] page is being generated and PHP fatal error

Georg Rehfeld georg.rehfeld at gmx.de
Fri Jun 8 02:57:45 CEST 2007


Hi Bing, all,

Bing Du wrote:
> The site supports English only.  The following setting used to be working
> fine
> 
> config.spamProtectEmailAddresses = -2
> config.spamProtectEmailAddresses_atSubst = <img
> src="fileadmin/templates/images/at.gif" align="absbottom" border="0"
> alt="@" />
> 
> I'm trying to understand why it complains about call to undefined function
> encryptcharcode() which is apparently defined fine in class.tslib_fe.php. 
> Apparently encoding email function is broken for some unknown reason.  So
> I was not surprised 'ascii' didn't work as expected.

So I'm now totally clueless. I had a look at the two methods
tslib_fe::encryptCharcode() and tslib_fe::encryptEmail() for 4.1.1
and the code there is fairly simple and looks totally clean to me.

The only little thing is the all lowercase "encryptcharcode()" from the
Apache log whereas the source has "encryptCharcode()" everywhere, but
that obviously is the result of PHP 4 beeing case insensitive for
function/method names. Compare:
http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html

Sorry, Georg
-- 
   ___   ___
  | + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
  |_|_\ |___   georg.rehfeld.nospam at gmx.de    +49 (40) 23 53 27 10

               (Delete .nospam from mail address)


More information about the TYPO3-english mailing list