db_input.php error, link with database db_input.php error, link with database
 

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

db_input.php error, link with database

Started by Casper, December 21, 2003, 10:44:40 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Casper

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
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

Joachim Müller

maybe your webhost has changed the server config - try using silly_safe_mode to check if the errors go away.

GauGau

Casper

That did it, many thanks.  :D

Why do webhosts have to change things that were running perfectly well. :?:
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

bgbs

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

Casper

Edit the include/config.inc.php, by adding the second line shown here
<?php
define
&#40;'SILLY_SAFE_MODE', 1&#41;;
// Coppermine configuration file
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