Similar issue to one posted 8 months ago: https://www.drupal.org/project/elfinder/issues/2975370

Using current version of elFinder 7.x-2.x-dev
Tested Libraries: 2.1.40, 2.1.48

Error:

Error in `getFileCallback`.
Cannot read property 'getValue' of undefined

When I try to create a link to any file and use the "Browse Server" feature, elFinder creates the above error when trying to select a file. This is the case if the file is in public or private Drupal folder.

Comments

mmitchell816 created an issue. See original summary.

ph0enix’s picture

Just tested with 2.1.40 and 2.1.48 with latest build from https://bitbucket.org/pscorporation/elfinder-drupal/downloads/elfinder-7.x-2.x-dev.tar.gz and configured Image Field, cannot reproduce.

ph0enix’s picture

Status: Active » Closed (cannot reproduce)
ph0enix’s picture

Status: Closed (cannot reproduce) » Postponed (maintainer needs more info)
ph0enix’s picture

Do you using it within WYSIWYG editor? If so which module (wysywyg, ckeditor, etc), editor version? Just successful inserted link and image from wysywyg dev module integration using latest CKEditor 4. Please make sure that you have removed old elFinder libraries.

ph0enix’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
mmitchell816’s picture

Missed your update. This site is using CKEditor 4.4.1 and elFinder 2.1.48. The issue only happens with files like PDF's but is fine with images and such.

In CKEditor you select the Hyperlink icon and then change the link type to URL and click "Browser Server" you can take two paths:

1. Double click the file and you will get the reported error.
2. RIght click the file and select "Get Info" you can then copy the link URL in the popup. You can then close elFinder and past this valid link into the URL field. This shows that elFinder is able to make the proper URL, just selecting the file doesn't seam to work.

Any help would be appreciated.

Thanks!

mmitchell816’s picture

Status: Closed (cannot reproduce) » Active
ph0enix’s picture

Status: Active » Closed (cannot reproduce)
ph0enix’s picture

Status: Closed (cannot reproduce) » Active
ph0enix’s picture

Just successful was able to place pdf link picked from elfinder in ckeditor 4.6 on D7 7.70 in latest build. Tried both ckeditor and ckeditor in wysiwyg, no issues. I tested with latest elfinder 2.1.56 library.

ph0enix’s picture

Status: Active » Closed (cannot reproduce)