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
Comment #1
bojanz CreditAttribution: bojanz commentedSounds 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)?
Comment #2
bojanz CreditAttribution: bojanz commentedComment #3
drupdan3 CreditAttribution: drupdan3 commentedSorry 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).
Comment #4
BrightBoldSetting 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.
Comment #5
bojanz CreditAttribution: bojanz commentedYes, 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).
Comment #6
drupdan3 CreditAttribution: drupdan3 commentedSo 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.
Comment #7
bojanz CreditAttribution: bojanz commentedWell yes, but you want to find out what is breaking VBO in the first place (theme, one of the modules...)
Comment #8
afmdsouza CreditAttribution: afmdsouza commentedI 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.
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.
Comment #9
bojanz CreditAttribution: bojanz commentedRead #5 again.
You have a module or a theme causing the problem (messing up ajax). Nothing I can do on the VBO side.
Comment #10
spessex CreditAttribution: spessex commentedDid 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.
Comment #11
headkit CreditAttribution: headkit commentedstill same same here...
Comment #12
bojanz CreditAttribution: bojanz commentedYou didn't even take the time to read what I wrote previously in this issue.
Comment #13
lilbebel CreditAttribution: lilbebel commentedHello,
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.
Comment #14
lebric CreditAttribution: lebric commentedsorry 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
Comment #15
KartagisHi,
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.
Comment #16
bojanz CreditAttribution: bojanz commentedI 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.
Comment #17
maiorum CreditAttribution: maiorum commentedI 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.
Comment #18
Vali Hutchison CreditAttribution: Vali Hutchison commentedJust 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.