forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: ATAMAH on January 09, 2006, 11:16:42 am

Title: Warning: rename(): SAFE MODE Restriction in effect.
Post by: ATAMAH on January 09, 2006, 11:16:42 am
A couple days ago I faced this error.
It comes when I try to place an uploaded image into a category.

So, it seems to be uploaded correctly, but when I try to place it into a category this error comes out:

Code: [Select]
Warning: rename(): SAFE MODE Restriction in effect. The script whose uid is 1159 is not allowed to access /www/album/albums/userpics/10046 owned by uid 80 in /www/album/upload.php on line 2229

Please, help me.
Title: Re: Warning: rename(): SAFE MODE Restriction in effect.
Post by: debstl on January 09, 2006, 06:54:23 pm
I'm having the same problem...

Quote
Impossible to move capture01.jpg to albums/userpics/10001/ !

File: /home/debstl/public_html/gallery/db_input.php - Line: 267

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 32043 is not allowed to access /home/debstl/public_html/gallery/albums/userpics/10001 owned by uid 99 in /home/debstl/public_html/gallery/db_input.php on line 266

I created a test account at http://edgarrenteria.com/gallery

Username is tester
Password is tester

Thanks in advance
Title: Re: Warning: rename(): SAFE MODE Restriction in effect.
Post by: Bacchus on January 10, 2006, 05:02:06 am
Follow the upload trouble shooting guide

Make sure that you CHMODed properly

If still occurs, use the silly safe mode method.

It worked for me.
Title: Re: Warning: rename(): SAFE MODE Restriction in effect.
Post by: Joachim Müller on January 10, 2006, 08:18:24 am
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe

Joachim

P.S. You don't upload to categories, but albums
Title: Re: Warning: rename(): SAFE MODE Restriction in effect.
Post by: ATAMAH on January 10, 2006, 11:15:26 am
GauGau thanks a lot!

this one helped:
Check that at the beginning the the "include/config.inc.php" file, you have a line with : "define('SILLY_SAFE_MODE', 1);"

I just realized that my webhost set the server on SAFE MODE a couple days ago.
Title: Re: Warning: rename(): SAFE MODE Restriction in effect.
Post by: cpg on February 23, 2006, 02:34:05 am
It says in the beginning to put this...

Noob here...

<?php

    $CONFIG['dbserver'    ] = 'localhost' ;
    $CONFIG['dbuser'      ] = '***' ;
    $CONFIG['dbpass'      ] = '***' ;
    $CONFIG['dbname'      ] = '***'   ;
    $CONFIG['TABLE_PREFIX'] = 'cpg_'        ;
   
?>

Where would I put it?

I tried it right after the <?php but I got and error when I clicked to the board so I returned it to regular and thought to ask here.

my site is www.cponygo.com/gallery (http://www.cponygo.com/gallery)

user=tester
pw=123456

Thanks...having issues uploading...did the changes to directories (777) and line change in picmgmt.inc.php

TIA
Andy
Title: Re: Warning: rename(): SAFE MODE Restriction in effect.
Post by: Nibbler on February 23, 2006, 02:42:57 am
http://forum.coppermine-gallery.net/index.php?topic=5845.msg76881#msg76881