Posted by ezra-g on February 21, 2013 at 4:08pm
4 followers
Jump to:
| Project: | Drupal Commons |
| Version: | 7.x-3.x-dev |
| Component: | Search |
| Category: | bug report |
| Priority: | critical |
| Assigned: | jpontani |
| Status: | closed (fixed) |
Issue Summary
Per this screenshot.
I previously had Commons core search enabled but it's now disabled.

| Attachment | Size |
|---|---|
| Screenshot_2_21_13_11_07_AM.png | 56.62 KB |
Comments
#1
I noticed these errors in the dblog that intermittently appeared on screen:
Warning: date_format() expects parameter 1 to be DateTime, boolean given in format_date() (line 2016 of /mnt/www/html/commonsintdev/docroot/includes/common.inc).
Notice: Undefined index: user in rich_snippets_default_preprocessor() (line 22 of /mnt/www/html/commonsintdev/docroot/profiles/commons/modules/contrib/rich_snippets/rich_snippets.preprocess.inc).
#2
The facets were not enabled for the default Solr environment. This shouldn't happen ever, as any switching between environments should recreate/enable all appropriate facets that are needed on the Solr page.
Looking into why they weren't enabled.
#3
I can't reproduce this, so I'm not sure exactly what's going on. This shouldn't ever happen as upon any new default Solr environment selected will force Commons Search Solr to update any facets that are required for the search pages.
#4
Committed a fix. The issue was that upon enabling Acquia Search, a new environment is created, but Events Solr feature didn't see that a new environment was created, so was not able to make sure the appropriate facets were created alongside. Added a hook_modules_enabled() implementation that checks to see if Acquia Search was enabled, and if so, forces the appropriate facets to be updated.
http://drupalcode.org/project/commons_events.git/commitdiff/c4fea0e
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
When I search for any user and then I click on tab Site content I received the error Notice: Undefined index: date in rich_snippets_default_preprocessor(). I am using Drupal Commons 3.0 Beta2.
Can any one help me?
Thanks in advance.