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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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