coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: vici on January 11, 2006, 08:27:35 PM

Title: problem: upload is ok, but placing the files is unrealizable
Post by: vici on January 11, 2006, 08:27:35 PM
the problem is:

Warning: rename(): SAFE MODE Restriction in effect. The script whose uid is 32016 is not allowed to access
/home/name/public_html/photos/albums/userpics/10001 owned by uid 99 in /home/name/public_html/photos/upload.php on line 2229


I've been searching for the simmilar topics but I haven't found. anyway, thanks for helping
Title: Re: problem: upload is ok, but placing the files is unrealizable
Post by: vici on January 11, 2006, 08:42:05 PM
all right then, I know what's the problem (so to say...)

I need to include a line "define('SILLY_SAFE_MODE', 1);" but...I'm not really sure how I should do it
should I just place it this way?

if yes...it doesn't work

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.3.3
  $Source: /cvsroot/coppermine/stable/include/crop.inc.php,v $
  $Revision: 1.5 $
  $Author: gaugau $
  $Date: 2005/04/19 03:17:11 $
**********************************************/
define('SILLY_SAFE_MODE'1);

if (!
defined('IN_COPPERMINE')) die('Not in Coppermine...');
//////////////////// Variables //////////////////////////////
// used texts
$txt['bigger'] = ">";
$txt['smaller'] = "<";
$txt['up'] = "^";
$txt['down'] = "v";
$txt['closewindow'] = "Close window";

...
etc...
Title: Re: problem: upload is ok, but placing the files is unrealizable
Post by: Joachim Müller on January 11, 2006, 10:01:05 PM
nope, include/config.inc.php is the file to edit, see http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#safe