On line 57 of header-inc.php there is a chdir()
Next line, it includes global.php
In the global.php I have a module that I load that do an other chdir and when global.php is completely loaded the current directory have changed.
At line 139 and MANY other occurences, there is an include that assume that the current working directory is the forum. Unfortunately it's not in the right directory and I am getting a lot of error like:
[Wed Feb 09 18:04:57 2011] [error] [client 18.104.22.168] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './includes/class_postbit.php' (include_path='.:/usr/share/pear:/usr/share/php') in /web/.../materiel/header-inc.php on line 139, referer: htt p://.../forums/forumdisplay.php?f=7
To fix it I duplicated the chdir($vbpath) just after the include of global.php and it's working.
I understand that the problem is in a module that I have created and I will be fixing it. The problem is that other people may have that issue too and they may not know how to debug php properly..
I suggest that you do the includes like:
include($vbpath . "global.php"); <-- For all includes
or that you add a chdir after loading global.php