safe mode > resize pictures > php error safe mode > resize pictures > php error
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

safe mode > resize pictures > php error

Started by swisswuff, December 15, 2003, 12:26:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

swisswuff

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

Joachim Müller

no, actually you found a bug: it's safe to leave it out.

Thanks for letting us know.

GauGau

Casper

swisswuff,
Had to switch to silly_safe_mode, and found exactly the same problem.
Your fix did it for me, thanks. :D
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here