Hey,

Thanks for the module. I tried it out using a Drupal Commons site but it caused a blank screen when i tried to use a facet. The seo blocks did not display.

Good luck, Jim

Comments

citlacom’s picture

Hello Jim,

Thanks for the report. Will be really helpful if you can check the logs of your server to find some PHP exception, error message or something that could give me more hints to fix the problem. Or can you give me the list of modules that you have enabled in your Drupal Commons installation to try to treproduce the error.

Thanks,

Regards.

Pablo.

jwilde’s picture

I hope this helps.
PHP Fatal error: Call to undefined function apachesolr_get_facet_definitions() in /mnt/www/html/mysite/docroot/sites/all/modules/contrib/apachesolr_seo_blocks/apachesolr_seo_blocks.module on line 312

Jim

citlacom’s picture

Hello Jim,

This is a function that is part of ApacheSolr module (see below) so I think could be related with the version you are using. Can you let me know which version of ApacheSolr are you using? Thanks.

function apachesolr_get_facet_definitions() {
  static $definitions;
  if (!isset($definitions)) {
    $operator_settings = variable_get('apachesolr_operator', array());
    foreach (module_implements('apachesolr_facets') as $module) {
      $facets = module_invoke($module, 'apachesolr_facets');
      if (!empty($facets)) {
        foreach ($facets as $delta => $info) {
          $definitions[$module][$delta] = $info;
          if (isset($definitions[$module][$delta])) {
            $definitions[$module][$delta]['operator'] = isset($operator_settings[$module][$delta]) ? $operator_settings[$module][$delta] : 'AND';
          }
        }
      }
    }
  }
  return $definitions;
}
jwilde’s picture

apachesolr 6.x-1.6. I also looked through the solr and was thinking of messing around with the code but got sidetracked. Thanks for your help. Jim