I'm getting an AJAX error (HTTP result=200) even with 'entities to load at once'=1, no matter how many rows are selected (even a single one). Drupal 7.10, latest Views (7.x-3.0) and VBO (7.x-3.0-beta3).

This is on a view including 3 fields: all articles, the author uid, and a VBO field (with "Change Author" as the only allowed action). There are less than 50 rows.

On top of that, the actual result is unpredictable: sometimes authorship is changed, but only for some entries; other times nothing is changed at all.

Is there a way to debug this? I see no log errors, and the Javascript pop-up pretty much enumerates the content of the view page (which is useless):

StatusText: OK
ResponseText:
Performing Change the author of content on the selected items... [ my website slogan ]
Skip to main content
Home
Hello admin
Log out
Administrative toolbarDashboard (View and customize your dashboard.)
Content (Administer content and comments.)
Structure (Administer blocks, content types, menus, etc.)
Appearance (Select and configure your themes.)
People (Manage user accounts, roles, and permissions.)
Modules (Extend site functionality.)
Configuration (Administer settings.)
Reports (View reports, updates, and errors.)
Advanced help
Help (Reference for usage, configuration, and modules.)
Hide shortcuts
Administration
Add content
Find content
Content types
Blocks
Comments
URL aliases
Edit shortcuts
You are hereHome Performing Change the author of content on the selected items...
...

[ The ... are part of the pop-up; this is where it ends ]

Comments

bojanz’s picture

Sounds like something is very wrong there.
Can you please set "entity load capacity" to 10, then select 9 rows? This will make it not use Batch API, so we can try to narrow it down.
The "change author" action is the default one, not one you wrote yourself, right?
Does the same problem happen when you use a default VBO view (admin/content2)?

bojanz’s picture

Status: Active » Postponed (maintainer needs more info)
drupdan3’s picture

Sorry for the delay, I didn't realize that "Following" an issue didn't generate e-mail notifications like in most forums.

I set "Number of entities to load at once" to 10, then selected 9 items. I got the same AJAX error, but the action WAS performed (on the selected items).

The VBO field is default -- I didn't write anything myself. I configured a new view (all Articles) and added a VBO field, then configured the VBO field to display a Change Authorship action.

Same thing happens with admin/content2 on 9 items out of batch_size=10 (AJAX error, but action performed properly).

BrightBold’s picture

Status: Postponed (maintainer needs more info) » Active

Setting status back to active since more info was provided, above.

FWIW, I'm getting a similar error even in views that don't have a VBO field, so I'm guessing it's the bug reported in #1376686: Error with Ajax enabled views in admin overlay for jQuery 1.7 and Views 3 - so you may want to try the latest dev of Views if it's not clear your problem is related only to VBO.

bojanz’s picture

Status: Active » Closed (works as designed)

Yes, this is not related to VBO.
The test at #3 proves it (if you process 9 out of 10, batch api doesn't run, so you get the ajax error but the change happens. But if you process 11, batch api fires, ajax error happens, js gets screwed up, nothing happens).

drupdan3’s picture

So basically a workaround is to set the batch size to 100000 or so? I don't really care about the error as long as the change happens.

bojanz’s picture

Well yes, but you want to find out what is breaking VBO in the first place (theme, one of the modules...)

afmdsouza’s picture

Version: 7.x-3.0-beta3 » 7.x-3.x-dev
Status: Closed (works as designed) » Active

I have the same issue of 'An AJAX HTTP error occurred. HTTP Result Code: 200' when I select rows more than that is set at 'Number of entities to load at once'.

I have a simple test action that is returning a test CSV row.

function mymodule_action_csv_export($entity, $context) {

    drupal_add_http_header('Cache-Control','must-revalidate, post-check=0, pre-check=0');
    drupal_add_http_header('Content-Type', 'text/csv');
    drupal_add_http_header('Content-Disposition', 'attachment; filename="test.csv"');
    die(print "col1, col2");
}

The above action generates a CSV file properly when it is run through direct process (when the number of rows selected < 10). Once the number of selected rows are > 10, the Batch API kicks in and results in the error.

I am afraid to use the solution at #6 as I have large data set that may result in memory issues.

bojanz’s picture

Status: Active » Closed (works as designed)

Read #5 again.

You have a module or a theme causing the problem (messing up ajax). Nothing I can do on the VBO side.

spessex’s picture

Did you ever find out what was causing the issue as I am having the same problem and I am only trying to execute a VBO on two users with 1 information change? Unfortunately, my VBO doesn't even take effect.

headkit’s picture

