I am on an AIX system and whenever using a module that comes with an include file, the system does not seem to look for it in the folder of the module.

If I copy the include file to the drupal root folder (where index.php is) it works just fine.

Is this about the OS, Apache or Drupal ?

What can be the problem ?

Thanks.

Comments

dman’s picture

Some naively-coded modules used to just try to

include('library_file.inc');
// or
include('modules/mymodule/library_file.inc');

... which may have worked on their home systems,
but they should have allowed for multiple site installs and used something like

include( drupal_get_path('module','thismodule') . '/library_file.inc');

You didn't mention which modules you found this in. I suspect them first.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

lennart’s picture

The module in question invokes the second method you mention, so it should work under all conditions.

Also, when uploading files they get into the temp folder, but then it seems the system cannot find them (it looks for them elsewhere?).

So maybe AIX has a problem with relative paths ?

Thanks!

Best regards,
Lennart

Best regards,
Lennart

dman’s picture

So maybe AIX has a problem with relative paths ?

Could be. Can't help you, sorry.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

lennart’s picture

Thanks for helping me isolate the problem though :)

Best regards,
Lennart

Best regards,
Lennart