D7.2
Added views-visual-search module
under advanced
Exposed forms selected Visual Search

following error
Fatal error: Call to a member function pre_render() on a non-object in /sites/all/modules/views/includes/view.inc on line 975

I cannot recover this page view, edit it or undo the mess.

Additional

If I go in through views to edit the page this error message comes up

Fatal error: Call to a member function pre_execute() on a non-object in /sites/all/modules/views/plugins/views_plugin_display.inc on line 2342

Comments

dawehner’s picture

Project: Views (for Drupal 7) » Views VisualSearch
Version: 7.x-3.0-rc1 » 7.x-1.x-dev
Component: page displays » Code

Move to views visual search module first.
They probably have a bug in there.

mjpa’s picture

First thing I would do is update Drupal core if possible.

I assume you're using libraries 2.x-dev + Views 3.0-rc1?

The errors are down to Views failing to load the plugin, but from when I was starting the module, if there are errors in the module that would stop the plugin loading, Views won't let you select the plugin.

synistics’s picture

I am updating core tomorrow, the site is going live, so I held off until Sunday.

I will have another try at the module tomorrow on a throw-away page.

Yes Libraries and views are up to date.

If it crashes again, I will tie it to visual search as the issue.

dawehner’s picture

Just for the record: Sadly i don't see something obvious which explains the error in the module.

synistics’s picture

Component: Code » Miscellaneous
Priority: Normal » Minor
Status: Active » Needs review

I have stopped trying to use this method. I will set up a test site to see what happens in the mean time this is closed, but not fixed or perhaps replicated.

mjpa’s picture

Status: Needs review » Postponed (maintainer needs more info)

There's nothing to review...

W.M.’s picture

are you sure the views-visual-search module is enabled ?!

synistics’s picture

yes it was, the site is now live, so will not be using it to replicate the issue. I have a new site on the board and will use it to see if the issue replicates under that environment.

mjpa’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No more information, going with cannot reproduce. Feel free to re-open if you come across it again.

owntheweb’s picture

I had this error occur when I enabled "Better Exposed Filters" (BEF), used it in a view, then deleted the BEF module from the site (a silly moment for sure). I re-added the module which resolved the error.

drupalerocant’s picture

thanks owntheweb, i had the same problem uninstalling better exposed filters module when i was mistakingly using it in a view. I reinstalled the module and everything came back to normal.

forestgardener’s picture

So did I. Thanks for the hint. Interestingly though, I don't recall turning off better exposed filters, even though they were off.

forestgardener’s picture

Issue summary: View changes

add additional info from edit of view