hi, I am quite new to drupal (5.0), and have some problems with pathauto. after I turn the module on I get a bunch of warnings. it looks like there might be a problem with permissions(?) but I made the whole directory world readable, and no change. could there be something wrong with my apache conf? or the .htaccess? everything else is working fine (path clean URLs for example works). marius.
* warning: main(modules/pathauto/pathauto_menu.inc) [function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 7. * warning: main() [function.include]: Failed opening 'modules/pathauto/pathauto_menu.inc' for inclusion (include_path='/usr/share/php') in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 7. * warning: main(modules/pathauto/pathauto_node.inc) [function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main() [function.include]: Failed opening 'modules/pathauto/pathauto_node.inc' for inclusion (include_path='/usr/share/php') in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 8. * warning: main(modules/pathauto/pathauto_taxonomy.inc) [function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 9. * warning: main() [function.include]: Failed opening 'modules/pathauto/pathauto_taxonomy.inc' for inclusion (include_path='/usr/share/php') in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 9. * warning: main(modules/pathauto/pathauto_user.inc) [function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 10. * warning: main() [function.include]: Failed opening 'modules/pathauto/pathauto_user.inc' for inclusion (include_path='/usr/share/php') in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 10. * warning: main(modules/pathauto/contrib/pathauto_node_event.inc) [function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 11. * warning: main() [function.include]: Failed opening 'modules/pathauto/contrib/pathauto_node_event.inc' for inclusion (include_path='/usr/share/php') in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 11. * warning: main(modules/pathauto/contrib/pathauto_node_i18n.inc) [function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 12. * warning: main() [function.include]: Failed opening 'modules/pathauto/contrib/pathauto_node_i18n.inc' for inclusion (include_path='/usr/share/php') in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 12.
marius schebella wrote:
* warning: main(modules/pathauto/pathauto_menu.inc)[function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 7.
This error indicates it can't find the file pathauto_menu.inc -- which leads me to believe you have an incomplete install. Do you have all the files that came with pathauot in your modules/pathauto directory?
hi, wow, thats a quick reply, I think I have all the files. can you look at the permission settings? maybe drupal can't find them... m.
ls -l /home/trafficnoise/public_html/drupal/modules/pathauto/
drwxr-sr-x 3 trafficn accountb 4096 Jan 21 00:45 . drwxr-xr-x 34 trafficn accountb 4096 Jan 28 22:11 .. -rw-r--r-- 1 trafficn accountb 4991 Oct 11 23:26 API.txt -rw-r--r-- 1 trafficn accountb 4776 Nov 12 18:25 CHANGELOG.txt -rw-r--r-- 1 trafficn accountb 1022 Jan 17 18:02 INSTALL.txt -rw-r--r-- 1 trafficn accountb 14940 Apr 23 2006 LICENSE.txt -rw-r--r-- 1 trafficn accountb 1719 Nov 12 18:25 README.txt drwxr-sr-x 2 trafficn accountb 4096 Jan 21 00:45 contrib -rw-r--r-- 1 trafficn accountb 5772 Jan 17 18:02 i18n-ascii.example.txt -rw-r--r-- 1 trafficn accountb 354 Jan 21 00:45 pathauto.info -rw-r--r-- 1 trafficn accountb 432 Jan 17 17:53 pathauto.install -rw-r--r-- 1 trafficn accountb 25172 Jan 21 00:26 pathauto.module -rw-r--r-- 1 trafficn accountb 2170 Oct 12 16:54 pathauto_menu.inc -rw-r--r-- 1 trafficn accountb 12693 Jan 17 17:53 pathauto_node.inc -rw-r--r-- 1 trafficn accountb 5451 Jan 17 17:53 pathauto_taxonomy.inc -rw-r--r-- 1 trafficn accountb 6350 Nov 12 00:17 pathauto_user.inc
Earl Miles wrote:
marius schebella wrote:
* warning: main(modules/pathauto/pathauto_menu.inc)[function.main]: failed to open stream: No such file or directory in /home/trafficnoise/public_html/drupal/modules/pathauto/pathauto.module on line 7.
This error indicates it can't find the file pathauto_menu.inc -- which leads me to believe you have an incomplete install. Do you have all the files that came with pathauot in your modules/pathauto directory?
marius schebella wrote:
hi, wow, thats a quick reply, I think I have all the files. can you look at the permission settings? maybe drupal can't find them... m.
ls -l /home/trafficnoise/public_html/drupal/modules/pathauto/
drwxr-sr-x 3 trafficn accountb 4096 Jan 21 00:45 . drwxr-xr-x 34 trafficn accountb 4096 Jan 28 22:11 .. -rw-r--r-- 1 trafficn accountb 4991 Oct 11 23:26 API.txt -rw-r--r-- 1 trafficn accountb 4776 Nov 12 18:25 CHANGELOG.txt -rw-r--r-- 1 trafficn accountb 1022 Jan 17 18:02 INSTALL.txt -rw-r--r-- 1 trafficn accountb 14940 Apr 23 2006 LICENSE.txt -rw-r--r-- 1 trafficn accountb 1719 Nov 12 18:25 README.txt drwxr-sr-x 2 trafficn accountb 4096 Jan 21 00:45 contrib -rw-r--r-- 1 trafficn accountb 5772 Jan 17 18:02 i18n-ascii.example.txt -rw-r--r-- 1 trafficn accountb 354 Jan 21 00:45 pathauto.info -rw-r--r-- 1 trafficn accountb 432 Jan 17 17:53 pathauto.install -rw-r--r-- 1 trafficn accountb 25172 Jan 21 00:26 pathauto.module -rw-r--r-- 1 trafficn accountb 2170 Oct 12 16:54 pathauto_menu.inc -rw-r--r-- 1 trafficn accountb 12693 Jan 17 17:53 pathauto_node.inc -rw-r--r-- 1 trafficn accountb 5451 Jan 17 17:53 pathauto_taxonomy.inc -rw-r--r-- 1 trafficn accountb 6350 Nov 12 00:17 pathauto_user.inc
Aha, you're right, Drupal can't find them. This may be due to a change in PHP that happened along the way -- I had a similar problem in one of my modules. You should file an issue against pathauto, as this may be a bug.
You may be able to manually fix this by opening up pathauto.module in an editor, and searching on the phrase 'include' -- and try putting a './' . in front of the command. (this might be a little difficult if you don't know PHP at all, but what you're trying to accomplish is adding a ./ to the very beginning of the directory path that it uses).
On 1/28/07, Earl Miles merlin@logrus.com wrote:
Aha, you're right, Drupal can't find them. This may be due to a change in PHP that happened along the way -- I had a similar problem in one of my modules. You should file an issue against pathauto, as this may be a bug.
We've got an issue (and an applied patch for 5.x-dev) already: http://drupal.org/node/110674 so no need for a new issue.
It seems to be related to open_basedir somehow, though I don't really know much about that.
Marius - if you download the -dev tarball it should be fixed. Or you can apply that patch to your installation. I hope one of these ideas can fix your problem.
Thanks for the quick responses, Earl - especially to a bug I introduced to the module ;)
Regards, Greg
hi greg, thank you for your answer, the -dev version did not solve my problem, but I hardcoded the variable $pathauto_path to the directory where pathauto is located on my server and got rid of the warnings. so I will keep track on further development, thanks for your work, anyway! marius.
Greg Knaddison - GVS wrote:
On 1/28/07, Earl Miles merlin@logrus.com wrote:
Aha, you're right, Drupal can't find them. This may be due to a change in PHP that happened along the way -- I had a similar problem in one of my modules. You should file an issue against pathauto, as this may be a bug.
We've got an issue (and an applied patch for 5.x-dev) already: http://drupal.org/node/110674 so no need for a new issue.
It seems to be related to open_basedir somehow, though I don't really know much about that.
Marius - if you download the -dev tarball it should be fixed. Or you can apply that patch to your installation. I hope one of these ideas can fix your problem.
Thanks for the quick responses, Earl - especially to a bug I introduced to the module ;)
Regards, Greg
oops, have to correct myself. hardcoding did NOT work. no more warnings, but pathauto did not work yet. so I changed 6 lines in pathauto.module to: include_once('pathauto_menu.inc'); include_once('pathauto_node.inc'); include_once('pathauto_taxonomy.inc'); include_once('pathauto_user.inc'); include_once('contrib/pathauto_node_event.inc'); include_once('contrib/pathauto_node_i18n.inc'); and now it works. marius.
marius schebella wrote:
hi greg, thank you for your answer, the -dev version did not solve my problem, but I hardcoded the variable $pathauto_path to the directory where pathauto is located on my server and got rid of the warnings. so I will keep track on further development, thanks for your work, anyway! marius.
Greg Knaddison - GVS wrote:
On 1/28/07, Earl Miles merlin@logrus.com wrote:
Aha, you're right, Drupal can't find them. This may be due to a change in PHP that happened along the way -- I had a similar problem in one of my modules. You should file an issue against pathauto, as this may be a bug.
We've got an issue (and an applied patch for 5.x-dev) already: http://drupal.org/node/110674 so no need for a new issue.
It seems to be related to open_basedir somehow, though I don't really know much about that.
Marius - if you download the -dev tarball it should be fixed. Or you can apply that patch to your installation. I hope one of these ideas can fix your problem.
Thanks for the quick responses, Earl - especially to a bug I introduced to the module ;)
Regards, Greg