Hi,
I want to report a bug and the solution. When I tried to upload a video through the Drupal API I got this:
AJAX error: parsererror
I saw several other threads mentioning a similar problem.
The problem lies in the proxy.php file. It tries to load bootstrap.inc based on the directory of the botr-module. On line 25, when declaring $index, it looks for the folder "sites" with array_search. That works fine if there's only one "sites" folder in the path. In my case, I had 2 sites folders in the path:
Eg: /media/truecrypt1/Dropbox/code/sites/active/dewereldmorgen/www/sites/all/modules/contrib/botr
So the script searched for the boostrap file in the wrong sites directory, which of course didn't work.
In proxy.php, change line 24/25 to this:
$keys = array_keys($dirs, 'sites'); //search for the "sites" folder
$index = $keys[count($keys) - 1]; //take the last found "sites" folder
Hi Robin, thanks for researching this. We will look into this.