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.
Hello, I just updated my drupal modules with drush on my notebook and my website doesn't work. The error is this:
Fatal error: Call to a member function pre_execute() on a non-object in /opt/lampp/htdocs/drupal/sites/default/modules/views/plugins/views_plugin_display.inc on line 2649
I did't find the same error for the stable (3.5) version of Views so I prefer to ask if someone can give me some tips on how can I solve this
Thanks
Comments
Comment #1
stilllife00 CreditAttribution: stilllife00 commentedIt seems there was a wrong configuration on my folders. I deleted the modules from 'default' and install the updated modules only on 'mysite' and now the error message is disappeared
Comment #2
tim.foxell CreditAttribution: tim.foxell commentedJust an FYI incase someone else gets this message, it could be related to the "Exposed Form" settings. Possibly a result of having "Better Exposed Filters" (http://drupal.org/project/better_exposed_filters), or similar, selected for your "Exposed form style" and then removing the module without updating your view. This is what I found in my case. To resolve it went to my view and update the style for "Exposed form style" and that cleared the error.
Going by this it could possibly be re-produced for the the "Format" style as well. Say for instance you had a slideshow style module selected and then removed the module without updating the format for that view.
Hope this is helpful.
Comment #3
andyg5000Thanks tim.foxell! Missing better_exposed_filters was my issue!
Comment #4
senortim CreditAttribution: senortim commentedI'll add that I had this problem as well. In my case, BEF was part of the view, but problems with file permissions (seem to have) caused BEF to disappear, despite Admin>Modules showing it was installed and enabled. Being sure to have the read bit set for everyone and clearing the cache made the view reappear (no WSOD).
Comment #5
vallab444 CreditAttribution: vallab444 commentedThanks, tim.foxell, for the tip
Comment #6
jwilde CreditAttribution: jwilde commentedI'm trying to get the patch to work but getting...
Fatal error: Call to a member function preExecute() on null in /var/www/html/mysite/sites/all/modules/contrib/_search/search_api/contrib/search_api_views/includes/plugin_cache.inc on line 90
Any ideas how to fix it. I'm using 7.x-1.20 search api and views content cache 7.x-3.0-alpha3. Thanks, Jim
Comment #7
Nathan Tsai CreditAttribution: Nathan Tsai as a volunteer commented#2 Solved the problem for me. I went to my view and changed exposed filters to basic and that solved it. Thanks tim.foxell!
Comment #8
Shai CreditAttribution: Shai commentedThanks @tim.foxell. Your helpf from 2012 is still making a difference!
Comment #9
scoutex CreditAttribution: scoutex commentedThanks for great tip @tim.foxel
Comment #10
leisurman CreditAttribution: leisurman commentedI am having this issue in Drupal 8. https://www.drupal.org/project/views_data_export/issues/2979635.
My View is using is using Better Exposed Filters, removing it did not fix the problem.