Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Bug: AJAX error: parsererror

3 replies [Last post]
Reply

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

Reply

Hi Robin, thanks for researching this. We will look into this.

Reply

Not working for me!! Any suggestion please?

Reply

Not if you cannot tell what the problem is. Do you have any information of what you're trying to do, where you are having issues, what, if any error messages there are, etc. etc.?

Also, have you tried looking at the Drupal tutorial first?http://www.longtailvideo.com/support/bits-on-the-run/15958/using-our-drupal-module

Have you made sure that the version of the plugin you're using is compatible with the Drupal version, as is explained in the tutorial?

Are you using other Drupal modules too that might be interfering?

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options