I can get through the initial steps of creating an Apache Solr Node view and can even save it. However, if I try and edit the view, the site simply shows me a page that says Error. If when creating the View, I choose Save and Edit, it throws out the same error. I am using Seven as the admin theme, Drupal is 7.1, Views is 7.x-3.0-beta3 (also tried upgrading to View 3.0-rc1 and even the latest dev (Oct-7).

Comments

ygerasimov’s picture

@incrn8 Could you please advise what error do you get? Do you have any errors in drupal logs?

davemybes’s picture

The error I get is "Error", and there's nothing in the logs, so I've no idea what's causing this.

ygerasimov’s picture

Priority: Critical » Normal

Could you please export your view and post it here? I will try to reproduce the error. Also please post a screenshot of error if possible. Thanks!

becw’s picture

I can create a view, but when I get to the Views editing interface I get a javascript error that says:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/view/foo/preview/default/ajax
StatusText: OK
ResponseText: 
( ! ) Fatal error: Interface 'DrupalSolrQueryInterface' not found in /home/becw/sites/mysite/sites/default/modules/apachesolr/Solr_Base_Query.php on line 251
Call Stack
#TimeMemoryFunctionLocation
10.0003213360{main}(  )../index.php:0
20.365143642528menu_execute_active_handler( ???, ??? )../index.php:21
30.381045903280call_user_func_array
( string(22), array(2) )../menu.inc:503
40.381045903824views_ui_build_preview( object(view)[3], string(7), ??? )../menu.inc:0
50.392246248184views_ui_preview( object(view)[186], string(7), array(0) )../admin.inc:947
60.439451576000view->preview( string(7), array(0) )../admin.inc:175
70.443351838928views_plugin_display->preview(  )../view.inc:1153
80.443351838928view->render( ??? )../views_plugin_display.inc:2594
90.443351838928view->execute( null )../view.inc:1004
100.446251875616apachesolr_views_query->execute( object(view)[186] )../view.inc:984
110.448252131632drupal_autoload_class( string(13) )../bootstrap.inc:0
120.448252131632_registry_check_code( string(5), string(13) )../bootstrap.inc:2929
130.450552384472require_once( '/shared/vash/sandboxes/white/nbc/www/sites/default/modules/apachesolr/Solr_Base_Query.php' )../bootstrap.inc:3004

#1408192: Add apachesolr.interface.inc to the .info file (patch) fixes this issue. @incrn8, is this the same error that you get?

StevenWill’s picture

Hey, apply the patch referenced in #4 to apachesolr fixed the errors for me. Thanks

becw’s picture

Status: Active » Fixed

The patch from #4 has been committed to apachesolr -dev, so I think this issue is resolved.

Status: Fixed » Closed (fixed)

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