viewer.js icon indicating copy to clipboard operation
viewer.js copied to clipboard

Config metadata dimensions object is undefined

Open Siraris opened this issue 10 years ago • 2 comments

This has seemingly come out of nowhere, but for some reason, config.metadata.dimensions object is undefined in crocodoc.viewer.js for me. I can't seem to find a common thread, but it seems that documents loaded before a certain date work fine, and documents loaded more recently, no longer do so and generate an error. I get the error: crocodoc.viewer.js:5906 Uncaught TypeError: Cannot read property 'width' of undefined

I just tried loading a document on my test machine that I've used dozens of times before for testing, and I get the same error with this one. Any help would be much appreciated!

Edit: Looks like I was running 0.5.5 before. I tried using .10.10 just now, and it seems to dump the raw binary data into the browser instead of the actual file, but no longer throws the error...

screen shot 2015-10-06 at 1 57 17 pm

Siraris avatar Oct 06 '15 18:10 Siraris

@lakenen Any idea about this? It's really impacting our clients experience...

Siraris avatar Oct 09 '15 19:10 Siraris

Updating jquery from version 1.7.2 to 1.11.1 solved the problem for me.

saiena avatar Mar 05 '16 06:03 saiena