Batch Add Pictures Error Batch Add Pictures Error
 

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 Add Pictures Error

Started by maddog, January 26, 2004, 12:59:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maddog

Hi all - I have managed to install coppermine!!   :D

This is installed on a webhosts server.

I have now created a few empty albums, my first attempt to use the batch add pictures resulted in the following error (repeated 3 times). :(

--------------------------------------------------------------
Warning: getimagesize(): Read error! in /home2/username/public_html/foldername/coppermine/searchnew.php on line 123
--------------------------------------------------------------

Any help greatly appreciated, thanks.



Colin

Joachim Müller

make sure you have CHMODed the albums dir as stated in the readme that comes with coppermine.

GauGau

maddog

Hi gaugau - yes,I just checked and the are CHMODed to 777

Joachim Müller

Also make sure you haven't uploaded to albums/userpics, but albums/some_subfolder_you_created

GauGau

maddog

Hi gaugau - Thanks for your reply, I thought that you had probably hit the nail on the head as my pics were indeed in albums/userpics/myfolder.

However, after moving the pics to albums/myfolder I am still getting the same error.

Your help is appreciated

Regards

Colin

Casper

have you also set the 'myfolder' to 777?
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

Joachim Müller

please switch to debug_mode (in coppermine config) and check the output it generates (post the relevant parts here). Also, please specify some details about your server setup. If your server is running in safe_mode, try enabling silly_safe_mode (refer to the documentation/readme that comes with coppermine how to do this).

GauGau

maddog

Hello again gaugau - As I am new to this, I'm not sure which are the "relevant parts" so I hope you do not mind me posting the whole thing.

Server Details:

Operating system Linux
Kernel version 2.4.20-28.9
Apache version 1.3.29 (Unix)
PERL version 5.8.0
Installed Perl Modules Click to View
PHP version 4.3.4
MySQL version 4.0.15-standard

Debug Output:

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

 
 
USER DATA:
Array
(
   
  • => 1
  • [user_id] => 1
        [1] => 1
        [user_group] => 1
        [2] => YES
        [user_active] => YES
        [3] => maddog
        [user_name] => maddog
        [4] => mypassword
        [5] => 2004-01-22 14:36:45
        [user_lastvisit] => 2004-01-22 14:36:45
        [6] => 2004-01-22 14:36:45
        [user_regdate] => 2004-01-22 14:36:45
        [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] => 10000
        [group_quota] => 10000
        [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) = '20d15651b3b6e1a344d6f0ecbbbfc9c1'
  • [1] => DELETE FROM cpg11d_banned WHERE expiry < 1075382016
        [2] => SELECT * FROM cpg11d_banned WHERE ip_addr='62.13.131.108' OR ip_addr='62.13.131.108' OR user_id=1
        [3] => SELECT cid, name, description FROM cpg11d_categories WHERE parent = ''  ORDER BY pos
        [4] => SELECT aid FROM cpg11d_albums WHERE category >= 10000
        [5] => SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category >= 10000
        [6] => SELECT cid, name, description FROM cpg11d_categories WHERE parent = '1'  ORDER BY pos
        [7] => SELECT count(*) FROM cpg11d_albums WHERE 1
        [8] => SELECT count(*) FROM cpg11d_pictures WHERE 1
        [9] => SELECT count(*) FROM cpg11d_comments WHERE 1
        [10] => SELECT count(*) FROM cpg11d_categories WHERE 1
        [11] => SELECT sum(hits) FROM cpg11d_pictures WHERE 1
        [12] => SELECT count(*) FROM cpg11d_albums WHERE category = ''
        [13] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES'
        [14] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid FROM cpg11d_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
        [15] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES'
        [16] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, owner_id, owner_name, aid FROM cpg11d_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8
    )

     
    GET :
    Array
    (
    )

     
    POST :
    Array
    (
    )

     
    Thanks for your time and help

    Regards

    Colin

moorey

Quote from: "maddog"Hello again gaugau - As I am new to this, I'm not sure which are the "relevant parts" so I hope you do not mind me posting the whole thing.

Server Details:

Operating system Linux
Kernel version 2.4.20-28.9
Apache version 1.3.29 (Unix)
PERL version 5.8.0
Installed Perl Modules Click to View
PHP version 4.3.4
MySQL version 4.0.15-standard


Colin - do you see a GD or ImageMagick section in your phpinfo? It looks like you do not have either installed - which is required to generate thumbnails and so forth.

maddog

Hi - GD2 and ImagMagick are installed. Safe mode is off.

I just realised (due to moorey's reply) that I did not give a path to ImageMagick during the install.

I would like to configure coppermine to use GD2, could someone please tell me how?

Many thanks

Colin

Casper

Simply log on as admin, go to config, and select it in the 'Method for resizing images' box.
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

maddog

Hi all - I checked my config and it was already set to use "GD version 2.x"

I re-applied configuration, then tried to Batch add pictures and now get the original errors PLUS this one first:

Notice: Undefined index: select_album in /home2/maddog/public_html/family/coppermine/searchnew.php on line 63



So any more suggestions please?

Thanks

Colin