include path problem

StuartDH - January 30, 2008 - 19:32
Project:Pathauto
Version:5.x-2.0
Component:Code
Category:bug report
Priority:critical
Assigned:greggles
Status:won't fix
Description

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

#1

greggles - January 30, 2008 - 19:40
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?

#3

greggles - February 14, 2008 - 14:22
Assigned to:StuartDH» greggles
Status:active» patch (code needs review)

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.

AttachmentSize
more_robust_includes_215993.patch1.19 KB

#4

greggles - March 6, 2008 - 16:24
Status:patch (code needs review)» 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.

 
 

Drupal is a registered trademark of Dries Buytaert.