Now, that should definitly work. Can you look at the include_path that your Apache/PHP install uses? what are the exact errors that you get if you don't hardcode paths in your modules?
Ah, ok, here we go. I installed the pathauto module, and after enabling it I get these errors on the modules screen:
* warning: main(modules/pathauto/pathauto_taxonomy.inc): failed to open stream: No such file or directory in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(): Failed opening 'modules/pathauto/pathauto_taxonomy.inc' for inclusion (include_path='/usr/share/pear') in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(modules/pathauto/pathauto_menu.inc): failed to open stream: No such file or directory in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(): Failed opening 'modules/pathauto/pathauto_menu.inc' for inclusion (include_path='/usr/share/pear') in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(modules/pathauto/contrib/pathauto_node_i18n.inc): failed to open stream: No such file or directory in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(): Failed opening 'modules/pathauto/contrib/pathauto_node_i18n.inc' for inclusion (include_path='/usr/share/pear') in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(modules/pathauto/contrib/pathauto_node_event.inc): failed to open stream: No such file or directory in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(): Failed opening 'modules/pathauto/contrib/pathauto_node_event.inc' for inclusion (include_path='/usr/share/pear') in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(modules/pathauto/pathauto_node.inc): failed to open stream: No such file or directory in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(): Failed opening 'modules/pathauto/pathauto_node.inc' for inclusion (include_path='/usr/share/pear') in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(modules/pathauto/pathauto_user.inc): failed to open stream: No such file or directory in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(): Failed opening 'modules/pathauto/pathauto_user.inc' for inclusion (include_path='/usr/share/pear') in /var/www/html/drupal/modules/pathauto/pathauto.module on line 8.
Any ideas how to correct these path errors?
- jody
Op vrijdag 4 augustus 2006 21:47, schreef Jody Cleveland:
Any ideas how to correct these path errors?
One thing to check are the file permissions. It may sound like black magick, but here is what needs to be the case: the server process user (usually either named apache or www-data when you run apache) needs to have read access for all files. Some servers solve this by adding apache to a group that has access to all files in the public area. the server process will sometimes only run / read files that are in a directory wich is executable for the server-user
Can you confirm that a) permissions on all PHP files are the same? Or do some have other users, groups and/or other permissions? b) that your server/host does not require funny stuff such as (yes, I have encountered this before!) all php files to sit in one directory only.
Bèr