Status: Closed (works as designed) » Active

still same same here...

bojanz’s picture

Status: Active » Closed (works as designed)

You didn't even take the time to read what I wrote previously in this issue.

lilbebel’s picture

Hello,

I did read all the above threads carefully. I set "entity load capacity" to 10, then selected 9 rows but the problem persisted. I limited the amount of filters on the products to be altered but all resulted in the error below. I am trying to bulk change the sell price of products in a UC store:

After I have set up the view and selected the products to be bulk changed and then click 'confirm', I get:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/preview/pageurl/page
StatusText: parsererror
ResponseText:
Performing Modify product sell price on the selected items... | juniperstudios
@import url("http://nameofwebsite.com/modules/system/system.base.css?muh3v9");
@import url("http://nameofwebsite.com/modules/system/system.menus.css?muh3v9");
@import url("http://nameofwebsite.com/modules/system/system.messages.css?muh3v9");
@import url("http://nameofwebsite.com/modules/system/system.theme.css?muh3v9");
@import url("http://nameofwebsite.com/modules/system/system.admin.css?muh3v9");
@import url("http://nameofwebsite.com/modules/aggregator/aggregator.css?muh3v9");
@import url("http://nameofwebsite.com/modules/comment/comment.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/date/date_api/date.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/date/date_popup/themes/datepi...");
@import url("http://nameofwebsite.com/modules/field/theme/field.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/logintoboggan/logintoboggan.c...");
@import url("http://nameofwebsite.com/sites/all/modules/mollom/mollom.css?muh3v9");
@import url("http://nameofwebsite.com/modules/node/node.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/om_maximenu/css/om_maximenu.c...");
@import url("http://nameofwebsite.com/modules/search/search.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/ubercart/uc_order/uc_order.cs...");
@import url("http://nameofwebsite.com/sites/all/modules/ubercart/uc_product/uc_produc...");
@import url("http://nameofwebsite.com/sites/all/modules/ubercart/uc_store/uc_store.cs...");
@import url("http://nameofwebsite.com/modules/user/user.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/views/css/views.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/admin_menu/admin_menu.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/admin_menu/admin_menu.uid1.cs...");
@import url("http://nameofwebsite.com/sites/all/modules/admin_menu/admin_menu_toolbar...");
@import url("http://nameofwebsite.com/modules/shortcut/shortcut.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/ctools/css/ctools.css?muh3v9");
@import url("http://nameofwebsite.com/sites/all/modules/lightbox2/css/lightbox.css?mu...");
@import url("http://nameofwebsite.com/sites/all/modules/views_slideshow/views_slidesh...");
@import url("http://nameofwebsite.com/themes/seven/reset.css?muh3v9");
@import url("http://nameofwebsite.com/themes/seven/style.css?muh3v9");
Skip to main content
You are hereHome Performing Modify product sell price on the selected items...
Add to Default shortcuts

Does this mean that VBO is conflicting with all the themes and modules mentioned above? If so, it would seem to me to be a problem with VBO as everything else in the site works just fine together.

Is anyone else still getting this error? With all due respect, why would a module have a problem with multiple core and contribed modules as well as a theme as indicated above?

Any help would be gratefully received.

This would be a very valuable and powerful tool if I can get it to work.

lebric’s picture

sorry for this late issue , i had the same error and i think i know why as i just went through that error now. You need to save the view and then go on the "actual view page" , from there you will see the listing and will be able to delete the comments. Hope it helps !

take care

Eric

Kartagis’s picture

Title: VBO AJAX error HTTP result = 200 » Failure to change authorship
Version: 7.x-3.x-dev » 7.x-3.2
Component: Actions » Core
Status: Closed (works as designed) » Active

Hi,

I am reporting here because the OP mentioned failure to change authorship. This is what happened to me too. I first came across the problem OP was having, and managed to solve it reading the comments. However, authorship change can't be succeeded.

Regards,
K.

bojanz’s picture

Status: Active » Closed (works as designed)

I just ran the acton for changing an author and it worked normally.
I will need more information in order to be able to reproduce it on a clean install.

Please, let's open new issues for any new bugs (including #15).
This issue is 2.5 years old and contains 10 different non-VBO related issues.

maiorum’s picture

I noticed this only worked for me when creating a page for this view, browsing there and do what needs to be done. No Ajax error.

Vali Hutchison’s picture

Just a quick note here - I had a similar issue for a simple view to do bulk owner changes of nodes. I was getting the AJAX pop up error when performing the update task using the Master display within Views. When I then created a page and loaded that via the URL, it worked fine, no AJAX popup error.