Running Drupal 7.22

I recently installed entity_translation module and enabled node translation on our custom Media content type. I now see a "Translate" tab when editing an existing Media node, and I have my IMCE filefield set to be able to select an existing file from my public directory (which is important because our assets are Git-managed so we don't want to upload files through Drupal).

Before, I was able to edit a node, click "Open the File Browser," select an existing file, and click "Select" an save the node.

Now, I am able to do the same thing when I'm in the English version of the node (my default language). However, when I click the Translate tab, and I click on edit link for the Finnish version (url now becomes /node/###/edit/fi), I can see "Open the File Browser" link but when I click on it, I don't see the "Select" button. I do see the other buttons though.

I noticed that even when I click "Translate" tab and edit the English translation (url is node/###/edit/en), the same thing happens.

However, when I just click the Edit tab, it works fine (/node/###/edit)

Why does having the /fi or /en after the /edit break the Select button in IMCE? Is this an IMCE issue or an IMCE FileField issue?

Comments

jessicachan’s picture

Project: IMCE for FileField » IMCE
jessicachan’s picture

Component: Code » User interface
jessicachan’s picture

Status: Active » Fixed

Okay, found the issue. Found out that switching from http to https when clicking the Open File Browser from a path of
node/*/edit/* was causing the resulting URL to be encoded/malformed and resulting in errors with the IMCE module. By adding node/*/edit/* to Secure Pages configuration, the Open File Browser will open in https and not cause that URL transformation to happen and tada-- Select button is there.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.