I am not sure where to start error checking. I have the latest version of Views. If I create a new view, choose a content type, and then add a contextual filter, I hit an AJAX HTTP error, HTTP Result code: 200.
I have roughly the same code running somewhere else just fine. I am not sure what is going on. Any input would be appreciated.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://www.domainname.com/admin/structure/views/ajax/add-item/esales/def...
StatusText: OK
ResponseText:
Notice: Undefined index: restrict_roles in /home/public_html/sites/all/modules/views/modules/user/views_plugin_argument_validate_user.inc on line 40
Notice: Undefined index: roles in /home/public_html/sites/all/modules/views/modules/user/views_plugin_argument_validate_user.inc on line 49
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"garland","theme_token":"bgEqGaZdDq-aqP6UVy-p-uba4NFKCIl-aT7IrnyCdrI","js":{"misc\/form.js":1,"misc\/textarea.js":1,"misc\/collapse.js":1}},"CTools":{"dependent":{"edit-options-default-argument-type":{"values":{"radio:options[default_action]":["default"]},"num":1,"type":"hide"},"edit-options-argument-default-options-node":{"values":{"radio:options[default_action]":["default"],"edit-options-default-argument-type":["node"]},"num":2,"type":"hide"},"edit-options-argument-default-taxonomy-tid-limit":{"values":{"edit-options-argument-default-taxonomy-tid-node":[1]},"num":1,"type":"hide"},"edit-options-argument-default-taxonomy-tid-vocabularies":{"values":{"edit-options-argument-default-taxonomy-tid-limit":[1],"edit-options-argument-default-taxonomy-tid-node":[1]},"num":1,"type":"hide"},"edit-options-argument-default-taxonomy-tid-anyall":{"values":{"edit-options-argument-default-taxonomy-tid-node":[1]},"num":1,"type":"hide"},"edit-options-argument-default-options-taxonomy_tid":{"values":{"radio:options[default_action]":["default"],"edit-options-default-argument-type":["taxonomy_tid"]},"num":2,"type":"hide"},"edit-options-argument-default-options-user":{"values":{"radio:options[default_action]":["default"],"edit-options-default-argument-type":["user"]},"num":2,"type":"hide"},"edit-options-argument-default-options-current_user":{"values":{"radio:options[default_action]":["default"],"edit-options-default-argument-type":["current_user"]},"num":2,"type":"hide"},"edit-options-argument-default-options-fixed":{"values":{"radio:options[default_action]":["default"],"edit-options-default-argument-type":["fixed"]},"num":2,"type":"hide"},"edit-options-argument-default-options-php":{"values":{"radio:options[default_action]":["default"],"edit-options-default-argument-type":["php"]},"num":2,"type":"hide"},"edit-options-argument-default-options-raw":{"values":{"radio:options[default_action]":["default"],"edit-options-default-argument-type":["raw"]},"num":2,"type":"hide"},"edit-options-summary-sort-order":{"values":{"radio:options[default_action]":["summary"]},"num":1,"type":"hide"},"edit-options-summary-number-of-records":{"values":{"radio:options[default_action]":["summary"]},"num":1,"type":"hide"},"edit-options-summary-format":{"values":{"radio:options[default_action]":["summary"]},"num":1,"type":"hide"},"edit-options-summary-options-default-summary-items-per-page":{"values":{"edit-options-summary-options-default-summary-override":[1]},"num":1,"type":"hide"},"edit-options-summary-options-default_summary":{"values":{"radio:options[default_action]":["summary"],"radio:options[summary][format]":["default_summary"]},"num":2,"type":"hide"},"edit-options-summary-options-unformatted-summary-items-per-page":{"values":{"edit-options-summary-options-unformatted-summary-override":[1]},"num":1,"type":"hide"},"edit-options-summary-options-unformatted_summary":{"values":{"radio:options[default_action]":["summary"],"radio:options[summary][format]":["unformatted_summary"]},"num":2,"type":"hide"},"edit-options-summary-options-jump_menu_summary":{"values":{"radio:options[default_action]":["summary"],"radio:options[summary][format]":["jump_menu_summary"]},"num":2,"type":"hide"},"edit-options-exception-title":{"values":{"edit-options-exception-title-enable":["1"]},"num":1,"type":"hide"},"edit-options-title":{"values":{"edit-options-title-enable":["1"]},"num":1,"type":"hide"},"edit-options-breadcrumb":{"values":{"edit-options-breadcrumb-enable":["1"]},"num":1,"type":"hide"},"edit-options-validate-type":{"values":{"edit-options-specify-validation":["1"]},"num":1,"type":"hide"},"edit-options-validate-options-node-access-op":{"values":{"edit-options-validate-options-node-access":[true]},"num":1,"type":"hide"},"edit-options-validate-options-node":{"values":{"edit-options-specify-validation":["1"],"edit-options-validate-type":["node"]},"num":2,"type":"hide"},"edit-options-validate-options-taxonomy_term":{"values":{"edit-options-specify-validation":["1"],"edit-options-validate-type":["taxonomy_term"]},"num":2,"type":"hide"},"edit-options-validate-options-user_or_permission":{"values":{"edit-options-specify-validation":["1"],"edit-options-validate-type":["user_or_permission"]},"num":2,"type":"hide"},"edit-options-validate-options-user-roles":{"values":{"edit-options-validate-options-user-restrict-roles":[1]},"num":1,"type":"hide"},"edit-options-validate-options-user":{"values":{"edit-options-specify-validation":["1"],"edit-options-validate-type":["user"]},"num":2,"type":"hide"},"edit-options-validate-options-php":{"values":{"edit-options-specify-validation":["1"],"edit-options-validate-type":["php"]},"num":2,"type":"hide"},"edit-options-validate-options-numeric":{"values":{"edit-options-specify-validation":["1"],"edit-options-validate-type":["numeric"]},"num":2,"type":"hide"},"edit-options-validate-fail":{"values":{"edit-options-specify-validation":["1"]},"num":1,"type":"hide"}}}},"merge":true},{"command":"insert","method":"prepend","selector":"head","data":"\u003Cscript type=\u0022text\/javascript\u0022 src=\u0022http:\/\/www.domainname.com\/misc\/form.js?v=7.17\u0022\u003E\u003C\/script\u003E\n\u003Cscript type=\u0022text\/javascript\u0022 src=\u0022http:\/\/www.domainname.com\/misc\/textarea.js?v=7.17\u0022\u003E\u003C\/script\u003E\n\u003Cscript type=\u0022text\/javascript\u0022 src=\u0022http:\/\/www.domainname.com\/misc\/collapse.js?v=7.17\u0022\u003E\u003C\/script\u003E\n","settings":null},{"command":"viewsSetForm","output":"\u003Cform action=\u0022\/admin\/structure\/views\/ajax\/add-item\/esales\/default\/argument\u0022 method=\u0022post\u0022 id=\u0022views-ui-config-item-form\u0022 accept-charset=\u0022UTF-8\u0022\u003E\u003Cdiv\u003E\u003Cdiv class=\u0022scroll form-wrapper\u0022 id=\u0022edit-options\u0022\u003E\u003Cdiv class=\u0022form-item description form-wrapper\u0022 id=\u0022edit-options-form-description\u0022\u003EAppears in: node:ebargains_mailhandler_source, node:email_updates, node:emenu_breakfast, node:emenu_breakfast_mailhandler_sour, node:emenu_dinner, node:emenu_dinner_mailhandler_source, node:emenu_lunch, node:emenu_lunch_mailhandler_source, node:emenu_weekly, node:emenu_weekly_mailhandler_source, node:esales, node:eservices, node:eservices_mailhandler_source, node:eshopping, node:eshopping_mailhandler_source.\u003C\/div\u003E\u003Cdiv class=\u0022description form-wrapper\u0022 id=\u0022edit-options-description\u0022\u003EThis display does not have a source for contextual filters, so no contextual filter value will be available unless you select \u0027Provide default\u0027.\u003C\/div\u003E\u003Cfieldset class=\u0022form-wrapper\u0022 id=\u0022edit-options-no-argument\u0022\u003E\u003Clegend\u003E\u003Cspan class=\u0022fieldset-legend\u0022\u003EWhen the filter value is \u003Cem\u003ENOT\u003C\/em\u003E available\u003C\/span\u003E\u003C\/legend\u003E\u003Cdiv class=\u0022fieldset-wrapper\u0022\u003E\u003Cdiv id=\u0022edit-options-default-action\u0022 class=\u0022form-radios\u0022\u003E\u003Cdiv class=\u0022form-item form-type-radio form-item-options-default-action\u0022\u003E\n \u003Cinput type=\u0022radio\u0022 id=\u0022edit-options-default-action-ignore\u0022 name=\u0022options[default_action]\u0022 value=\u0022ignore\u0022 checked=\u0022checked\u0022 class=\u0022form-radio\u0022 \/\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-options-default-action-ignore\u0022\u003EDisplay all results for the specified field \u003C\/label\u003E\n\n\u003C\/div\u003E\n\u003Cdiv class=\u0022views-admin-dependent form-wrapper\u0022 id=\u0022edit-options-default-action-ignore-options\u0022\u003E\u003C\/div\u003E\u003Cdiv class=\u0022form-item form-type-radio form-item-options-default-action\u0022\u003E\n \u003Cinput type=\u0022radio\u0022 id=\u0022edit-options-default-action-default\u0022 name=\u0022options[default_action]\u0022 value=\u0022default\u0022 class=\u0022form-radio\u0022 \/\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-options-default-action-default\u0022\u003EProvide default value \u003C\/label\u003E\n\n\u003C\/div\u003E\n\u003Cdiv class=\u0022views-admin-dependent form-wrapper\u0022 id=\u0022edit-options-default-action-default-options\u0022\u003E\u003Cdiv id=\u0022edit-options-default-argument-type-wrapper\u0022\u003E\u003Cdiv class=\u0022form-item form-type-select form-item-options-default-argument-type\u0022\u003E\n \u003Clabel for=\u0022edit-options-default-argument-type\u0022\u003EType \u003C\/label\u003E\n \u003Cselect id=\u0022edit-options-default-argument-type\u0022 name=\u0022options[default_argument_type]\u0022 class=\u0022form-select\u0022\u003E\u003Coption value=\u0022node\u0022\u003EContent ID from URL\u003C\/option\u003E\u003Coption value=\u0022fixed\u0022 selected=\u0022selected\u0022\u003EFixed value\u003C\/option\u003E\u003Coption value=\u0022php\u0022\u003EPHP Code\u003C\/option\u003E\u003Coption value=\u0022raw\u0022\u003ERaw value from URL\u003C\/option\u003E\u003Coption value=\u0022taxonomy_tid\u0022\u003ETaxonomy term ID from URL\u003C\/option\u003E\u003Coption value=\u0022user\u0022\u003EUser ID from URL\u003C\/option\u003E\u003Coption value=\u0022current_user\u0022\u003EUser ID from logged in user\u003C\/option\u003E\u003C\/select\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cdiv id=\u0022edit-options-argument-default-options-node-wrapper\u0022\u003E\u003Cdiv id=\u0022edit-options-argument-default-o

CommentFileSizeAuthor
#7 form-value.jpg50.64 KBsah62
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

IvoryTierra’s picture

I got a similar error when I attempted to add a field in a new view. It was a very simple view. I am using the new UniServer and I think there may be an issue with the php version. I would attempt to switch to an earlier version of php and see if the error is resolved.

IvoryTierra’s picture

Well I have tried the same simple view on three different stacks* and got the same error so I guess it is not php thing.

*UniServer 8.1.2
*UniServer 8.6.7
*Wamp

Just to be clear:
This happens when adding a field to a view.

MtRoxx’s picture

Mine was adding a contextual filter to a view. I wound up rebuilding the site from scratch and do not have the issue anymore..

IvoryTierra’s picture

Well I have narrowed it down to "fitvids" being the culprit...

I started my site from scratch adding a few modules at a time and when I got to this one it started throwing the errors. There must be an issue between views and fitvids... have to investigate. Don't know if you had a similar conflict. Please reply if so! Thanks!

MtRoxx’s picture

Ivory, what module does fitvids go with?

IvoryTierra’s picture

I was using it in conjunction with Media in order to make it responsive. But I am looking at using something like Mediafront instead.

sah62’s picture

FileSize
50.64 KB

I'm experiencing the same error. If it helps, I've attached a screen shot that describes the value of the $form variable that's missing the restrict_roles and roles indexes. Note that both $form['restrict_roles'] and $form['roles'] are undefined.

sah62’s picture

If you're using the Ubercart module there's a patch described in #1914874: Undefined index: restrict_roles & Undefined index: roles. I just tested the patch and it eliminated the problem for me.

Emeline’s picture

I had an error that looks similar. I could not add a field or do anything without having this whole page of code displayed. I disabled Javascript in Views, settings. It fixed the issue for me. Hope it helps.

harpsw’s picture

I had the same error on a brand new site. Not using fitvids (whatever is it) & don't have ubercart installed. Disabling javascript per #9 from Emeline worked for me.

MustangGB’s picture

Priority: Critical » Normal
renatog’s picture

Hi guys

This issue is old but can help many people.

This problem has been fixed in the lasts version of Views project.

Please update for the last version for solving this error.

renatog’s picture

Status: Active » Fixed

Any problem with 7.x-3.18 feels free for reopen.

Status: Fixed » Closed (fixed)

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