Project

General

Profile

Actions

Bug #15397

closed

Error displaying htmlarea in the frontend

Added by Robert Destigter almost 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2006-01-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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">' .
$this->loadJScode($pObj->RTEcounter) . '</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)


Files

class.ferte.zip (777 Bytes) class.ferte.zip Administrator Admin, 2006-01-13 11:42
ext_conf_template.txt (774 Bytes) ext_conf_template.txt Administrator Admin, 2006-01-16 09:10
Actions #1

Updated by Robert Destigter almost 19 years ago

In IE the browser doesn't show anything.
In firefox the page is loaded except the htmlarea object.

Actions #2

Updated by Stanislas Rolland almost 19 years ago

What version of TYPO3?

In Firefox, do you get a message on the JavaScript console?

Could it be a problem with the file permissions on file rtehtmlarea_htmlarea_c327fd00d90034759b14818c26445afb.js in the typo3temp folder?

Actions #3

Updated by Robert Destigter almost 19 years ago

TYPO3 3.8.0

Extension version is 1.1.2

The JavaScript Console is empty in firefox.

The permissions are oke. (777)

Actions #4

Updated by Robert Destigter almost 19 years ago

I now tried it on a blank page.

##TypoScript Template##
page = PAGE
page.typeNum=0
page.10 = TEXT
page.10.value = HELLO WORLD
page.includeLibs.some = fileadmin/class.ferte.php #See uploaded file.
page.11 = USER_INT
page.11.userFunc = user_ferte->rte

In this case I don't get the error message but the htmlarea still isn't loaded.

Actions #5

Updated by Stanislas Rolland almost 19 years ago

On the install page of the extension, please try to set the use of compressed scripts off and the use of troubleshooting mode on.
Is there any message displayed below the editing area?

What default configuration are you using?

Please upload copy of your Page TSConfig.

Actions #6

Updated by Robert Destigter almost 19 years ago

I disabled the use of compressed scripts and enabled the debug mode, but this made no difference.
Nothing is beeing displayed except for this message: "The editor is being loaded. Please wait...".

I'll upload the config file ext_conf_template.txt.

I'm not using any TSConfig in the page header.

Actions #7

Updated by Stanislas Rolland almost 19 years ago

Where is the error message: "The website http://www.mywebsite.com/mypage/index.php [^] cannot be opened. The operation is cancelled." coming from? Where is it displayed? I have never seen this message.

Is your page accessible from the Internet? Give me a link to a page on your site where un-modified Modern Guestbook Extended is displayed.

Actions #8

Updated by Stanislas Rolland over 18 years ago

I am now able to reproduce this problem, but I don't know why, nor since when.

It seems related to some setting and/or upgrade of Windows XP SP2 and/or IE 6.

Actions #9

Updated by Stanislas Rolland over 18 years ago

Strange bug. After installing IE7, the problem disappears. I suspect a bug in recent updates of IE6.

Actions #10

Updated by Stanislas Rolland over 18 years ago

This is a IE6 timing bug. All scripts need to be moved from head to body. Will be corrected in version 1.3.1.

Actions #11

Updated by Stanislas Rolland over 18 years ago

This is now fixed in CVS (version 1.3.1 of htmlArea RTE). However, it implied a change in the API used by frontend extensions. They will need to be revised. This is now documented in the manual.

Actions

Also available in: Atom PDF