I justed installed UseBB as a test on my localhost. I wanted to test the ACP upload module. But it failed. I got the following error:
In file admin_modules.php on line 92:
E_NOTICE - Undefined index: PATH_TRANSLATED
I opened the file and I saw that UseBB was trying to use the variable $_SERVER['PATH_TRANSLATED'];. I opened phpinfo(); on my localhost and I saw no $_SERVER['PATH_TRANSLATED']; there. I started to look for an alternative and I found $_SERVER['SCRIPT_FILENAME'];. That worked like a charm
. So the bugfix is:1. open <UseBB-path>/sources/admin_modules.php
2. Change line 92 from
if ( copy($acp_module['tmp_name'], dirname($_SERVER['PATH_TRANSLATED']).'/sources/modules/'.$acp_module['name']) )
to
if ( copy($acp_module['tmp_name'], dirname($_SERVER['SCRIPT_FILENAME']).'/sources/modules/'.$acp_module['name']) )
3. save the file
4. done. You can upload ACP modules again
I had this problem on a server with the following specifications:
UseBB 1.0.3
PHP 5.1.6-pl8-gentoo
MySQL 5.0.26
Apache 2.0.59-r1
Gentoo Linux, kernel 2.6.18-gentoo-r1
I hope this helps somebody

« Last edit by Dietrich on Sun Mar 11, 2007 11:27 pm. »

