Project:Views
Version:6.x-2.11
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I am attempting to create my first view and it seems I keep getting the same error:

An error occurred at http://mydomain.com/admin/build/views/ajax/add-item/newsblock/default/field.
Error Description: 0:

Any ideas?

Comments

#1

Are you using secure pages module or some method of converting the admin UI to https?

#2

No, it's a very basic Drupal installation. I don't have any additional security settings initiated. Hmm?

#3

I get the same thing when trying to do somewhat more advanced views operations. I just tried adding a field to a view to output the description of a CCK field that I added for a downloadable file and I got the same error.

I'm going to investigate now as I need this field exposed in my view.

Will report back with any findings.

#4

I was able to replicate the error by selecting views > fields > add and then trying to add a new field to the view before the fields list was fully loaded. The answer for me was either to wait until the fields list has completely loaded (sounds obvious enough), or if in this case it just keeps giving the error, sign out of drupal completey, flush browser cache, cookies, logins etc and then login again.

This seems to have reset things for me and allowed me to eventually add the field I needed. HTH.

#5

http://drupal.org/node/750308#comment-2756564

this worked for me ^^^^

sounds like OP's problem if its a fresh install

just adjust base url in settings.php

#6

subscribing

#7

Status:active» fixed

See #5

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

Thanks for the assistance, everyone. I was having the same problem, turns out it was because I set the site's Base URL to an http:// address, but was using an Apache rewrite rule to send all requests to /admin to an https:// address. I changed the rewrite rule to only redirect /user to https, and not /admin, and that fixed the Views error 0 message.

#10

I got this when I tried to SAVE a view BEFORE the preview was totally loaded (2,000 records incl thumbnails).

For as long as it says "Waiting for..." at the bottom left corner, just wait until it say "Done". Then you can save without problem.

#11

If someone else sees this and IS using Secure pages, what worked for me was to simply add:
admin/build/views/*
to the standard list (second box) and visit the Views edit page via http not https.

nobody click here