coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: swisswuff on December 15, 2003, 12:26:42 PM

Title: safe mode > resize pictures > php error
Post by: swisswuff on December 15, 2003, 12:26:42 PM
previously using gallery.sf.net, i am currently changing to coppermine as our host only runs safe mode now. in the process of setting this software up, this forum has been of great help so far. i could not find any information on the following subject:

so, i run cpg 1.2 standalone in safe mode and, independent on the layout / theme choice, i consistently obtain this error:

Notice: Constant silly_safe_mode already defined in ~/web/html/cpg/include/config.inc.php on line 3

i don't mind errors like that as admin, but it throws off the javascript menus in the theme that i am using.

now, appeared to me that the util.php features the inclusions of these php files:
require("include/config.inc.php");
require('include/init.inc.php');
require('include/picmgmt.inc.php');

and, seeing as if the other php pages do not reference config.inc., i tried commenting the culprit out, so my new util.php looks like this:
//require("include/config.inc.php");//
require('include/init.inc.php');
require('include/picmgmt.inc.php');

this efficiently rids me of this error.

question:
is this step problematic from the function point of view of the util.php script? can someone else confirm this error?

thank you very much,
wolf schweitzer,
swisswuff.ch
Title: safe mode > resize pictures > php error
Post by: Joachim Müller on December 15, 2003, 01:34:42 PM
no, actually you found a bug: it's safe to leave it out.

Thanks for letting us know.

GauGau
Title: safe mode > resize pictures > php error
Post by: Casper on December 23, 2003, 05:52:04 PM
swisswuff,
Had to switch to silly_safe_mode, and found exactly the same problem.
Your fix did it for me, thanks. :D