[TYPO3] Use of RTE in FCE leads to logout

Sander van Gelderen mail at sandervangelderen.nl
Sat Sep 6 23:37:08 CEST 2008


Hi Dmitry,

I did not succeed in applying your patch, I get following output:

(23:25:54) [typo3_src-4.2.0] patch -p0 <8232_wizard_and_display.patch
patching file typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
Hunk #1 succeeded at 447 (offset 16 lines).
Hunk #2 FAILED at 460.
Hunk #3 FAILED at 474.
2 out of 3 hunks FAILED -- saving rejects to file 
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php.rej
patching file typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php
Hunk #1 FAILED at 308.
1 out of 1 hunk FAILED -- saving rejects to file 
typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php.rej

I have examined the contents of the patch, and find the line numbers do 
not match.

I also see other stuff I don't understand, for instance on line 34 of 
the patchfile I do not see a '+', so I think this line would go untouched:

<textarea id="RTEarea' . $textAreaId . '" 
name="'.htmlspecialchars($PA['itemFormElName']).'" 
style="'.t3lib_div::deHSCentities(htmlspecialchars($this->RTEdivStyle)).'">'.t3lib_div::formatForTextarea($value).'</textarea>

But in my class.tx_rtehtmlarea_base.php file on line 476 I have this:

<textarea id="RTEarea'.$this->TCEform->RTEcounter.'" 
name="'.htmlspecialchars($PA['itemFormElName']).'" 
style="'.t3lib_div::deHSCentities(htmlspecialchars($this->RTEdivStyle)).'">'.t3lib_div::formatForTextarea($value).'</textarea>

It seems obvious this line should change too, to use the new $textAreaId 
variable.

I do not have much experience using patches, maybe I have made some mistake?

Your advice is much appreciated.

Sander

Dmitry Dulepov [typo3] schreef:
> Hi!
> 
> Sander van Gelderen wrote:
>> When I create a FCE with an RTE as one of it's fields, I get errors in 
>> the BE.
>>
>> The RTE field is inside a repetitive TO, it has SC and CO above.
>>
>> Several fields (wich do have data) remain empty and when I try to save 
>> the form I get a dialog stating that my login has probally expired 
>> (wich it has not)
>>
>> This looks very much like Xavier Perseguers' post to this list 
>> entitled 'Use of FCE with TV in a page leads to logout' on 4/5/08
>>
>> Changing the editing type to text-area (or anything else), all is 
>> functioning correctly, it really does seem to be the RTE editing type 
>> wich is the problem.
>>
>> Has anyone else seen this or even found a solution?
> 
> Yes, we did. See http://bugs.typo3.org/view.php?id=8232
> 


More information about the TYPO3-english mailing list