Batch Upload Error: Can't seem to add all pics Batch Upload Error: Can't seem to add all 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

Batch Upload Error: Can't seem to add all pics

Started by saradevil, September 26, 2004, 04:11:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

saradevil

I've been reading through the boards now for over an hour, but can't seem to find any information about the problem in particular I'm having.

I've uploaded, modified, and chmoded all the appropriate files. I go to batch add to an album and some pics show OK, while the rest give me a red x. I click on the red x and get a 404 error. I have tried uploading only a single file via upload file, but get the impossible to error. Apparently whenever I use the single file upload it rewrite the permission on my edit folder in the albums dir, couldn't even begin to explain that.

However, my question is, why the red x, what have I done wrong? Some pics load no problem, the rest just diie. I want to try SILLY_Safe_MODE but I'm an old school HTML geek and whenver I see php it makes my skin crawl and I"m not sure where to put the code. I read through the doc about SSM, but I'm not sure where or how to check the include config script to see if Silly mode is there, and then after that I'm not sure how to add the line in the proper place. For example when I look at the config.inc.php in my editor I see numerous things and places where maybe the safe code goes but where?

Okay, I will continue reading, but my eyes were starting to burn so I was wondering if you could give me a break and either answer, or point me to an answer somehwere in this fabulous forum.

The gallery where I am having all the issues is installed at http://www.saradevil.com/Wolf/pics

THanks much,

Sara


Nibbler


saradevil

Wow, I hate to be a total dolt, but I'm not completely positive, how would I check that out?

I know that I use CPanel on a Linix server with Apache handlers running PHP 4.3.4, does that help?

I upload with FTP commander and I changed all the permission using the cpanel.

casNuy

Sara,
it could be a time-out issue. Try using the batch upload function multiple times

Cas

saradevil

Hello,

I deleted and reinstalled everything. Made sure that it was all properly uploaded in the correct FTP mode by hand. Reinstalled the database, and uploaded some pics for my convience again. Went to do a test, and now no pictures will populate in the gallery. I'm not sure what I've done wrong. The weird thing is that the coppermine gallery is writing the thubnail and image files to the album that I'm trying to upload, but it won't put the pics in the coppermine folder. I still get the red x, and when I click on it, i get the 404 message.

I hit reload about 60 times and nothing would go in. I'm not positive it's a timeout error as the red x come up in seconds flat. Still don't know what I"ve failed to comprehend here. I'd still like to try running in SIlly Safe Mode, but I need help on how to configure the PHP script properly so as not to kill the gallery (I have a long history of murdering PHP script, so I want to get it right).

Oh, I've also resized all the pics to be sure they are not to large. Can't figure out why this is so impossible.

Please do advise, this is driving me crazy. I've read all of the doc and am still hunting for something that might help on the boards, but I'm clueless as to what is going wrong.

The url is http://www.saradevil.com/Wolf/pics

Thanks much,

Sara

saradevil

I wanted to mention I've also tried batch uploading just a single file from the folder, and this also does not work.

I'm including some of the debug here, perhaps that will help.

When I turned debug on I got several dozen of the following at the top of the page before I tried to upload.

Notice: Undefined variable: fullimagesize in /home/saradevi/public_html/Wolf/pics/searchnew.php on line 136

Notice: Undefined variable: fullimagesize in /home/saradevi/public_html/Wolf/pics/searchnew.php on line 137

And the following in the debug script box:

