Closed (fixed)
Project:
Diff
Version:
6.x-2.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2008 at 15:17 UTC
Updated:
29 Apr 2009 at 15:30 UTC
Hello,
When running on my server, diff.module generates errors because it cannot find various include files. This is because it does things like
include_once('DiffEngine.php');
directly. However "." is not in my include path ; this is not an uncommon setup, and not a requirement for Drupal to work. I have looked at other modules (such as for instance the Views module) and the way they include files is :
include_once('./' . drupal_get_path('module', 'diff') . '/DiffEngine.php');
Bases on this, I have patched diff.module so that it works on my server - and will continue to work on other servers.
Thanks you for this useful module :) The patch is attached !
| Comment | File | Size | Author |
|---|---|---|---|
| diff.module.patch | 928 bytes | Alice Heaton |
Comments
Comment #1
frjo commentedI have the same error and have made a almost identical patch for it before I found this old issue. This is the way core and modules like cck and views does it so I'm confident it's the right way.
My servers is stock Debian etch 4 with Apache 2, PHP5 and open_basedir.
I have submitted similar patches to other modules and most of them has been committed. It is good not to have maintain your own patched versions of modules so I would really appreciate if this gets committed.
Comment #2
suit4 commentedsame issue for node.inc!
Comment #3
yhahn commentedCommitted here http://drupal.org/cvs?commit=197118.
I've used
module_load_include()instead (http://api.drupal.org/api/function/module_load_include/6). You will see that it should be functionally equivalent to the patch above. Let me know if it causes any problems.