Hi,

I got the following error when moving this module to a subfolder in sites/all/modules, even after using Registry Rebuild. It might be preferable to use module_load_include() instead of require_once or include statements, as described here.

[17-Sep-2013 16:46:46 UTC] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/path/to/drupal/sites/all/modules/facetapi/facetapi.block.inc' (include_path='.:/Applications/MAMP/bin/php/php5.3.14/lib/php') in /path/to/drupal/sites/all/modules/facetapi/facetapi.module on line 69

Comments

alberto56’s picture

Status: Active » Needs review
StatusFileSize
new571 bytes

Here is a patch that does this.

cpliakas’s picture

Status: Needs review » Reviewed & tested by the community

+1. Thanks!

  • cpliakas committed 7a4b34c on 7.x-1.x authored by alberto56
    Issue #2091253 by alberto56: Use module_load_include() instead of...

  • cpliakas committed c556ee3 on authored by alberto56
    Issue #2091253 by alberto56: Use module_load_include() instead of...
cpliakas’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.