Impossible to upload images Impossible to upload images
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Impossible to upload images

Started by Bacchus, January 08, 2006, 04:55:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bacchus

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

kegobeer

Follow the troubleshooting guide.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Bacchus

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.

Joachim Müller

did you CHMOD as suggested in the docs?

Bacchus


Bacchus

Problem solve, silly safe mode activated!

Maik

#6
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);

?>