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 upload problems- get image magik error code  (Read 5989 times)

0 Members and 1 Guest are viewing this topic.

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Batch upload problems- get image magik error code
« on: October 04, 2005, 06:29:53 am »

I've read the documentation to batch upload, and as far as I can tell, have done everything correctly. When I select my new images, and the destination album, and click upload, all of the images return with broken thumbnails. I click on the broken image link, and get the following result:

Error executing ImageMagick - Return value: 1

Does anyone know what is causing this? Thanks.
« Last Edit: October 17, 2005, 07:32:31 am by GauGau »
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Batch upload problems- get image magik error code
« Reply #1 on: October 04, 2005, 06:36:01 am »

Try setting : Method for resizing images  in your Config setup to GD2.


Is there any particular reason why you need to use Image Magick over GD2?

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Batch upload problems- get image magik error code
« Reply #2 on: October 05, 2005, 06:27:08 am »

Thanks, I will try that. I have not chosen imagemagik intentionally- I guess it was set as the default.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch upload problems- get image magik error code
« Reply #3 on: October 05, 2005, 07:01:29 am »

not exactly - it get's set when you fill in an ImageMagick path on the install screen. If you don't have ImageMagick, there's little point in making up that path. Anyway, go for GD2.
Logged

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Batch upload problems- get image magik error code
« Reply #4 on: October 05, 2005, 03:36:10 pm »

OK... I switched to GD2, and now I get these results when I click on the broken links:

Warning: imagejpeg(): Unable to open 'albums/Wedding 1/tn_martin_0010.jpg' for writing in /home/houstonp/public_html/galleries/include/picmgmt.inc.php on line 218

Warning: chmod(): No such file or directory in /home/houstonp/public_html/galleries/include/picmgmt.inc.php on line 224

Warning: getimagesize(albums/Wedding 1/tn_martin_0010.jpg): failed to open stream: No such file or directory in /home/houstonp/public_html/galleries/include/picmgmt.inc.php on line 226
Unable to create thumbnail or reduced size image.

I have heard about "setting permissions", but the batch upload documentation doesn't talk about it at all. Is this the problem? What do you think? Thanks.

Adam
Logged

Nibbler

  • Guest
Re: Batch upload problems- get image magik error code
« Reply #5 on: October 05, 2005, 03:56:42 pm »

Don't use spaces in your folder names.
Logged

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Batch upload problems- get image magik error code
« Reply #6 on: October 06, 2005, 05:52:16 am »

Okay, I changed the file name to wedding_1 and got the same error after trying to process.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Batch upload problems- get image magik error code
« Reply #8 on: October 15, 2005, 06:31:06 pm »

OK, after I try uploading, and get the broken links, this is the debug info at the bottom of the page:

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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => admin
    [user_password] => ********
    [user_lastvisit] => 2005-10-15 11:27:02
    [user_regdate] => 2005-10-06 15:43:15
    [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] => 0
    [ufc_min] => 0
    [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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => 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) = '33d6206a73956d8faebd6b4b69a3562f'
        [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 < '2005-10-15 11:29:08'
        [5] => SELECT * FROM cpg_banned WHERE ip_addr='67.10.205.205' OR ip_addr='67.10.205.205' OR user_id=1
        [6] => SELECT aid, title FROM cpg_albums WHERE 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
                [30] => i0030
                [31] => i0031
                [32] => i0032
                [33] => i0033
                [34] => i0034
                [35] => i0035
                [36] => i0036
                [37] => i0037
                [38] => i0038
                [39] => i0039
                [40] => i0040
                [41] => i0041
                [42] => i0042
                [43] => i0043
                [44] => i0044
                [45] => i0045
                [46] => i0046
                [47] => i0047
                [48] => i0048
                [49] => i0049
                [50] => i0050
                [51] => i0051
                [52] => i0052
                [53] => i0053
                [54] => i0054
                [55] => i0055
                [56] => i0056
                [57] => i0057
                [58] => i0058
                [59] => i0059
                [60] => i0060
                [61] => i0061
                [62] => i0062
                [63] => i0063
                [64] => i0064
                [65] => i0065
                [66] => i0066
                [67] => i0067
                [68] => i0068
                [69] => i0069
                [70] => i0070
                [71] => i0071
                [72] => i0072
                [73] => i0073
                [74] => i0074
                [75] => i0075
                [76] => i0076
            )

       
