I've tried upgrading several times from 5.x.1.2, but every time I get:

* warning: include_once(modules/pathauto/pathauto.inc) [function.include-once]: failed to open stream: No such file or directory in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 71.
* warning: include_once() [function.include]: Failed opening 'modules/pathauto/pathauto.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 71.
* warning: include_once(modules/pathauto/pathauto_node.inc) [function.include-once]: failed to open stream: No such file or directory in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 72.
* warning: include_once() [function.include]: Failed opening 'modules/pathauto/pathauto_node.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 72.
* warning: include_once(modules/pathauto/pathauto_taxonomy.inc) [function.include-once]: failed to open stream: No such file or directory in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 73.
* warning: include_once() [function.include]: Failed opening 'modules/pathauto/pathauto_taxonomy.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 73.
* warning: include_once(modules/pathauto/pathauto_user.inc) [function.include-once]: failed to open stream: No such file or directory in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 74.
* warning: include_once() [function.include]: Failed opening 'modules/pathauto/pathauto_user.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/modules/pathauto/pathauto.module on line 74.

I've tried several downloads and also tried the latest dev, but I get same results every time I run update.php

mysql 5.0.42, php 5.2.53

The only way I can stop it is if I take out $pathauto_path/ from lines 71-74 of pathauto.module and use:

include_once("pathauto.inc");
include_once("pathauto_node.inc");
include_once("pathauto_taxonomy.inc");
include_once("pathauto_user.inc");

Is it OK to do this? Or will it still be broken somewhere?

Stuart

CommentFileSizeAuthor
#3 more_robust_includes_215993.patch1.19 KBgreggles

Comments

greggles’s picture

Title: $pathauto_path/ problem » include path problem

Well, so far you are the only one to report this specific problem, so the question becomes what settings do you have for php/apache/file system that cause this.

I guess we could try it once with $pathauto_path/ and then once without and if it's not there then just do a drupal_set_message. How does that sound? Since it's assigned to you, do you plan to provide a patch to do that?

greggles’s picture

Assigned: StuartDH » greggles
Status: Active » Needs review
StatusFileSize
new1.19 KB

Here's a patch which attempts to do that. I don't know how to repeat the bug so I can't say if it will work for you but it does work for me.

greggles’s picture

Status: Needs review » Closed (won't fix)

I think the current system for includes make sense - they are the style used by basically every other module.

Since the original reporter hasn't reported back and since nobody else has reported this: won't fix.

turek’s picture

I have the same problem, and the fix didn't worked for me, it still won't include pathauto_node.inc, etc.
I think admin of my server changed something, but I don't know what exacly. It worked fine before :/

greggles’s picture

#331357: Requires are unanchored is probably a better approach to this problem since it is the technique used by Drupal core. Can you see if that works for you?