Getting the following error when adding any contextual filter to a view.

Steps: edit view > add contextual filter > contend:nid, etc.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/add-item/patient_evaluation/page_2/argument
StatusText: OK
ResponseText:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of rules_invoke_component(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/all/modules/rb/views/rb_views_plugin_argument_validate_rules_component.inc on line 44
[ {"command":"settings", "settings":{"basePath":"\u002Fchsm\u002F", "pathPrefix":"", "ajaxPageState":{"theme":"seven", "theme_token":"giMBsKYg8s-LUt7V8ugqMTPjF7ISFj3mhDVecIuD-AM", "css":[ ], "js":{"misc\u002Fform.js":1, "misc\u002Fcollapse.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-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-rb_views_plugin_argument_validate_rules_component":{"values":{"edit-options-specify-validation":[ "1" ], "edit-options-validate-type":[ "rb_views_plugin_argument_validate_rules_component" ]}, "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-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-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\u002Fjavascript\u0022 src=\u0022http:\u002F\u002Fguschilds.com\u002Fchsm\u002Fmisc\u002Fform.js?v=7.12\u0022\u003E\u003C\u002Fscript\u003E\u000A\u003Cscript type=\u0022text\u002Fjavascript\u0022 src=\u0022http:\u002F\u002Fguschilds.com\u002Fchsm\u002Fmisc\u002Fcollapse.js?v=7.12\u0022\u003E\u003C\u002Fscript\u003E\u000A", "settings":null}, {"command":"viewsSetForm", "output":"\u003Cform action=\u0022\u002Fchsm\u002Fadmin\u002Fstructure\u002Fviews\u002Fajax\u002Fadd-item\u002Fpatient_evaluation\u002Fpage_2\u002Fargument\u0022 method=\u0022post\u0022 id=\u0022views-ui-config-item-form\u0022 accept-charset=\u0022UTF-8\u0022\u003E\u003Cdiv\u003E\u003Cdiv id=\u0022views-progress-indicator\u0022\u003E1 of 2\u003C\u002Fdiv\u003E\u003Cdiv class=\u0022views-override clearfix container-inline\u0022\u003E\u003Cdiv class=\u0022form-item form-type-select form-item-override-dropdown\u0022\u003E\u000A \u003Clabel for=\u0022edit-override-dropdown\u0022\u003EFor \u003C\u002Flabel\u003E\u000A \u003Cselect id=\u0022edit-override-dropdown\u0022 name=\u0022override[dropdown]\u0022 class=\u0022form-select\u0022\u003E\u003Coption value=\u0022default\u0022\u003EAll displays (except overridden)\u003C\u002Foption\u003E\u003Coption value=\u0022page_2\u0022\u003EThis page (override)\u003C\u002Foption\u003E\u003C\u002Fselect\u003E\u000A\u003C\u002Fdiv\u003E\u000A\u003C\u002Fdiv\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\u003EThe user authoring the content. If you need more fields than the uid add the content: author relationship\u003C\u002Fdiv\u003E\u003Cdiv class=\u0022form-item form-type-select form-item-options-relationship\u0022\u003E\u000A \u003Clabel for=\u0022edit-options-relationship\u0022\u003ERelationship \u003C\u002Flabel\u003E\u000A \u003Cselect id=\u0022edit-options-relationship\u0022 name=\u0022options[relationship]\u0022 class=\u0022form-select\u0022\u003E\u003Coption value=\u0022none\u0022 selected=\u0022selected\u0022\u003EDo not use a relationship\u003C\u002Foption\u003E\u003Coption value=\u0022field_question_nid\u0022\u003Efield_question\u003C\u002Foption\u003E\u003Coption value=\u0022field_evaluations_nid\u0022\u003Efield_evaluations\u003C\u002Foption\u003E\u003C\u002Fselect\u003E\u000A\u003C\u002Fdiv\u003E\u000A\u003Cdiv class=\u0022description form-wrapper\u0022 id=\u0022edit-options-description\u0022\u003EThe contextual filter values is provided by the URL.\u003C\u002Fdiv\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\u002Fem\u003E in the URL\u003C\u002Fspan\u003E\u003C\u002Flegend\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\u000A \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 \u002F\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-options-default-action-ignore\u0022\u003EDisplay all results for the specified field \u003C\u002Flabel\u003E\u000A\u000A\u003C\u002Fdiv\u003E\u000A\u003Cdiv class=\u0022views-admin-dependent form-wrapper\u0022 id=\u0022edit-options-default-action-ignore-options\u0022\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\u0022form-item form-type-radio form-item-options-default-action\u0022\u003E\u000A \u003Cinput type=\u0022radio\u0022 id=\u0022edit-options-default-action-default\u0022 name=\u0022options[default_action]\u0022 value=\u0022default\u0022 class=\u0022form-radio\u0022 \u002F\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-options-default-action-default\u0022\u003EProvide default value \u003C\u002Flabel\u003E\u000A\u000A\u003C\u002Fdiv\u003E\u000A\u003Cdiv class=\u0022views-admin-dependent form-wrapper\u0022 id=\u0022edit-options-default-action-default-options\u0022\u003E\u003Cdiv id=\u0022edit-options-defaul

CommentFileSizeAuthor
#9 1552154_9.patch1.13 KBikeigenwijs
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m.gillen’s picture

I get an HTTP-Result-Code 500 by adding an Contextual Filter to a view after having installed the Rules Bonus Pack.

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: http://localhost/og/admin/structure/views/ajax/add-item/usertax/page/argument
StatusText: Internal Server Error
ResponseText: 
seemas’s picture

#1 has correct mark about Rules Bonus Pack. Don't get error after removed submodule rules bonus view

murias’s picture

Ran into the same problem myself, sure enough, the fix was to disable Rules Bonus Views.

SimonMartineau’s picture

Same for me!

gl2748’s picture

It was "Rules Bonus - Views'' for me too.
As per M.Gillen I wasn't getting any 'Response Text', pre-existing contextual filters on my views were still working.
I could add new filters (after refreshing the page) but could not configure them - site wide.

loparr’s picture

Priority: Normal » Major

Ok but has somebody figured out how to actually fix the error instead turning off the module? I would say that this is a major problem if some module break functionality of another.

metakel’s picture

Same here. Got the AJAX error (when enabled Views' JavaScript) and Internal Server error 500 (when disabled Views' JavaScript).
Cannot add new or amend previously using contextual filter.
Once the Rules Bonus: Views has been disabled, the contextual filter editing works.
I am using Nginx and PHP-FPM.

cybermache’s picture

I got this from a friend but it works so far for me.

In sites/all/modules/rb/views/rb_views_plugin_argument_validate_rules_component.inc change line 44 from this:
$result = rules_invoke_component($this->options['component'], &$this->argument->argument, $this->view->args);
to this:
$result = rules_invoke_component($this->options['component'], $this->argument->argument, $this->view->args);

ikeigenwijs’s picture

FileSize
1.13 KB

rolled it into a patch

ikeigenwijs’s picture

Status: Active » Needs review

Worked for me!

loparr’s picture

worked for me as well. Thank you

ikeigenwijs’s picture

Status: Needs review » Reviewed & tested by the community

Same patch in sister issue closed that one. https://www.drupal.org/node/2167663

Anybody’s picture

Priority: Major » Critical

Please fix this in the stable version, it's urgent.
Since PHP 5.5 this is a big problem... The patch is rock solid!

Setting to critical because it completely breaks views contextual filters and leads to a WSOD which is hard to debug in PHP 5.5.

Thank you for your great work. Is there an active module maintainer who may fix this? :)

nhck’s picture

Same issue here. Patch solves it. Reason is the following:

..as of PHP 5.4.0, call-time pass-by-reference was removed, so using it will raise a fatal error.

( https://secure.php.net/manual/en/language.references.pass.php )

NWOM’s picture

#9 worked perfectly. Thank you.

haridyb’s picture

I have the same issue, but can not find the directory: rb/views/rb_views_plugin_argument_validate_rules_component

any help?

gochaxxl’s picture

changing php version to 5.5 on server, solves the problem.

cfgregory’s picture

#9 fix it for me as well. Thanks!

@haridy, if you installed the module via drush, it should have put it in the default location of sites/all/modules/ . Listed in there will be a directory called rb, which stands for rules_bonus. You can patch via drush, just google it. Good luck!

maxplus’s picture

Thanks,

#9 also solved this issue for me!

Dian HS’s picture

hey #9 thanks,it fixed the problem

tory-w’s picture

Hi all! The patch in #9 still works as of June 2022 with Views 7.x-3.25 and Rules 7.x-2.13 if you run into this problem.