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
no, actually you found a bug: it's safe to leave it out.
Thanks for letting us know.
GauGau
swisswuff,
Had to switch to silly_safe_mode, and found exactly the same problem.
Your fix did it for me, thanks. :D