Project

General

Profile

Actions

Bug #20141

closed

rtehtmlare does not insert pictures selected with the dam extension

Added by Joerg Hauke over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-03-06
Due date:
% Done:

0%

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

Description

I am using DAM 1.1.1 in cooperation with TYPO3 4.2.6

RTE does not insert pictures anymore. The window with the DAM Pictureselector appears and it is shown correctly, but as I select a picture to insert it is loading something and the selection window does not disapper the window stays blank and no image is inserted

My config:
TYPO3 4.2.6
DAM 1.1.1

RTE config:
Enable images in the RTE - checked
Enable the DAM media browser - not checked

DAM config:
htmlArea RTE integration - checked

Has anybody a solution for the problem.

Regards

(issue imported from #M10628)

Actions #1

Updated by Stanislas Rolland over 15 years ago

In what browser?

What error do you get on the JavaScript console?

Actions #2

Updated by Stanislas Rolland over 15 years ago

What do you mean by "not anymore"? What was changed?

Actions #3

Updated by Joerg Hauke over 15 years ago

I'm using FF3.

With "not anymore" I meant that it worked with dam < 1.1

I get a lot of warnings:

1.Warnung: anonymous function does not always return a value
Quelldatei: http://www.mydomain.de/typo3/contrib/prototype/prototype.js
Zeile: 126, Spalte: 45
Quelltext:
case 'boolean': return object.toString();

2.Warnung: anonymous function does not always return a value
Quelldatei: http://www.mydomain.de/typo3/contrib/prototype/prototype.js
Zeile: 129, Spalte: 32
Quelltext:
if (object === null) return 'null';
3.Warnung: anonymous function does not always return a value
Quelldatei: http://www.mydomain.de/typo3/contrib/prototype/prototype.js
Zeile: 130, Spalte: 44
Quelltext:
if (object.toJSON) return object.toJSON();

4.Warnung: Event.prototype is read-only
Quelldatei: http://www.mydomain.de/typo3/contrib/prototype/prototype.js
Zeile: 3837

5. Warnung: anonymous function does not always return a value
Quelldatei: http://wwwmydomain.de/typo3/tab.js
Zeile: 55, Spalte: 9
Quelltext:
return false;

6. Warnung: function toggleDisplay does not always return a value
Quelldatei: http://wwwmydomain.de/typo3/sysext/rtehtmlarea/mod4/select_image.php?&RTEtsConfigParams=tt_content%3A14%3Abodytext%3A4%3Atext%3A4%3A&editorNo=data[tt_content]14[bodytext]&sys_language_content=0&contentTypo3Language=false&contentTypo3Charset=utf-8
Zeile: 89, Spalte: 2
Quelltext:
}

My FF is in Germa, so I translate the important things.
Warnung = warning
Quelldatei = source
Zeile = line
Spalte = column
Quelltext = Sourcecode

Actions #4

Updated by Stanislas Rolland over 15 years ago

Something is wrong in your TYPO3 installation. Did you upgrade recently?

Do you have TYPO3 extension mn_ff3_be_bugfix installed?

Actions #5

Updated by Joerg Hauke over 15 years ago

I have two TYPO3 installations. I upgraded three weeks ago.

No I don't have this extension installed yet, but I will.
Do you want me to do something with this extension?

Actions #6

Updated by Stanislas Rolland over 15 years ago

No, do not install it! It will break your backend. I thought maybe this was the cause of the problem.

Actions #7

Updated by Stanislas Rolland over 15 years ago

I think your installation is somehow corrupted. When do you get all those warnings? only in the RTE? What else is not working in your backend?

Actions #8

Updated by Joerg Hauke over 15 years ago

I get most of those warnings as soon as I log in into the backend I recently found out.

But everything else is working properly in the backend.

Do you have any suggestions?

Actions #9

Updated by Stanislas Rolland over 15 years ago

Don't know what to do about this one.

Do you have the same error in Internet Explorer or Safari?

Do you have the same error if you uncheck the DAM checkbox for htmlArea RTE?

Actions #10

Updated by Joerg Hauke over 15 years ago

In the Internet Explorer it is the same problem.

I activated the debug mode and it showed me the following error:

