symphonists / search_index

Search Index provides an easy way to implement high performance fulltext searching on your Symphony site
32 stars 21 forks source link

Entry Manager not found #10

Closed bitsenpixels closed 13 years ago

bitsenpixels commented 13 years ago

I'm using Symphony 2.2.1 with your latest Seach Index extension. When I set build-entries to yes I get :

Fatal error: Class 'EntryManager' not found in C:\dev\apache2\htdocs\extensions\search_index\data-sources\data.search.php on line 386
nickdunn commented 13 years ago

Good spot. This will happen if no other data sources are attached to the page, or if the Search Index data source executes first. It relies on a native data source running first, which would include the EntryManager class. The fix is for the Search Index data source to also include the manager. If you modify search_index\data-sources\data.search.php and add this to the list of require_once at the top:

require_once(TOOLKIT . '/class.entrymanager.php');

That should do the trick.

nickdunn commented 13 years ago

Fixed.

https://github.com/nickdunn/search_index/commit/722744b35ebd9583edd31d67da926d06bfabcf85