Drupal Association members fund grants that make connections all over the world.
Hi, I have the following configuration:
- Drupal 7
If I add to the search display "Add to cart" option but DS is turned off and I index products and then turn on DS, I can see taxonomy terms on the products on the search results page. But if I first turn on DS and then index, then I get a lot of warnings that I am passing array instead objects:
Notice: Trying to get property of non-object in _uc_attribute_alter_form() (line 1322 of /path/to/drupal/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
Warning: Invalid argument supplied for foreach() in _uc_attribute_alter_form() (line 1322 of /path/to/drupal/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
So I did a backtrace and noticed that on setup with warnings I have zs_entity loaded with some information (according to http://drupalcontrib.org/api/drupal/contributions!ds!modules!ds_search!d... thats a hidden field where nodes are kept to avoid node_load later). But I still couldnt figure out why I am getting arrays instead objects, so I was suspecting on zs_entity.
I tried to play with some DS settings and in the end when I turned on DS' Multisite support option, problem disappeared. Now, I checked out this option and it seems to be an integration with ApacheSolr MultiSite Search module which I dont use.
Also it appears that ApacheSolr Multisite Search allows shared indexing which DS' Multisite support option implies too.
"Enable this in case multiple sites share one index. Note that sometimes you need to make sure that your formatters are creating absolute paths for links or images. Implementing hook_url_outbound_alter() is a good option in which you can set $options['absolute'] to TRUE."
The only reason I could come up with why this option fixes those errors / warnings, seems to be, because I am using Aegir. Therefore my webiste is not in /sites/default, but in sites/enter_website_domain_here. I couldnt find in any DS documentation or in README about multisite option so I would like if someone can confirm this.
Based on the all above, this seems to be a bug or a feature which didn't cover this option. Yes, I can have in Aegir multiple sites that share the same Drupal (aka platform) but I do not share search index as they live standalone. So will DS' Multisite option work as expected by not turning objects into arrays (warnings mentioned above) while preserving separate search indexes (because I dont use AS Multisite Search) or will it impact somehow?