Error::The file you have uploaded is not a valid image ! Error::The file you have uploaded is not a valid image !
 

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

Error::The file you have uploaded is not a valid image !

Started by psike, March 31, 2004, 09:05:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

psike

When I load normal picture, there is this mistake. Because of what it occurs?
Help...
http://lighting.h12.ru/

Joachim Müller

create a test user account with upload permissions and post it here.
Try another image (no GIF, but a JPEG). Make sure you have CHMODed corretcly.
You seem to have a fresh install: please verify things are set up according to the documentation. Reading the faq and stickies might help, as well as searching the board.

GauGau

psike

Quote from: "gaugau"create a test user account with upload permissions and post it here.
Try another image (no GIF, but a JPEG). Make sure you have CHMODed corretcly.
You seem to have a fresh install: please verify things are set up according to the documentation. Reading the faq and stickies might help, as well as searching the board.

GauGau
Error
The file you have uploaded is not a valid image !
File: /home/l/lighting.h12.ru/WWW/db_input.php - Line: 275

Is not present, nothing helps...:- (

Debugging and configuration of the server

gd
GD Support  enabled  
GD Version  bundled (2.0.15 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
JIS-mapped Japanese Font Support  enabled  
 
Server restrictions (safe mode)?
Directive Local Value Master Value
safe_mode Off Off
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
sql.safe_mode Off Off
disable_functions no value no value
file_uploads On On
include_path .:/usr/local/share/pear .:/usr/local/share/pear
open_basedir no value no value

email
Directive Local Value Master Value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i  
SMTP localhost localhost
smtp_port 25 25

Size and Time
Directive Local Value Master Value
max_execution_time 30 30
max_input_time -1 -1
upload_max_filesize 2M 2M
post_max_size 8M 8M

Debug info
USER:
Array
(
    [ID] => c9076ff004a99eedd26a61a4c3b3fe26
    [am] => 1
)

 
 
USER DATA:
Array
(
   
  • => 1
  • [user_id] => 1
        [1] => 1
        [user_group] => 1
        [2] => YES
        [user_active] => YES
        [3] => lightning
        [user_name] => ********
        [4] => ********
        [5] => 2004-03-31 22:32:40
        [user_lastvisit] => 2004-03-31 22:32:40
        [6] => 2004-03-31 22:32:40
        [user_regdate] => 2004-03-31 22:32:40
        [7] =>
        [user_lang] =>
        [8] =>
        [user_email] =>
        [9] =>
        [user_website] =>
        [10] =>
        [user_location] =>
        [11] =>
        [user_interests] =>
        [12] =>
        [user_occupation] =>
        [13] =>
        [user_actkey] =>
        [14] => 1
        [group_id] => 1
        [15] => Administrators
        [group_name] => Administrators
        [16] => 0
        [group_quota] => 0
        [17] => 1
        [has_admin_access] => 1
        [18] => 1
        [can_rate_pictures] => 1
        [19] => 1
        [can_send_ecards] => 1
        [20] => 1
        [can_post_comments] => 1
        [21] => 1
        [can_upload_pictures] => 1
        [22] => 1
        [can_create_albums] => 1
        [23] => 0
        [pub_upl_need_approval] => 0
        [24] => 0
        [priv_upl_need_approval] => 0
    )

     
     
    Queries:
    Array
    (
       
  • => SELECT * FROM cpg11d_users, cpg11d_usergroups WHERE user_group = group_id AND user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'b397a631d4feda38d5d9a30d0e64ea25'
  • [1] => DELETE FROM cpg11d_banned WHERE expiry < 1080761311
        [2] => SELECT * FROM cpg11d_banned WHERE ip_addr='195.54.3.12' OR ip_addr='unknown, 195.54.3.12' OR user_id=1
        [3] => SELECT category FROM cpg11d_albums WHERE aid='1'
    )

     
    GET :
    Array
    (
    )

     
    POST :
    Array
    (
        [event] => picture
        [album] => 1
        [MAX_FILE_SIZE] => 1048576
        [title] =>
        [caption] =>
        [keywords] =>
        [user1] =>
        [user2] =>
        [user3] =>
        [user4] =>
    )

Casper

Please do as gaugau asked, and create a test user account with upload permissions(not admin), and tell us the username and password.
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


Casper

Ok,
I tried to upload a small jpg, which I know is good, and had the same thing happens.

Have you changed anything in the config, away from default?, or have you changed any files.

Are you self hosted?
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