coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Bacchus on January 08, 2006, 04:55:29 AM

Title: Impossible to upload images
Post by: Bacchus on January 08, 2006, 04:55:29 AM
Hi!

I've read and try all tricks but I'am still unable to upload pictures with CPG 1.4.3 (1.3.5 was ok)

Permission are set correctly for albums/, albums/userpics, albums/edit even include/, and this is what I get:

Quote
Le fichier précédent n'a pas pu être placé./ The file cannot be placed

Vous avez placé tous les fichiers avec succès./All files placed correctly

Weird!

Login: testmaniaque
pass: test

http://users.rockweb.org/Isolder/galerie/index.php

Do you think I should use the silly safe mode trick?

This is the phpinfo of my webhost: http://www.rock-hosting.com/phpinfo.php (runs PHP Version 4.3.10-13)

this is my debug:

Quote/upload.php

    * Notice line 2181: Undefined index: user1
    * Notice line 2182: Undefined index: user2
    * Notice line 2183: Undefined index: user3
    * Notice line 2184: Undefined index: user4
    * Warning line 2264: rename(): SAFE MODE Restriction in effect. The script whose uid is 65534 is not allowed to access /home/users/Isolder/galerie/albums/userpics/10001 owned by uid 33
    * Notice line 2304: Undefined variable: PIC_NEED_APPROVAL
Title: Re: Impossible to upload images
Post by: kegobeer on January 08, 2006, 05:30:38 AM
Follow the troubleshooting guide.
Title: Re: Impossible to upload images
Post by: Bacchus on January 08, 2006, 08:51:11 AM
I did and this is what I get now:

Erreur critique/Fatal Error
Impossible de déplacer 00001304.jpg vers albums/userpics/10001/ !/Impossible to move file...

Fichier/File: /home/users/Isolder/galerie/db_input.php - Ligne/Line: 344


I know for a fact that my webhost blocks access to the tmp/ directory. So upload of attachemet in a bord or email are impossible.
Title: Re: Impossible to upload images
Post by: Joachim Müller on January 08, 2006, 04:24:31 PM
did you CHMOD as suggested in the docs?
Title: Re: Impossible to upload images
Post by: Bacchus on January 08, 2006, 09:35:34 PM
Yes, more than one time.  :'(
Title: Re: Impossible to upload images
Post by: Bacchus on January 10, 2006, 04:59:31 AM
Problem solve, silly safe mode activated!
Title: Re: Impossible to upload images
Post by: Maik on January 17, 2006, 12:43:53 AM
Silly safe mode; i have also the same problem and fixed it with the same way.

open include/config.inc.php

and change the script

Code:
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your database server
$CONFIG['dbuser'] =                         '*******';        // Your mysql username
$CONFIG['dbpass'] =                         '******';                // Your mysql password
$CONFIG['dbname'] =                         'saradevi_wpics';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg140_';

define('SILLY_SAFE_MODE', 1);

?>