I can't upload anything I can't upload anything
 

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

I can't upload anything

Started by Katieswirls, October 09, 2004, 01:42:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Katieswirls

Hi,

I'm new to coppermine and installed it the other day but I'm having problems uploading any pictures.

I read the instructions and CHMOD'd everything, I've CHMOD'd the albums folder, the userpics album and the edit album. I've read all of the sticky posts here and I've searched for my problems in the boards but I just can't find anything to help me out. I've contacted my host and they say my ImageMagick is set up and working correctly. I've set up the debug mode as well.

This is what my batch add page says:

Select directory
angel   Not writable.
     wbpromos   Not writable.
     promos   Not writable.
         4   Not writable.
         3   Not writable.
         5   Not writable.


This is the error I get when I try and batch add my pictures I've ftped:

Notice: Undefined index: OS in /home/virtual/site79/fst/home/media/public_html/gallery/include/picmgmt.inc.php on line 157
Error executing ImageMagick - Return value: 1

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 133x100 'albums/angel/promos/4/season4_lorne_1.jpg' 'albums/angel/promos/4/thumb_season4_lorne_1.jpg'


The convert program said:
/usr/bin/convert: Unable to open file (albums/angel/promos/4/thumb_season4_lorne_1.jpg) [Permission denied].



I've tried to upload a picture by http and I get this error above coppermine:


Notice: Undefined index: file_upload_array in /home/virtual/site79/fst/home/media/public_html/gallery/upload.php on line 1014

Warning: fopen(): Circular redirect, aborting. in /home/virtual/site79/fst/home/media/public_html/gallery/upload.php on line 1628

Warning: fopen(http://media.andyhallettuk.com/gallery/albums/angel/promos/3/season3_lorne_1.jpg): failed to open stream: Success in /home/virtual/site79/fst/home/media/public_html/gallery/upload.php on line 1628

Notice: Undefined variable: escrow_array in /home/virtual/site79/fst/home/media/public_html/gallery/upload.php on line 1939

Notice: Undefined variable: file_failure_array in /home/virtual/site79/fst/home/media/public_html/gallery/upload.php on line 1940

Notice: Undefined variable: zip_failure_array in /home/virtual/site79/fst/home/media/public_html/gallery/upload.php on line 1942


I get this error too:

Error Report
The following uploads encountered errors:
URI/URL Uploads:
File Name/URL Error Message
1. http://media.andyhallettuk.com/gallery/albums/angel/promos/3/season3_lorne_1.jpg HTTP/1.1 302 Found



This is my debug information:

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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => Katie
    [user_password] => ********
    [user_lastvisit] => 2004-10-07 17:15:33
    [user_regdate] => 2004-10-05 14:36:37
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 2048
    [disk_min] => 2048
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 2
    [ufc_min] => 2
    [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] => 2
    [group_quota] => 2048
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg132_filetypes;
    [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '29554b4aa6a1746eb453792f6b526119'
    [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 cpg132_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg132_banned WHERE expiry < 1097322026
    [5] => SELECT * FROM cpg132_banned WHERE ip_addr='81.135.136.215' OR ip_addr='81.135.136.215' OR user_id=1
)

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

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
            [0] => http://media.andyhallettuk.com/gallery/albums/angel/promos/3/season3_lorne_1.jpg
            [1] =>
            [2] =>
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 4.0.18-Max-log
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.22 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 1
Active Links 2
Client API version 4.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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 | me@localhost.com | me@localhost.com
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.134 seconds - 6 queries in 0.002 seconds - Album set :



Can someone help me out please?

Katieswirls


Tranz

Fortunately, your phpinfo page required login to view. It's best not to share your phpinfo page in public because it could be exploited by hackers.

Joachim Müller

Quote from: Katieswirls on October 09, 2004, 01:42:13 PM
I read the instructions and CHMOD'd everything, I've CHMOD'd the albums folder, the userpics album and the edit album.
You give a good and detailed description of your error messages, but I think the issues you're facing is related to improper permissions. Try playing with CHMOD, maybe you have an exotic server setup that requires other CHMOD settings. Ask your webhost under which account the webserver runs, and what permissions you to assign (in terms of CHMODing) to set write access for the PHP script. Maybe the ownership is wrong as well (in case you use a pre-configured coppermine setup) - ask them if they can CHOWN the coppermine folder for you. Another thing that needs looking into is permissions for ImageMagick: the user the webserver runs under needs read/execute permissions on ImageMagick's convert executable as well.

Joachim

Katieswirls

Thanks for your help, I've contacted my host so hopefully I'll get coppermine working soon.

Katieswirls

I just wanted to thank GauGau for the advice. My host weren't much help but I deinstalled coppermine and reinstalled it yesterday and it works perfectly now  ;D

I don't know why it wouldn't work the first time because I've done exactly the same again but I don't care, it works now so I'm happy lol.