Hi everyone,
I have an issue when adding a field to views. Didnt have this before, and its been a while since I have done anything with views (couple days) and I have done a lot between that time.
When I add a field, and select anything Node:title for example, the next screen is just white with this text on the top:
(This is a shortened version of the incredibly long string.)
{ "display": "\x3cdiv class=\"views-messages\"\x3e\x3cdiv class=\"messages warning\"\x3e\nFor easier theme development, the theme registry is being rebuilt on every page request. It is \x3cem\x3eextremely\x3c/em\x3e important to \x3ca href=\"/admin/build/themes/settings/ilovedanielhabib\"\x3eturn off this feature\x3c/a\x3e on production websites.\x3c/div\x3e\n\x3c/div\x3e\x3cform action=\"/admin/build/views/ajax/add-item/blog/default/field\" accept-charset=\"UTF-8\" method=\"post\" id=\"views-ui-config-item-form\"\x3e\n\x3cdiv\x3e\x3cdiv class=\"form-item\" id=\"edit-options-label-wrapper\"\x3e\n \x3clabel for=\"edit-options-label\"\x3eLabel: \x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[label]\" id=\"edit-options-label\" size=\"60\" value=\"Delete link\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3eThe label for this field that will be displayed to end users if the style requires it.\x3c/div\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-options-exclud.........
Judging by firebug, the page was never built, at all. no divs, no thing, just body and pre. I cant find the culprit, anyone every mess with this before?
Comments
Comment #1
merlinofchaos commentedThe text you see is a format called JSON, and it's used for communicating with a webpage in the background using a technique called AJAX. It's how the Views UI works, performing requests without doing full page loads.
If you see this text, it usually means there was some kind of javascript crash that caused the AJAX request to end up as a full request. Most browsers have a javascript console or something along those lines so you can see javascript errors. Seeing something like this could help us determine what happened. Without it, it's hard to tell what's going on.
In many cases, crashes like this are caused because some module or theme has some incompatible javascript.
Comment #2
mentalrage196 commentedHmmm, using firefox and firebug. No Errors that I can see. However, I do understand AJAX and how the views module works, and I was able to narrow the issue down to a typo in my info file. Thank you for the nudge
Comment #3
merlinofchaos commentedI guess this is fixed then.