[Pkg-mlmmj-devel] Bug#677817: [mlmmj-php-web-admin] PHP files need to be in a subdirectory, or need editing

Chris Knadle Chris.Knadle at coredump.us
Sat Jun 16 23:03:52 UTC 2012


Package: mlmmj-php-web-admin
Version: 1.2.18.0-1
Severity: important

Greeetings Thomas Goirand and thanks for uploading mlmmj version 1.2.18.0.

In the mlmmj source package, the PHP files for mlmmj-php-web-admin are 
contained in a subdirectory /htdocs, but this directory doesn't exist after 
the binary package for mlmmj-php-web-admin is built and the PHP files are thus 
moved up one directory.  These files all look UP one directory and then try to 
traverse down into /conf and /templates, which causes an error of these files 
not being found, because that's not where they are.

The end result is the web browser shows a blank page.  The error in web server 
logs is:
-----------------------------
PHP Fatal error:  require(): Failed opening required 
'/usr/share/conf/config.php' (include_path='/usr/share/mlmmj-php-web-admin') 
in /usr/share/mlmmj-php-web-admin/index.php on line 29


and line 29 is:
require(dirname(dirname(__FILE__))."/conf/config.php");


I think the cleanest fix would be to edit the debian/rules to install these 
PHP files in /htdocs like exists in the upstream source.

Thanks.

  -- Chris

--
Chris Knadle
Chris.Knadle at coredump.us





More information about the Pkg-mlmmj-devel mailing list