Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[SOLVED] Unable to get built-in search to work (beta)


Go to End


4 Posts   621 Views

Avatar
kinglozzer

Community Member, 187 Posts

20 March 2012 at 10:34pm

Edited: 20/03/2012 10:35pm

Hi guys,

I'm having some trouble getting SS's built in search feature to work, when I add the following line:

FulltextSearchable::enable();

to my _config.php, I get the following fatal error:
Call to a member function getDatabaseServer() on a non-object in /Users/lawrence/Devsites/***/sapphire/search/FulltextSearchable.php on line 55

I've tried searching through the API and documentation and I can't find anything to suggest that this function has been changed or deprecated - I'm running v3 beta - so do you guys have any thoughts or ideas on what may be causing this?

Thanks,
Loz

Avatar
Willr

Forum Moderator, 5523 Posts

22 March 2012 at 6:51pm

Known bug in 3.0, for now you cannot use that line as _config.php is loaded before the database connection is established.

Avatar
kinglozzer

Community Member, 187 Posts

22 March 2012 at 10:11pm

Ah okay. thanks

Avatar
Willr

Forum Moderator, 5523 Posts

22 March 2012 at 10:34pm