TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 06.06.2007, 20:16
Bing Du
Gast
 
Beiträge: n/a
Standard [TYPO3] page is being generated and PHP fatal error

Hi,

Typo3 4.0.6

For some reason, one page started giving 'Page is being generated, If this
message does not disappear within 30 seconds, please reload'. Whenever I
click the page link in the menu, I noticed the following error was
generated in the Apache error_log.

[client 129.186.197.119] PHP Fatal error: Call to undefined function:
encryptcharcode() in
/data/www/html/typo3_src-4.0.6/typo3/sysext/cms/tslib/class.tslib_fe.php
on line 3439

Line 3439 is:

$out .= $this->encryptCharcode($charValue,0x61,0x7A,$offset);

This page used to work fine. It has the following content elements:

Text w/ image
Menu/sitemap
Text
Menu/Sitemap
Text
Menu/Sitemap

The load on the site is low. I also don't think it's related to
extensions because there was no new extension installed before the page
stopped working. I checked Tools->Log on the backend and found one user
inserted and deleted some content on the page. I don't understand why all
of a sudden, it started spitting ugly PHP fatal error. What does
encryptCharcode() do?

Any clue what might cause the problem? I'd appreciate any insight.

Thanks,

Bing
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 06.06.2007, 22:00
Bing Du
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

> Hi,
>
> Typo3 4.0.6
>
> For some reason, one page started giving 'Page is being generated, If this
> message does not disappear within 30 seconds, please reload'. Whenever I
> click the page link in the menu, I noticed the following error was
> generated in the Apache error_log.
>
> [client 129.186.197.119] PHP Fatal error: Call to undefined function:
> encryptcharcode() in
> /data/www/html/typo3_src-4.0.6/typo3/sysext/cms/tslib/class.tslib_fe.php
> on line 3439
>
> Line 3439 is:
>
> $out .= $this->encryptCharcode($charValue,0x61,0x7A,$offset);
>
> This page used to work fine. It has the following content elements:
>
> Text w/ image
> Menu/sitemap
> Text
> Menu/Sitemap
> Text
> Menu/Sitemap
>
> The load on the site is low. I also don't think it's related to
> extensions because there was no new extension installed before the page
> stopped working. I checked Tools->Log on the backend and found one user
> inserted and deleted some content on the page. I don't understand why all
> of a sudden, it started spitting ugly PHP fatal error. What does
> encryptCharcode() do?
>
> Any clue what might cause the problem? I'd appreciate any insight.
>
> Thanks,
>
> Bing


I was able to narrow down the problem a little bit. The problem remains
unsolved.

Looks like it's encrypting email address caused the problem. The site
template has:

# Spam protect emails!# Convert @ to the @ image in emails
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = <img
src="fileadmin/templates/images/at.gif" align="absbottom" border="0"
alt="@" />

The problematic page has a linked e-mail address. After I removed the
email address or just made it plain text, the page showed up fine. I
checked the typo3/sysext/cms/tslib/class.tslib_fe.php file and the
function encryptcharcode() the PHP fatal error complained about was
defined fine. So why it's said undefined?? Also I created a test text
page which just has an email address in it. Rendering the test page
generated the same PHP fatal error. What the heck is wrong?

Bing
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 07.06.2007, 03:57
Georg Rehfeld
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

Hi Bing,

Bing Du wrote:
> Looks like it's encrypting email address caused the problem. The site
> template has:
>
> # Spam protect emails!# Convert @ to the @ image in emails
> config.spamProtectEmailAddresses = 2
> config.spamProtectEmailAddresses_atSubst = <img
> src="fileadmin/templates/images/at.gif" align="absbottom" border="0"
> alt="@" />


Just a wild guess: may be, the alt="@" is responsible? Try to remove it
for a test.

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

(Delete .nospam from mail address)
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 07.06.2007, 11:09
Dmitry Dulepov
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

Hi!

Bing Du wrote:
> For some reason, one page started giving 'Page is being generated, If this
> message does not disappear within 30 seconds, please reload'. Whenever I
> click the page link in the menu, I noticed the following error was
> generated in the Apache error_log.
>
> [client 129.186.197.119] PHP Fatal error: Call to undefined function:
> encryptcharcode() in
> /data/www/html/typo3_src-4.0.6/typo3/sysext/cms/tslib/class.tslib_fe.php
> on line 3439
>
> Line 3439 is:
>
> $out .= $this->encryptCharcode($charValue,0x61,0x7A,$offset);

....
> The load on the site is low. I also don't think it's related to
> extensions because there was no new extension installed before the page
> stopped working. I checked Tools->Log on the backend and found one user
> inserted and deleted some content on the page. I don't understand why all
> of a sudden, it started spitting ugly PHP fatal error. What does
> encryptCharcode() do?


Easy to find from its description:

/**
* Encryption (or decryption) of a single character.
* Within the given range the character is shifted with the supplied
offset.
*
* @param int Ordinal of input character
* @param int Start of range
* @param int End of range
* @param int Offset
* @return string encoded/decoded version of character
*/

This problem happens from time to time but why - it is unclear. The
reason is not yet tracked down.

--
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 07.06.2007, 16:44
Bing Du
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

Hi Georg,

> Hi Bing,
>
> Bing Du wrote:
>> Looks like it's encrypting email address caused the problem. The site
>> template has:
>>
>> # Spam protect emails!# Convert @ to the @ image in emails
>> config.spamProtectEmailAddresses = 2
>> config.spamProtectEmailAddresses_atSubst = <img
>> src="fileadmin/templates/images/at.gif" align="absbottom" border="0"
>> alt="@" />