[album_lb_id_i0000] => d0000
    [picfile_i0000] => MTBfOF8wNS9EU0NfNzU0Ni5qcGc=
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => MTBfOF8wNS9EU0NfNzU0Ny5qcGc=
    [album_lb_id_i0002] => d0000
    [picfile_i0002] => MTBfOF8wNS9EU0NfNzU0OC5qcGc=
    [album_lb_id_i0003] => d0000
    [picfile_i0003] => MTBfOF8wNS9EU0NfNzU0OS5qcGc=
    [album_lb_id_i0004] => d0000
    [picfile_i0004] => MTBfOF8wNS9EU0NfNzU1MC5qcGc=
    [album_lb_id_i0005] => d0000
    [picfile_i0005] => MTBfOF8wNS9EU0NfNzU1MS5qcGc=
    [album_lb_id_i0006] => d0000
    [picfile_i0006] => MTBfOF8wNS9EU0NfNzU1Mi5qcGc=
    [album_lb_id_i0007] => d0000
    [picfile_i0007] => MTBfOF8wNS9EU0NfNzU1My5qcGc=
    [album_lb_id_i0008] => d0000
    [picfile_i0008] => MTBfOF8wNS9EU0NfNzU1NC5qcGc=
    [album_lb_id_i0009] => d0000
    [picfile_i0009] => MTBfOF8wNS9EU0NfNzU1NS5qcGc=
    [album_lb_id_i0010] => d0000
    [picfile_i0010] => MTBfOF8wNS9EU0NfNzU1Ni5qcGc=
    [album_lb_id_i0011] => d0000
    [picfile_i0011] => MTBfOF8wNS9EU0NfNzU1Ny5qcGc=
    [album_lb_id_i0012] => d0000
    [picfile_i0012] => MTBfOF8wNS9EU0NfNzU1OC5qcGc=
    [album_lb_id_i0013] => d0000
    [picfile_i0013] => MTBfOF8wNS9EU0NfNzU1OS5qcGc=
    [album_lb_id_i0014] => d0000
    [picfile_i0014] => MTBfOF8wNS9EU0NfNzU2MC5qcGc=
    [album_lb_id_i0015] => d0000
    [picfile_i0015] => MTBfOF8wNS9EU0NfNzU2MS5qcGc=
    [album_lb_id_i0016] => d0000
    [picfile_i0016] => MTBfOF8wNS9EU0NfNzU2Mi5qcGc=
    [album_lb_id_i0017] => d0000
    [picfile_i0017] => MTBfOF8wNS9EU0NfNzU2NC5qcGc=
    [album_lb_id_i0018] => d0000
    [picfile_i0018] => MTBfOF8wNS9EU0NfNzU2NS5qcGc=
    [album_lb_id_i0019] => d0000
    [picfile_i0019] => MTBfOF8wNS9EU0NfNzU2Ni5qcGc=
    [album_lb_id_i0020] => d0000
    [picfile_i0020] => MTBfOF8wNS9EU0NfNzU2Ny5qcGc=
    [album_lb_id_i0021] => d0000
    [picfile_i0021] => MTBfOF8wNS9EU0NfNzU2OC5qcGc=
    [album_lb_id_i0022] => d0000
    [picfile_i0022] => MTBfOF8wNS9EU0NfNzU2OS5qcGc=
    [album_lb_id_i0023] => d0000
    [picfile_i0023] => MTBfOF8wNS9EU0NfNzU3MC5qcGc=
    [album_lb_id_i0024] => d0000
    [picfile_i0024] => MTBfOF8wNS9EU0NfNzU3MS5qcGc=
    [album_lb_id_i0025] => d0000
    [picfile_i0025] => MTBfOF8wNS9EU0NfNzU3Mi5qcGc=
    [album_lb_id_i0026] => d0000
    [picfile_i0026] => MTBfOF8wNS9EU0NfNzU3My5qcGc=
    [album_lb_id_i0027] => d0000
    [picfile_i0027] => MTBfOF8wNS9EU0NfNzU3NC5qcGc=
    [album_lb_id_i0028] => d0000
    [picfile_i0028] => MTBfOF8wNS9EU0NfNzU3NS5qcGc=
    [album_lb_id_i0029] => d0000
    [picfile_i0029] => MTBfOF8wNS9EU0NfNzU3Ni5qcGc=
    [album_lb_id_i0030] => d0000
    [picfile_i0030] => MTBfOF8wNS9EU0NfNzU3Ny5qcGc=
    [album_lb_id_i0031] => d0000
    [picfile_i0031] => MTBfOF8wNS9EU0NfNzU3OC5qcGc=
    [album_lb_id_i0032] => d0000
    [picfile_i0032] => MTBfOF8wNS9EU0NfNzU3OS5qcGc=
    [album_lb_id_i0033] => d0000
    [picfile_i0033] => MTBfOF8wNS9EU0NfNzU4MC5qcGc=
    [album_lb_id_i0034] => d0000
    [picfile_i0034] => MTBfOF8wNS9EU0NfNzU4MS5qcGc=
    [album_lb_id_i0035] => d0000
    [picfile_i0035] => MTBfOF8wNS9EU0NfNzU4Mi5qcGc=
    [album_lb_id_i0036] => d0000
    [picfile_i0036] => MTBfOF8wNS9EU0NfNzU4My5qcGc=
    [album_lb_id_i0037] => d0000
    [picfile_i0037] => MTBfOF8wNS9EU0NfNzU4NC5qcGc=
    [album_lb_id_i0038] => d0000
    [picfile_i0038] => MTBfOF8wNS9EU0NfNzU4NS5qcGc=
    [album_lb_id_i0039] => d0000
    [picfile_i0039] => MTBfOF8wNS9EU0NfNzU4Ni5qcGc=
    [album_lb_id_i0040] => d0000
    [picfile_i0040] => MTBfOF8wNS9EU0NfNzU4Ny5qcGc=
    [album_lb_id_i0041] => d0000
    [picfile_i0041] => MTBfOF8wNS9EU0NfNzU4OC5qcGc=
    [album_lb_id_i0042] => d0000
    [picfile_i0042] => MTBfOF8wNS9EU0NfNzU4OS5qcGc=
    [album_lb_id_i0043] => d0000
    [picfile_i0043] => MTBfOF8wNS9EU0NfNzU5MC5qcGc=
    [album_lb_id_i0044] => d0000
    [picfile_i0044] => MTBfOF8wNS9EU0NfNzU5MS5qcGc=
    [album_lb_id_i0045] => d0000
    [picfile_i0045] => MTBfOF8wNS9EU0NfNzU5Mi5qcGc=
    [album_lb_id_i0046] => d0000
    [picfile_i0046] => MTBfOF8wNS9EU0NfNzU5My5qcGc=
    [album_lb_id_i0047] => d0000
    [picfile_i0047] => MTBfOF8wNS9EU0NfNzU5NC5qcGc=
    [album_lb_id_i0048] => d0000
    [picfile_i0048] => MTBfOF8wNS9EU0NfNzU5NS5qcGc=
    [album_lb_id_i0049] => d0000
    [picfile_i0049] => MTBfOF8wNS9EU0NfNzU5Ni5qcGc=
    [album_lb_id_i0050] => d0000
    [picfile_i0050] => MTBfOF8wNS9EU0NfNzU5Ny5qcGc=
    [album_lb_id_i0051] => d0000
    [picfile_i0051] => MTBfOF8wNS9EU0NfNzU5OC5qcGc=
    [album_lb_id_i0052] => d0000
    [picfile_i0052] => MTBfOF8wNS9EU0NfNzU5OS5qcGc=
    [album_lb_id_i0053] => d0000
    [picfile_i0053] => MTBfOF8wNS9EU0NfNzYwMC5qcGc=
    [album_lb_id_i0054] => d0000
    [picfile_i0054] => MTBfOF8wNS9EU0NfNzYwMS5qcGc=
    [album_lb_id_i0055] => d0000
    [picfile_i0055] => MTBfOF8wNS9EU0NfNzYwMi5qcGc=
    [album_lb_id_i0056] => d0000
    [picfile_i0056] => MTBfOF8wNS9EU0NfNzYwMy5qcGc=
    [album_lb_id_i0057] => d0000
    [picfile_i0057] => MTBfOF8wNS9EU0NfNzYwNC5qcGc=
    [album_lb_id_i0058] => d0000
    [picfile_i0058] => MTBfOF8wNS9EU0NfNzYwNS5qcGc=
    [album_lb_id_i0059] => d0000
    [picfile_i0059] => MTBfOF8wNS9EU0NfNzYwNi5qcGc=
    [album_lb_id_i0060] => d0000
    [picfile_i0060] => MTBfOF8wNS9EU0NfNzYwNy5qcGc=
    [album_lb_id_i0061] => d0000
    [picfile_i0061] => MTBfOF8wNS9EU0NfNzYwOC5qcGc=
    [album_lb_id_i0062] => d0000
    [picfile_i0062] => MTBfOF8wNS9EU0NfNzYwOS5qcGc=
    [album_lb_id_i0063] => d0000
    [picfile_i0063] => MTBfOF8wNS9EU0NfNzYxMy5qcGc=
    [album_lb_id_i0064] => d0000
    [picfile_i0064] => MTBfOF8wNS9EU0NfNzYxNC5qcGc=
    [album_lb_id_i0065] => d0000
    [picfile_i0065] => MTBfOF8wNS9EU0NfNzYxNS5qcGc=
    [album_lb_id_i0066] => d0000
    [picfile_i0066] => MTBfOF8wNS9EU0NfNzYxNi5qcGc=
    [album_lb_id_i0067] => d0000
    [picfile_i0067] => MTBfOF8wNS9EU0NfNzYxNy5qcGc=
    [album_lb_id_i0068] => d0000
    [picfile_i0068] => MTBfOF8wNS9EU0NfNzYxOC5qcGc=
    [album_lb_id_i0069] => d0000
    [picfile_i0069] => MTBfOF8wNS9EU0NfNzYxOS5qcGc=
    [album_lb_id_i0070] => d0000
    [picfile_i0070] => MTBfOF8wNS9EU0NfNzYyMC5qcGc=
    [album_lb_id_i0071] => d0000
    [picfile_i0071] => MTBfOF8wNS9EU0NfNzYyMS5qcGc=
    [album_lb_id_i0072] => d0000
    [picfile_i0072] => MTBfOF8wNS9EU0NfNzYyMi5qcGc=
    [album_lb_id_i0073] => d0000
    [picfile_i0073] => MTBfOF8wNS9EU0NfNzYyMy5qcGc=
    [album_lb_id_i0074] => d0000
    [picfile_i0074] => MTBfOF8wNS9EU0NfNzYyNS5qcGc=
    [album_lb_id_i0075] => d0000
    [picfile_i0075] => MTBfOF8wNS9EU0NfNzYyNy5qcGc=
    [album_lb_id_i0076] => d0000
    [picfile_i0076] => MTBfOF8wNS9EU0NfNzYyOC5qcGc=
    [insert] => Insert selected files
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 4.0.25-standard
------------------
Coppermine version: 1.3.4
==========================
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.0.25
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 | .:/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 | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 3.117 seconds - 7 queries in 0.002 seconds - Album set :
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch upload problems- get image magik error code
« Reply #9 on: October 16, 2005, 11:26:12 pm »

I didn't ask for the debug output. The page I refered to clearly says what you need to do if you want us to help. Re-read the tutorial, then post the needed information.
« Last Edit: October 17, 2005, 12:32:02 am by GauGau »
Logged

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Batch upload problems- get image magik error code
« Reply #10 on: October 17, 2005, 12:26:56 am »

OK...i've done the steps. The user name to login with is:

username: tester
pw: password

Thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch upload problems- get image magik error code
« Reply #11 on: October 17, 2005, 12:33:38 am »

don't you think you should have posted something else? How about a link to your site? Don't make it so hard to support you ::).
Logged

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Batch upload problems- get image magik error code
« Reply #12 on: October 17, 2005, 02:37:29 am »

Sorry:

www.thevenuehouston.com/gallery

user: tester
pw: password
Logged

anyholt

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Batch upload problems- get image magik error code
« Reply #13 on: October 17, 2005, 03:20:07 am »

I fixed it. Thanks! For some reason, I had permissions set to 777 for the "gallery" directory, but not for the individual folder that I dropped the images in. It works now. thanks for all the help. ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.