I just installed category module on fresh 4.7b4, no wrapper and as soon as I enable the module I receive the following error:
Fatal error: category_init() [function.require]: Failed opening required 'modules/category/category.inc' (include_path='D:\php\PEAR') in D:\Inetpub\domain\modules\category\category.module on line 50
Line 50:
function category_init() {
require_once dirname(drupal_get_filename('module', 'category')) . '/category.inc';
}
Using IIS6, Windows 2003 server PHP5 MySQL5. Drupal thus far seems to be working, I've not added any other modules with the exception of category.
I also looked at this issue: http://drupal.org/node/42899
but don't know if they're related.
Thanks.
Comments
Comment #1
scott_dft commentedYour include path directive seems to be missing the usual dot.
Check out the PHP manual for include path.
Note the line
Using a . in the include path allows for relative includes as it means the current directory.Try it out and if the includes now works please close this issue.
S.
Comment #2
lias commentedFrom the PHP.net website as you indicated:
include_path string
Specifies a list of directories where the require(), include() and fopen_with_path() functions look for files. The format is like the system's PATH environment variable: a list of directories separated with a colon in Unix or semicolon in Windows.
Example G-1. Unix include_path
include_path=".:/php/includes"
Example G-2. Windows include_path
include_path=".;c:\php\includes"
Using a . in the include path allows for relative includes as it means the current directory.
This did fix my problem with includes. Thanks much for your reply Scott_dft!
lsabug : )