Cannot upload pictures anymore Cannot upload pictures anymore
 

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

Cannot upload pictures anymore

Started by roselyne, March 08, 2006, 01:44:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

roselyne

About a week ago, my host had a worm on his server and he fixed it. But now, my galleries don't work anymore. I can't upload pictures. When I select the album, i don't see the thumbnail, it's a square with a red X, and when I click on the square with the red X, a new page shows up, but there's nothing. It's all white.

If I try to put the pictures in the album, it does not work.

My host doesn't want to provide me support with it, and I don't know what to do anymore. Because all my permissions are fine.

kegobeer

What happened to the server, and what did your host do to fix it?  Are the images still there?  Post a link to your site.
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

roselyne

I don't know what he did to fix it, because he's not the one who fixed it, someone else did, and that someone else is on vacation. The images are still showing and so are the thumbnails. I only have problems with the images I would like to add.

My gallery is at www.emma-roberts.net/gallery

roselyne

I thought you might like the debug code, cuz I saw some people post it when they needed help.

USER:
------------------
Array
(
    [ID] => b72a8b86dd603f61bd187e81b51d4125
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => Admin
    [user_password] => ***
    [user_lastvisit] => 2006-03-07 19:15:50
    [user_regdate] => 2004-10-18 18:31:53
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg_filetypes;
    [1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '***'
    [2] => 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 cpg_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg_banned WHERE expiry < 1141780677
    [5] => SELECT * FROM cpg_banned WHERE ip_addr='66.131.152.62' OR ip_addr='66.131.152.62' OR user_id=1
)

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

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.1.12
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 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
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.1.12
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
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
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 | .:/usr/share/pear | .:/usr/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 | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.461 seconds - 6 queries in 0.001 seconds - Album set :

Joachim Müller

yeah, people post the debug_output although we don't want them to unless requested. Do as suggested in http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php instead

roselyne

I did everything and i created a user, but when I click on upload to try it with the user i created, it says :

Sorry there is no album where you are allowed to upload files
File: /chroot/home/emmarobe/emma-roberts.net/html/gallery/upload.php - Line: 845

my gallery is at www.emma-roberts.net/gallery

username : test0
password : test

Joachim Müller

well, then allow uploads to at least one album (album properties - visitors can upload) or allow personal galleries. RTFM.

roselyne

Ok I did that. You can upload files to the Test folder that is under the categories, right above the random files.

Nibbler

Verify permissions on albums/userpics and all subfolders.

roselyne

what are all the permissions supposed to be ?

kegobeer

/albums and all files/folders within must be 777 (or 775 or 755 or whatever works for your setup.)  If you aren't sure about the permissions, ask your host what they allow instead of 777.
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