Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello!
When I work with a website with special port, I have a problem with file URL uploaded with IMCE.
How to reproduce it:
1) Change port - add please $_SERVER['HTTP_HOST'] = 'mywebsite.loc:8081';
to the settings.php
2) Try to add a new file with IMCE.
Comment | File | Size | Author |
---|---|---|---|
#2 | imce-port_number-2863312-2.patch | 552 bytes | mikhailkrainiuk |
imce.png | 31.16 KB | mikhailkrainiuk |
Comments
Comment #2
mikhailkrainiuk CreditAttribution: mikhailkrainiuk at DrupalJedi commentedI've created a patch to fix the problem in "updateUI: function()" in the imce.js
"location.protocol" and "location.host" don't have a port number. I added a port checking.
Please check the patch.
Comment #4
ufku CreditAttribution: ufku commentedCommitted. Thanks.
Comment #5
ufku CreditAttribution: ufku commentedCommitted. Thanks.