Fatal error: Cannot pass parameter 1 by reference in /sites/all/modules/views_maintenance/views_maintenance.views_maintenance.inc on line 140

From what I can tell views::execute_hook_menu() expects two parameters to be passed but only one empty array() is passed on.

I'm running on drupal 7.32 and php 5.3.3-7.

greets

CommentFileSizeAuthor
#8 views_maintenance-wsod-2368071-8.patch745 bytesm.lebedev

Comments

attisan’s picture

Title: wsod » wsod - views_maintenance.views_maintenance.inc on line 140
mrded’s picture

Version: 7.x-1.0 » 7.x-1.x-dev

That's strange, because I was expecting it to execute views_plugin_display_page::execute_hook_menu() which has just one argument.

What version of views do you use?

attisan’s picture

7.x-3.8

m.lebedev’s picture

I have the same error

m.lebedev’s picture

Errors occur in these sections:

1) /sites/all/modules/admin_views/plugins/views_plugin_display_system.inc
function execute_hook_menu(&$callbacks) #159

2) /sites/all/modules/views/plugins/views_plugin_display_page.inc
function execute_hook_menu($callbacks) #53

Need to check a input variables of function.

candelas’s picture

Same error here. I can't use the module. Any solutions? Thanks

ybabel’s picture

+1

m.lebedev’s picture

Status: Active » Needs review
StatusFileSize
new745 bytes
sgdev’s picture

@m.lebedev, thanks for adding a patch. This took care of the issue for me!

  • mrded committed 06d534e on 7.x-1.x authored by m.lebedev
    Issue #2368071 by m.lebedev: wsod - views_maintenance.views_maintenance....
mrded’s picture

Status: Needs review » Fixed

@m.lebedev, thank you. Committed.

mrded’s picture

Title: wsod - views_maintenance.views_maintenance.inc on line 140 » Fatal error: Cannot pass parameter 1 by reference

Status: Fixed » Closed (fixed)

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