Hello!

I have the following setup:
Wysiwyg+tinyMCE+IMCE bridge+IMCE+filefield.

My user can add images via IMCE and tinymce, but i do have a filfield for a specific image, thats the same.

The folder setup is as follow:
files
|-->nieuws
|-->reviews

Al goes fine, but when a user edits a node, tinymce changes the filepath from "/filess/review/this ends tonight - in the open.jpg" to "/files/nieuws/review/this ends tonight - in the open.jpg". Like you see the systeem thinks that /reviews/ is a part of the 'nieuws' folder, but in reality reviews is a subfolder from the files dir, not the files/nieuws dir...

Comments

twod’s picture

Assigned: demon326 » Unassigned
Status: Active » Postponed (maintainer needs more info)

I'm not sure exactly what you're saying.

It's hard to know where it goes wrong.
IMCE is responsible for handling all of the uploading, deciding where files go and returning that path to TinyMCE's file dialog's File-field.
IMCE itself doesn't know anything about TinyMCE, except the name of the File-field, given to it by IMCE WYsiwyg bridge, which in turn only puts the "Browse" button in the dialog and tells TinyMCE the path to the IMCE dialog.
IMCE Filefield should not be involved when using IMCE via the editor. (I'm not excluding the possibility of some conflicting 'crosstalk' happening here between the IMCE instance used with the editor and the one used with the field, but it's a small risk.)

If the path to the image is correctly inserted when the node is first created (and the image shows up in the editor), all should be fine.
When editing the node again, IMCE is not invoked again until inserting another image. There's no clues to whether an image was inserted via IMCE or not, just looking at its tag (other than perhaps the path it's being served from, but the editor doesn't care about that).

If the image path is only corrupted when viewing the rendered node, but looks fine when editing, one or more of the format filters are not configured right and may be rewriting its paths or otherwise manipulating the tag.

Could you please provide details steps on how to reproduce the issue? Start with a new node, insert one image, disable the editor using "Disable rich text", save the node, view it, edit it again, and finally disable the editor again. Please note at which point or under which circumstances the image path gets changed.

Did you mean that the same problem happens with the path in the filefield? If so, maybe some module is rewriting image/file paths and/or aliasing them for some reason.

demon326’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

aim changing the status to fixed, it seems to be a problem with the file alias and file path module... disabled both and the issue seems to be gone.

however, aim still going to try to explain the issue:
user 1 creates a node with tekst and adds a picture in it via imce
user 1 submits the node, all is fine
user 2 edits the node because he/she saw a typo, and the image is gone when the edit form has been loaded. The path just changed....