[Solved:] cant upload ANY pics [Solved:] cant upload ANY pics
 

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

[Solved:] cant upload ANY pics

Started by beckah, May 04, 2009, 06:04:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

beckah

my site is www.ourdogs.org.uk/gallery

When I try to upload pics this is the message I get. I have set all my permissions correctly and as far as I can tell my server allows uploads!!

USER:
------------------
Array
(
    [ID] => 8e829ade408ed6269b2e39a80367ca7a
    [am] => 1
    [lang] => english_gb
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => beckah
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM gallery_filetypes; (0s)
    [1] => select * from gallery_plugins order by priority asc; (0s)
    [2] => delete from `db53909_gallery`.gallery_sessions where time<1241449384 and remember=0; (0s)
    [3] => delete from `db53909_gallery`.gallery_sessions where time<1240243384; (0s)
    [4] => select user_id from `db53909_gallery`.gallery_sessions where session_id = 'bbe9ee0819d6011fb02cd3ef148c6a5a' (0s)
    [5] => select user_id as id, user_password as password from `db53909_gallery`.gallery_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `db53909_gallery`.gallery_users AS u INNER JOIN `db53909_gallery`.gallery_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `db53909_gallery`.gallery_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM gallery_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  gallery_usergroups WHERE group_id= 1 (0s)
    [10] => update `db53909_gallery`.gallery_sessions set time='1241452984' where session_id = 'bbe9ee0819d6011fb02cd3ef148c6a5a' (0s)
    [11] => SELECT user_favpics FROM gallery_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM gallery_banned WHERE expiry < '2009-05-04 17:03:04' (0s)
    [13] => SELECT * FROM gallery_banned WHERE (ip_addr='86.148.6.172' OR ip_addr='86.148.6.172' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT category FROM gallery_albums WHERE aid='1' (0s)
    [15] => SELECT COUNT(*) FROM gallery_pictures WHERE approved = 'NO' (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [album] => 1
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.0 - OK
------------------
mySQL version: 4.1.22
------------------
Coppermine version: 1.4.22(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
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 | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.166 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;

phill104

Please read and do everything suggested in the docs in the upload troubleshooting section ( http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble ) and the asking for support on upload issues section ( http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support ). Things like posting a test user account, switching off approval etc are required so we can test things for you.

In future, please do not post debug output unless requested. We can see it clearly enough on your site.
It is a mistake to think you can solve any major problems just with potatoes.

beckah

I appologise for offending anyone for doing things wrong  :'(

I have read all the documentation over and over and obviously Im missing something major but I just cant see what. I have rechecked the permissions which are all right, and I can upload from my server.

I have created a test user account

username test
password testing

Once again I appologise for missing the obviouse  :-\

phill104

I have successfully uploaded some pics.

How big were the images you were trying to upload and what was the exact error message you got?

Remember, you have some set size limits in your config. Pictures must be smaller than 1024k which you can increase in config. You also have limits on the dimensions of the images.

Read the section of the docs about uploading and the config section. It will explain all this in great detail.

Thanks for your apology. It takes time to ask for information required so not only creates more work for us (you will not believe how many times you have to ask some people) but is slows down any response you get. So always try and use the search facility, read the docs etc as doing a little work before you post makes things a lot easier for both of us.

It is a mistake to think you can solve any major problems just with potatoes.

Fabricio Ferrero

(I have already uploaded when Phill posted...)


I can upload pictures too, See: http://www.ourdogs.org.uk/gallery/displayimage.php?pos=-3

What is the exact error that you get?
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

beckah

Ive just tried to upload again......... and it worked!! Im so so sorry for this, Im really not sure why it didnt before all I can guess is the size was too big as this is the error

No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /var/www/html/gallery/db_input.php - Line: 311

Fabricio Ferrero

Double check things before posting next time, you could save time ;)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

phill104

Thanks for coming back and resolving your thread.
It is a mistake to think you can solve any major problems just with potatoes.