Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using the OpenPublish Alpha3 distribution with Drupal 7.10. After upgrading to Views 3.1, the "Search Form" block throws the following error when trying to perform a search:
Fatal error: Call to undefined method view::load()
Fatal error: Call to undefined method view::load() in /MySiteName/profiles/openpublish/modules/contrib/views_boxes/plugins/views_boxes_view.inc on line 388
Comment | File | Size | Author |
---|---|---|---|
#1 | views-boxes-views3-1409242-1.patch | 518 bytes | brenk28 |
Comments
Comment #1
brenk28 CreditAttribution: brenk28 commentedNeed to look into this a bit more, but I'm not sure that line is actually needed.
Comment #2
misteroriginal CreditAttribution: misteroriginal commentedThe patch appears to solve the problem at hand.
Comment #3
tirdadc CreditAttribution: tirdadc commentedThat method was removed in Views here: http://drupal.org/node/1377758
The $view object was already initialized with views_get_view(), it seems to me that the $view->load was superfluous and I'm not sure I see any difference in $view before and after it was called. I tested without it on an existing site and didn't notice any issues.
Comment #4
tirdadc CreditAttribution: tirdadc commentedPushed, thanks!