|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
> 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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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 Iexpect 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 |
|
#7
|
|||
|
|||
|
> 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 |
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
> 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 |
|
#10
|
|||
|
|||
|
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 |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| 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 |