[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js Line: 1066"] Retrying...

The errors appear on all my typo3 installations.
I unchecked the dam integration for htmlarea, now I can insert pictures but the errors in the debug mode still appear.

I disabled all my extensions and used a complete new installation of FF3 (without any addons) and I can not insert any pictures from dam.
The error mentioned above is thrown.

Actions #11

Updated by Joerg Hauke over 15 years ago

I thought it is better to post everything:

[HTMLArea::init]: All scripts successfully loaded.
[HTMLArea::init]: Editor url set to: /typo3/sysext/rtehtmlarea/htmlarea/
[HTMLArea::init]: Editor skin CSS set to: /typo3/sysext/t3skin/rtehtmlarea/htmlarea.css
[HTMLArea::init]: Editor content skin CSS set to: http://www.mydomain.de/typo3/sysext/t3skin/rtehtmlarea/htmlarea-edited-content.css [^]
[HTMLArea::initEditor]: Initializing editor with editor Id: data[tt_content]14[bodytext].
[HTMLArea::registerPlugin]: Plugin DefaultInline was successfully registered.
[HTMLArea::registerPlugin]: Plugin BlockElements was successfully registered.
[HTMLArea::registerPlugin]: Plugin BlockStyle was successfully registered.
[HTMLArea::registerPlugin]: Plugin CharacterMap was successfully registered.
[HTMLArea::registerPlugin]: Plugin Acronym was successfully registered.
[HTMLArea::registerPlugin]: Plugin UserElements was successfully registered.
[HTMLArea::registerPlugin]: Plugin TextStyle was successfully registered.
[HTMLArea::registerPlugin]: Plugin TYPO3Link was successfully registered.
[HTMLArea::registerPlugin]: Plugin TYPO3Color was successfully registered.
[HTMLArea::registerPlugin]: Plugin DefaultFont was successfully registered.
[HTMLArea::registerPlugin]: Plugin InsertSmiley was successfully registered.
[HTMLArea::registerPlugin]: Plugin Language was successfully registered.
[HTMLArea::registerPlugin]: Plugin SpellChecker was successfully registered.
[HTMLArea::registerPlugin]: Plugin FindReplace was successfully registered.
[HTMLArea::registerPlugin]: Plugin RemoveFormat was successfully registered.
[HTMLArea::registerPlugin]: Plugin TYPO3HtmlParser was successfully registered.
[HTMLArea::registerPlugin]: Plugin QuickTag was successfully registered.
[HTMLArea::registerPlugin]: Plugin TableOperations was successfully registered.
[HTMLArea::registerPlugin]: Plugin AboutEditor was successfully registered.
[HTMLArea::registerPlugin]: Plugin ContextMenu was successfully registered.
[HTMLArea::registerPlugin]: Plugin TYPO3Image was successfully registered.
[HTMLArea::generate]: Toolbar successfully created.
[HTMLArea::generate]: Editor iframe successfully created.
[HTMLArea::initIframe]: Iframe baseURL set to: http://www.mydomain.de/typo3/ [^]
[HTMLArea::initIframe]: Skin CSS set to: http://www.mydomain.de/typo3/sysext/t3skin/rtehtmlarea/htmlarea-edited-content.css [^]
[HTMLArea::initIframe]: Override CSS set to: http://www.mydomain.de/typo3temp/rtehtmlarea/defaultPageStyle_7e69178017b95443397e.css [^]
[HTMLArea::initIframe]: Content CSS set to: http://www.mydomain.de/typo3/sysext/rtehtmlarea/res/contentcss/default.css [^]
[HTMLArea::initIframe]: Editor iframe head successfully initialized.
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Failed attempt at loading stylesheets: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://www.mydomain.de/typo3temp/rtehtmlarea/htmlarea_000dbb6543e98e8d631a.js [^] Line: 1066"] Retrying...
[HTMLArea::initIframe]: Stylesheets successfully loaded.
[HTMLArea::initIframe]: Design mode successfully set.
[HTMLArea::getScript]: Requesting script http://www.mydomain.de/typo3temp/rtehtmlarea/classes__34e4318e5f6477074f06.js [^]
[HTMLArea::initIframe]: All plugins successfully generated.

Actions #12

Updated by Stanislas Rolland over 15 years ago

These errors [HTMLArea::initIframe]: Failed attempt at loading stylesheets
are normal.

They occur when the RTE is loading, and the process seems to complete correctly if you are able to use the RTE.

What I want to know is what error you get on the Firefox JavaScript console when you try to insert an image.

I also suggest to try to un-install and re-install DAM.

Actions #13

Updated by Joerg Hauke over 15 years ago

I uninstalled and reinstalled DAM.I also deactivated all my other extensions.

As I click on the image icon of the rte many errors appear. Three for the RTE:
Warnung: function toggleDisplay does not always return a value
Quelldatei: http://www.joerg-hauke.de/typo3/sysext/rtehtmlarea/mod4/select_image.php?&RTEtsConfigParams=tt_content%3A14%3Abodytext%3A4%3Atext%3A4%3A&editorNo=data[tt_content]14[bodytext]&sys_language_content=0&contentTypo3Language=en&contentTypo3Charset=utf-8
Zeile: 89, Spalte: 2
Quelltext:
}

Warnung: redeclaration of function jumpToUrl
Quelldatei: http://www.joerg-hauke.de/typo3/sysext/rtehtmlarea/mod4/select_image.php?&RTEtsConfigParams=tt_content%3A14%3Abodytext%3A4%3Atext%3A4%3A&editorNo=data[tt_content]14[bodytext]&sys_language_content=0&contentTypo3Language=en&contentTypo3Charset=utf-8
Zeile: 105, Spalte: 10
Quelltext:
function jumpToUrl(URL,anchor) {

Warnung: function insertImagePropertiesInForm does not always return a value
Quelldatei: http://www.joerg-hauke.de/typo3/sysext/rtehtmlarea/mod4/select_image.php?&RTEtsConfigParams=tt_content%3A14%3Abodytext%3A4%3Atext%3A4%3A&editorNo=data[tt_content]14[bodytext]&sys_language_content=0&contentTypo3Language=en&contentTypo3Charset=utf-8
Zeile: 342, Spalte: 2
Quelltext:
}

Do you think it would help you, if I give you access to my backend? I could send you the login infos per e-mail.

Actions #14

Updated by Stanislas Rolland over 15 years ago

There appears to be an acess permission issue on most images. The script is not allowed to access the images. This is also obvious in DAM list module (error 403).

Actions #15

Updated by Joerg Hauke over 15 years ago

I found the problem now. I had a "#" in the directory name. This does not work obviously.

Big thanks to Stanislas for his help.

Actions

Also available in: Atom PDF