>
> Just a wild guess: may be, the alt="@" is responsible? Try to remove it
> for a test.
>
> regards, Georg
> --
> ___ ___
> | + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
> |_|_\ |___ georg.rehfeld.nospam (AT) gmx (DOT) de +49 (40) 23 53 27 10
>
> (Delete .nospam from mail address)


Removing '@' didn't make any difference.

I also tried changing config.spamProtectEmailAddresses to 'ascii'. There
was no PHP fatal error anymore. However, the email address shows up as
explicit mailto without being converted to Unicode HTML notation as shown
in the example in the manual
http://typo3.org/documentation/docum....1.0/view/7/3/

===
Example:

mailto:a@b.c will be converted to

mailto:a@b.c
===

Bing
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 07.06.2007, 23:02
Georg Rehfeld
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

Hi Bing,

Bing Du wrote:
> Removing '@' didn't make any difference.
>
> I also tried changing config.spamProtectEmailAddresses to 'ascii'. There
> was no PHP fatal error anymore. However, the email address shows up as
> explicit mailto without being converted to Unicode HTML notation as shown
> in the example in the manual
> http://typo3.org/documentation/docum....1.0/view/7/3/


I tried that with my setup (TYPO3 4.1.1) and 'ascii' works as expected
in the href attribute, but not in the <a> tags content, where only the
at sign is replaced (with some string in my case).

Also, did you respect the limited suggested range (-5 ... 1) instead of
'ascii'?

Without looking into the sources really (so another wild guess I
expect your language not to be english but some asian one? If so,
do you have set up your charset settings correctly to utf-8? May be,
that a certain utf-8 byte combination triggers the error?

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

(Delete .nospam from mail address)
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 07.06.2007, 23:34
Bing Du
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

> Hi Bing,
>
> Bing Du wrote:
>> Removing '@' didn't make any difference.
>>
>> I also tried changing config.spamProtectEmailAddresses to 'ascii'.
>> There
>> was no PHP fatal error anymore. However, the email address shows up as
>> explicit mailto without being converted to Unicode HTML notation as
>> shown
>> in the example in the manual
>> http://typo3.org/documentation/docum....1.0/view/7/3/

>
> I tried that with my setup (TYPO3 4.1.1) and 'ascii' works as expected
> in the href attribute, but not in the <a> tags content, where only the
> at sign is replaced (with some string in my case).
>
> Also, did you respect the limited suggested range (-5 ... 1) instead of
> 'ascii'?
>
> Without looking into the sources really (so another wild guess I
> expect your language not to be english but some asian one? If so,
> do you have set up your charset settings correctly to utf-8? May be,
> that a certain utf-8 byte combination triggers the error?
>
> regards, Georg
> --
> ___ ___
> | + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
> |_|_\ |___ georg.rehfeld.nospam (AT) gmx (DOT) de +49 (40) 23 53 27 10
>
> (Delete .nospam from mail address)


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.

Bing

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #8  
Alt 08.06.2007, 02:57
Georg Rehfeld
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

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...asmus_php.html

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

(Delete .nospam from mail address)
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #9  
Alt 08.06.2007, 22:15
Bing Du
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

> 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...asmus_php.html
>
> Sorry, Georg
> --


Thanks for taking time trying to help, Georg. Really appreciated it. We
have another site pointing to the same typo3 source package and email
encryption works fine there. I suspect it might be some site specific
configuration that broke email encryption on this site.

I know regular pages have history information so you can see all the
changes that have been made on the page. Does template record keeps
history as well? In Tools->Log, I saw one user modified the template
record but unfortunately it just noted "Record 'Site Style'
(sys_template:1) was updated. (msg#1.2.10)" without any further details.
I knew he was going to make a simple change (modify site title in
constants) to the template. Other than that, I have no idea what else to
suspect.

Bing

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #10  
Alt 08.06.2007, 23:32
Georg Rehfeld
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] page is being generated and PHP fatal error

Hi Bing,

Bing Du wrote:
> Thanks for taking time trying to help, Georg. Really appreciated it. We
> have another site pointing to the same typo3 source package and email
> encryption works fine there. I suspect it might be some site specific
> configuration that broke email encryption on this site.
>
> I know regular pages have history information so you can see all the
> changes that have been made on the page. Does template record keeps
> history as well? In Tools->Log, I saw one user modified the template
> record but unfortunately it just noted "Record 'Site Style'
> (sys_template:1) was updated. (msg#1.2.10)" without any further details.
> I knew he was going to make a simple change (modify site title in
> constants) to the template. Other than that, I have no idea what else to
> suspect.


In my admin log every change to the templates are logged too, similar
message a yours, but therafter is "Changes in fields: config" _and_ a
clickable icon "Show History" ... and there is a _diff_ of the changes!

Besides: I always copy the current config/constants/TSconfig out of the
fields over into text files and commit them to my projects SVN
repository. That way I have a nice commented history and can get back to
previous versions, when something is broken. Won't help you now, but may
be in the future

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

(Delete .nospam from mail address)
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] Fatal error on update to 4.1.1 Mads M. Hansen typo3-english@lists.netfielders.de 4 25.05.2007 18:51
[TYPO3] kb_shop Fatal Error Sandy Matheson typo3-english@lists.netfielders.de 0 14.02.2007 15:04
Re: [TYPO3] Page is being generated... 30 seconds... Dmitry Dulepov typo3-english@lists.netfielders.de 0 16.01.2007 11:26
[TYPO3] Page is being generated... 30 seconds... Miguel Angel Calleja Lázaro typo3-english@lists.netfielders.de 0 16.01.2007 11:12
[TYPO3-shop] fatal error Johnny Peck typo3-project-tt-products@lists.netfielders.de 4 12.12.2006 20:22


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:31 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45