I was getting a WSOD and the error log said:

PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of rules_invoke_component(). in /[...]/sites/all/modules/rb/views/rb_views_plugin_argument_validate_rules_component.inc on line 44

In that file, I changed 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);

It seems to work, but I didn't test for anything else besides my use.

CommentFileSizeAuthor
#5 rb-remove_ampersand-2167663-5.diff839 bytesmaximpodorov

Comments

tolstoydotcom’s picture

Issue summary: View changes
jason.fisher’s picture

Confirming the same fix here.

mcdoolz’s picture

Seems to be fixed. Thank you.

cmstom’s picture

The fix works for sure for me.

maximpodorov’s picture

Status: Active » Needs review
StatusFileSize
new839 bytes

The patch fixes the problem.

r2coder’s picture

Thank you. Confirming the patch resolves the issue. /r

ikeigenwijs’s picture

Status: Needs review » Closed (duplicate)

The patch is correct and works but is also posed in an older issue
https://www.drupal.org/node/1552154

Bishupz1’s picture

I just updates Drupal 7.41 to 7.42 and I am receiving the error that you have posted here. I found the script that has the code you are referring to.

Moved from "views" module to "rb" rules bonus module.

rb_views_plugin_argument_validate_rules_componet.inc
(#5 patch is there and written the exact same way)

I am on a PHP 5.5.12 wamp server

I don't know if this is a core update problem or another module working in tangent.

The Debug information starts with the script

structure/views/ajax/add-item/[view-machine-name]/block/argument

Any help would be appreciated, where to look, if you know of this problem...

Thank you for your time..