I have implemented IMCE with TinyMCE on a multilanguage with i18n and locale. When I select a picture the path uses the incorrect language for the website path for example

site path: sites/mysite.org/files/usr
picture location: sites/mysite.org/files/usr/1/picture.jpg
imce profile directory 1: sites/mysite.org/files/user/%uid

When I select the picture it returns es/mysite.org/files/usr/1/picture.jpg instead of /sites/mysite.org/files/usr/1/picture.jpg. es is the path to the spanish portion of the website, for english (the language in use) there shouldn't be any es.

I already updated the jquery.forms.js to a newer version.

Comments

rpalomo’s picture

Status: Active » Closed (fixed)

I updated to the development version 6.2 and its working fine returning the complete picture path.

twooten’s picture

If anyone finds this issue I wanted to point out that it has nothing to do with multi-language or anything like that. I just moved a site from dev to production and ran into the same issue.

Just like rpalomo posted above, when I selected a picture it returns es/mysite.org/files/usr/1/picture.jpg instead of /sites/mysite.org/files/usr/1/picture.jpg. I used Firebug to see what was being returned. For some reason the '/sit' part of '/sites/mysite.org/files/picture.jpg' was being cut off, so the URL was starting with 'es/...'

Strange, anyway I was using version 6.x-2.0-beta3 and simply upgraded to current '6.x-2.1', flushed cache and now we're good to go.

Hope my hour of freaking out, finding this post, then finally solving it will help someone in the future.

Tim