coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Casper on December 21, 2003, 10:44:40 PM

Title: db_input.php error, link with database
Post by: Casper on December 21, 2003, 10:44:40 PM
I'm not sure if this is a coppermine or mysql problem.

when a new user to my gallery adds a private album, they are then unable to upload to it, unless album properties allow visitors to upload.

edit;  it seems they are unable to upload to any album, the same error appears.

I have found this is beacause the mysql database is allocating a different owner uid to the album than that of the actual owner.  
The following error appears when trying to upload;

QuoteImpossible to move vt500c-84.jpg to albums/userpics/10045/ !

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10295 is not allowed to access /home/httpd/vhosts/hsocuk.com/httpdocs/galleries/albums/userpics/10045 owned by uid 48 in /home/httpd/vhosts/hsocuk.com/httpdocs/galleries/db_input.php on line 225

Warning: fopen(albums/userpics/10045/index.html): failed to open stream: No such file or directory in /home/httpd/vhosts/hsocuk.com/httpdocs/galleries/db_input.php on line 225

Warning: fwrite(): supplied argument is not a valid stream resource in /home/httpd/vhosts/hsocuk.com/httpdocs/galleries/db_input.php on line 226

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/hsocuk.com/httpdocs/galleries/db_input.php on line 227

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10295 is not allowed to access /home/httpd/vhosts/hsocuk.com/httpdocs/galleries/albums/userpics/10045 owned by uid 48 in /home/httpd/vhosts/hsocuk.com/httpdocs/galleries/db_input.php on line 258

There is no user with the uid 48, but the last 3 user albums created have all had this property allocated.

It had all been working well until yesterday.  I had recently deleted a few users. could this be related.

I have screenshots of the sql properties if needed, and you can see it at www.hsocuk.co/galleries/index.php  username = user, password = test
Title: db_input.php error, link with database
Post by: Joachim Müller on December 22, 2003, 09:17:44 AM
maybe your webhost has changed the server config - try using silly_safe_mode to check if the errors go away.

GauGau
Title: db_input.php error, link with database
Post by: Casper on December 22, 2003, 11:16:01 AM
That did it, many thanks.  :D

Why do webhosts have to change things that were running perfectly well. :?:
Title: db_input.php error, link with database
Post by: bgbs on December 24, 2003, 09:26:33 AM
Quote from: "gaugau"maybe your webhost has changed the server config - try using silly_safe_mode to check if the errors go away.

GauGau

Im having the same problem but how do I use silly-safe-mode?

thanks
Title: db_input.php error, link with database
Post by: Casper on December 24, 2003, 10:31:18 AM
Edit the include/config.inc.php, by adding the second line shown here
<?php
define
&#40;'SILLY_SAFE_MODE', 1&#41;;
// Coppermine configuration file