Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Batch Add Pictures Error  (Read 3986 times)

0 Members and 1 Guest are viewing this topic.

maddog

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.rennisons.co.uk
Batch Add Pictures Error
« on: January 26, 2004, 12:59:10 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Batch Add Pictures Error
« Reply #1 on: January 26, 2004, 08:25:02 pm »

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

GauGau
Logged

maddog

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.rennisons.co.uk
Batch Add Pictures Error
« Reply #2 on: January 26, 2004, 11:21:51 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Batch Add Pictures Error
« Reply #3 on: January 27, 2004, 07:04:16 am »

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

GauGau
Logged

maddog

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.rennisons.co.uk
Batch Add Pictures Error
« Reply #4 on: January 27, 2004, 10:36:30 am »

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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Batch Add Pictures Error
« Reply #5 on: January 27, 2004, 10:39:05 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Batch Add Pictures Error
« Reply #6 on: January 27, 2004, 10:42:44 am »

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
Logged

maddog

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.rennisons.co.uk
Batch Add Pictures Error
« Reply #7 on: January 29, 2004, 02:21:25 pm »

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
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
Batch Add Pictures Error
« Reply #8 on: January 30, 2004, 03:50:32 am »

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.
Logged

maddog

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.rennisons.co.uk
Batch Add Pictures Error
« Reply #9 on: January 30, 2004, 11:52:51 am »

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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Batch Add Pictures Error
« Reply #10 on: January 30, 2004, 01:22:00 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.rennisons.co.uk
Batch Add Pictures Error
« Reply #11 on: January 30, 2004, 01:34:26 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 14 queries.