Ticket #1187 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

ExtendedFileManager "imgManager.changeDir is not a function" error

Reported by: guest Owned by:
Priority: normal Milestone: 0.96
Component: Plugins Version: trunk
Severity: major Keywords: ExtendedFileManager javascript
Cc: rimas.kudelis@…

Description

The ExtendedFileManager? fails to load, showing the following error in FireBug?:

imgManager.changeDir is not a function
http://www.biodieselworks.com/admin/js/xinha/plugins/ExtendedFileManager/assets/manager.js
Line 309

Discussion and more information here: http://xinha.gogo.co.nz/punbb/viewtopic.php?pid=5663#p5663

Change History

Changed 7 months ago by ray

Sorry, I cannot reproduce and I'm tempted to say this cannot happen

Changed 7 months ago by guest

It seems to be an issue related to www.mysite.com vs mysite.com. I have Xinha configured for http://www.biodieselworks.com/admin, and so the errors appeared on http://biodieselworks.com/admin without the 'www'.

A .htaccess redirect to one or the other (whichever Xinha is configured for) solves the problem.

Changed 6 months ago by guest

I can reproduce the error using Xinha 0.95. Ray, can I help you track it down somehow?

Here's the array that's being passed to PHP backend:

array(
  'images_dir' => '/path/to/site_images', 
  'images_url' => '/site_images',
  'files_dir'  => '/path/to/site_files',
  'files_url'  => '/site_files',
  'thumbnail_prefix' => 'thumb_',
  'thumbnail_dir' => '.thumbs',
  'images_enable_title' => true,
  'images_enable_align' => false,
  'images_enable_styling' => false,
  'link_enable_target' => false,
  'max_filesize_kb_image' => 2*1024,
  'max_filesize_kb_link' => 'max',
  'allowed_image_extensions' => array("jpg", "jpeg", "gif", "png"),
  'allowed_link_extensions' => array("doc", "dot", "eps", "gif", "html", "jpeg", "jpg", "pdf", "png", "pot", "rtf", "svg", "tiff", "tif", "txt", "xls")
)

Interestingly though, EFM works fine for images, but doesn't show directory contents when creating a file link. However, even in the latter case the directory tree in the Directory dropdown is being fully loaded.

The error I get when loading EFM is:

document.getElementById("f_target_label") is null
http://www.vu.lt/scarga/includes/editor/plugins/ExtendedFileManager/assets/manager.js
Line 136

Another error pops up when I choose a directory from the dropdown:

imgManager.changeDir is not a function
http://www.vu.lt/scarga/includes/editor/plugins/ExtendedFileManager/assets/manager.js
Line 305

Changed 6 months ago by guest

  • cc rimas.kudelis@… added

Changed 2 months ago by ray

  • status changed from new to closed
  • resolution set to fixed

rev [1054]: thanks for the information. It helped a lot to track this errow down

Note: See TracTickets for help on using tickets.