Issue Bug Closed

#15397Error displaying htmlarea in the frontend

Robert Destigter 01/12/06, 17:32 updated 08/12/06, 14:20

Description

When htmlarea is loaded a windows error message says: “The website http://www.mywebsite.com/mypage/index.php cannot be opened. The operation is cancelled.”

I think it has to do with javascript code but I can’t find out what’s really causing this.

Note: htmlarea works fine in the backend. This concerns displaying it in the frontend.

CODE:
require_once(t3lib_extMgm::extPath(‘rtehtmlarea’).‘pi2/class.tx_rtehtmlarea_pi2.php’);
$this->RTEObj = t3lib_div::makeInstance(‘tx_rtehtmlarea_pi2’);

if(!$this->RTEObj->isAvailable()) {
$row[‘entry’] = $this->cutDown(stripslashes($row[‘entry’]));
$row[‘entrycomment’] = stripslashes($row[‘entrycomment’]);
}

if($this->RTEObj->isAvailable()) {
$this->RTEcounter++;
$this->formName = ‘myform’;
$this->strEntryField = ‘entry’;
$this->PA[‘itemFormElName’] = ‘objHtmlArea’;
$this->PA[‘itemFormElValue’] = ‘’;
$this->thePidValue = $GLOBALS[‘TSFE’]->id;
$RTEItem = $this->RTEObj->drawRTE($this,$this->strEntryTable,$this->strEntryField,$row=array(), $this->PA, $this->specConf, $this->thisConfig, $this->RTEtypeVal, ‘’, $this->thePidValue);
}

I’m pretty sure it has to do with included javascript at line 253 of file class.tx_rtehtmlarea_pi2.php.

$GLOBALS[‘TSFE’]->additionalHeaderData[‘htmlArea’] =
$additionalCode_loadCSS .
$this->loadJSfiles($pObj->RTEcounter) .
‘<script type="text/javascript">&#8216; . <br /> $this-&gt;loadJScode($pObj-&gt;RTEcounter) . &#8216;</script>‘;

The following .js file causing problems is:
rtehtmlarea_htmlarea_c327fd00d90034759b14818c26445afb.js in the typo3temp folder.

That’s all I know for now.

(issue imported from #M2241)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.