Skip to content

Weird Cases (version 1x)

jayarjo edited this page Apr 16, 2013 · 1 revision

Unusual -500 Init Error Bug

While using the flash runtime environment, we were receiving an obscure -500 Init Error alert box. This was very hard to track down (took us several hours), but I de-minified the plupload.full.js file and tracked it down to this function call:

o().setFileFilters(n.settings.filters,n.settings.multi_selection);

This javascript code calls the setFileFilters function of the Flash object. In our case, it turned out that n.settings.filters was set to an empty string, rather than an empty array.

filters = ""; // WRONG!
filters = []; // RIGHT

So, if you ever receive a -500 Init Error when using the flash runtime, check your settings to make sure they are correct. In our case, the filters setting needed to be an array, not a string.