USER:
------------------
Array
(
   [ID] => 6e1e37f085c01b359f87420ef0af2bc2
   [am] => 1
   [liv] => Array
       (
           
  • => 39
               [1] => 102
               [2] => 59
               [3] => 111
               [4] => 66
           )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       [user_id] => 1
       [user_group] => 1
       [user_active] => YES
       [user_name] => ****
       [user_password] => ********
       [user_lastvisit] => 2004-09-26 19:05:06
       [user_regdate] => 2004-09-26 19:05:06
       [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
    (
       
  • => 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) = '7560d4bdb087d9b16c2aaf960beeb14f'
       [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 < 1096254560
       [5] => SELECT * FROM cpg132_banned WHERE ip_addr='220.64.213.126' OR ip_addr='220.64.213.126' OR user_id=1
       [6] => SELECT filepath, filename FROM cpg132_pictures WHERE filepath LIKE 'park%'
       [7] => SELECT aid, title FROM cpg132_albums WHERE category = 0 ORDER BY title
       [8] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM cpg132_albums as a, cpg132_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY cname,title
       [9] => SELECT aid, CONCAT('(', user_name, ') ', title) AS title FROM cpg132_albums AS a INNER JOIN cpg132_users AS u ON category = (10000 + user_id) ORDER BY title
    )

    ==========================
    GET :
    ------------------
    Array
    (
       [startdir] => park
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.4 - OK
    ------------------
    mySQL version: 4.0.18-standard
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.15 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 0
    Active Links 1
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /var/tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    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 | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/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 | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 15M | 15M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.127 seconds - 10 queries in 0.004 seconds - Album set :



    After uploading my debug script was as follows:


    USER:
    ------------------
    Array
    (
       [ID] => 6e1e37f085c01b359f87420ef0af2bc2
       [am] => 1
       [liv] => Array
           (
               
  • => 39
               [1] => 102
               [2] => 59
               [3] => 111
               [4] => 66
           )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       [user_id] => 1
       [user_group] => 1
       [user_active] => YES
       [user_name] =>****
       [user_password] => ********
       [user_lastvisit] => 2004-09-26 19:05:06
       [user_regdate] => 2004-09-26 19:05:06
       [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
    (
       
  • => 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) = '7560d4bdb087d9b16c2aaf960beeb14f'
       [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 < 1096254694
       [5] => SELECT * FROM cpg132_banned WHERE ip_addr='220.64.213.126' OR ip_addr='220.64.213.126' OR user_id=1
    )

    ==========================
    GET :
    ------------------
    Array
    (
       [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
       [d0000] => 1
       [pics] => Array
           (
               
  • => i0000
               [1] => i0001
               [2] => i0002
               [3] => i0003
               [4] => i0004
               [5] => i0005
               [6] => i0006
               [7] => i0007
               [8] => i0008
               [9] => i0009
               [10] => i0010
               [11] => i0011
               [12] => i0012
               [13] => i0013
               [14] => i0014
               [15] => i0015
               [16] => i0016
               [17] => i0017
               [18] => i0018
               [19] => i0019
               [20] => i0020
               [21] => i0021
               [22] => i0022
               [23] => i0023
               [24] => i0024
               [25] => i0025
               [26] => i0026
               [27] => i0027
               [28] => i0028
               [29] => i0029
           )

       [album_lb_id_i0000] => d0000
       [picfile_i0000] => cGFyay9EU0MwMjEwOS5qcGc=
       [album_lb_id_i0001] => d0000
       [picfile_i0001] => cGFyay9EU0MwMjExNy5qcGc=
       [album_lb_id_i0002] => d0000
       [picfile_i0002] => cGFyay9EU0MwMjExOC5qcGc=
       [album_lb_id_i0003] => d0000
       [picfile_i0003] => cGFyay9EU0MwMjExOS5qcGc=
       [album_lb_id_i0004] => d0000
       [picfile_i0004] => cGFyay9EU0MwMjEyMC5qcGc=
       [album_lb_id_i0005] => d0000
       [picfile_i0005] => cGFyay9EU0MwMjEyNy5qcGc=
       [album_lb_id_i0006] => d0000
       [picfile_i0006] => cGFyay9EU0MwMjEzNC5qcGc=
       [album_lb_id_i0007] => d0000
       [picfile_i0007] => cGFyay9EU0MwMjEzNS5qcGc=
       [album_lb_id_i0008] => d0000
       [picfile_i0008] => cGFyay9EU0MwMjEzNi5qcGc=
       [album_lb_id_i0009] => d0000
       [picfile_i0009] => cGFyay9EU0MwMjEzNy5qcGc=
       [album_lb_id_i0010] => d0000
       [picfile_i0010] => cGFyay9EU0MwMjEzOC5qcGc=
       [album_lb_id_i0011] => d0000
       [picfile_i0011] => cGFyay9EU0MwMjEzOS5qcGc=
       [album_lb_id_i0012] => d0000
       [picfile_i0012] => cGFyay9EU0MwMjE0MC5qcGc=
       [album_lb_id_i0013] => d0000
       [picfile_i0013] => cGFyay9EU0MwMjE0NS5qcGc=
       [album_lb_id_i0014] => d0000
       [picfile_i0014] => cGFyay9EU0MwMjE0OC5qcGc=
       [album_lb_id_i0015] => d0000
       [picfile_i0015] => cGFyay9EU0MwMjE0OS5qcGc=
       [album_lb_id_i0016] => d0000
       [picfile_i0016] => cGFyay9EU0MwMjE1MC5qcGc=
       [album_lb_id_i0017] => d0000
       [picfile_i0017] => cGFyay9EU0MwMjE1MS5qcGc=
       [album_lb_id_i0018] => d0000
       [picfile_i0018] => cGFyay9EU0MwMjE1Mi5qcGc=
       [album_lb_id_i0019] => d0000
       [picfile_i0019] => cGFyay9EU0MwMjE1My5qcGc=
       [album_lb_id_i0020] => d0000
       [picfile_i0020] => cGFyay9EU0MwMjE1NC5qcGc=
       [album_lb_id_i0021] => d0000
       [picfile_i0021] => cGFyay9EU0MwMjE1Ni5qcGc=
       [album_lb_id_i0022] => d0000
       [picfile_i0022] => cGFyay9EU0MwMjE1Ny5qcGc=
       [album_lb_id_i0023] => d0000
       [picfile_i0023] => cGFyay9EU0MwMjE1OC5qcGc=
       [album_lb_id_i0024] => d0000
       [picfile_i0024] => cGFyay9EU0MwMjE2MC5qcGc=
       [album_lb_id_i0025] => d0000
       [picfile_i0025] => cGFyay9EU0MwMjE2MS5qcGc=
       [album_lb_id_i0026] => d0000
       [picfile_i0026] => cGFyay9EU0MwMjE2Mi5qcGc=
       [album_lb_id_i0027] => d0000
       [picfile_i0027] => cGFyay9EU0MwMjE2My5qcGc=
       [album_lb_id_i0028] => d0000
       [picfile_i0028] => cGFyay9EU0MwMjE2NS5qcGc=
       [album_lb_id_i0029] => d0000
       [picfile_i0029] => cGFyay9EU0MwMjE2Ny5qcGc=
       [insert] => Insert selected files
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.4 - OK
    ------------------
    mySQL version: 4.0.18-standard
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.15 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 0
    Active Links 1
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /var/tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    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 | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/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 | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 15M | 15M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 1.343 seconds - 6 queries in 0.004 seconds - Album set :


    Just in case I haven't mentioned, thanks for trying to help, I know how irritating it can be to coach newbies, but I appreciate it. Look forward to your reply.

    ~Sara

saradevil

One more thing. I would like to try safe mode. My config.inc file looks as follows when I open it in my notetab editor:

<?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'] =                'cpg132_';
?>

Where do I insert the define-silly safe mode script?

Cheers,

Sara

Joachim Müller


<?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'] =                'cpg132_';

define('SILLY_SAFE_MODE'1);

?>



Joachim

saradevil

Hello again,

Well, I have officially tried the silly safe mode and that did not work either. So to recap:

I upload images to my site via ftp. I change the permissions to make them writeable.
I select the images I want. I select the folder. I hit add.
Within 2 seconds I see lots of red x's. In the album where I added the pics thumbnails are generated. However, the galleries are not being populated.

I click the red x to get the php error and recieve a 404 error instead.

Not sure what to do now. I reinstalled the gallery files. Since I reinstalled I cannot add any pics. Before I reinistalled it was hit or miss, but after the third time I tired to install pics from the same file I got nowwhere.

Thanks for the FYI on installing the safe mode script. Any more suggestions or should I just give up on the old mine?

Cheers,

Sara

saradevil

Ah yes,

If you think anything more useful might be found in the debug script please let me know and I will send you the latest bugs.


Cheers,

Sara

saradevil

Well for an update,

Now I can't even login to the gallery, all I get is a 404 error. I'm not sure why I always have this much trouble with php.
Any ideas.

Sara