Advanced search  

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

Pages: [1]   Go Down

Author Topic: Thumbnail probs, Image Magick 127, GD2.....  (Read 3114 times)

0 Members and 1 Guest are viewing this topic.

Snow Gun

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Thumbnail probs, Image Magick 127, GD2.....
« on: April 16, 2006, 11:11:22 am »

Hi,

I'm only new to these forums so if I've posted somethign wrong please let me know......... (nicely)

I've had a few problems recently with my gallery.  I had some about a month ago but can't remember exactly what they are.  Now I went back in today cos I wanted to host some more pics and I was missing a lot of my tumbnails (not all of them).

I had Coppermine 1.4.3 installed and one of the first things I did wa reset all settings to defaults.  Then I upgraded to 1.4.4.  Still no luck ( but I didn't really expect there to be).

The first message i was getting, was the standard "Error executing ImageMagick - Return value: 127"  I searched all the posts on the forum, and many of them said to change to GD2. I confirmed that my site supports GD2 and changed to it.

Now when trying to upload using GD2, I get the following message
Quote

The file 'albums/userpics/trampoline.JPG' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/ftpwebspace/snowgun/gallery/db_input.php - Line: 391


One thing I note, is the same comment relating to File: /home/ftpwebspace/snowgun/gallery/db_input.php - Line: 391 I've searched the forums here quickly but couldn;t come up with that error.

I'm pretty sure that my host runs in safe mode. I have also checked my CHMOD settings aand believe that they are all OK.

Has anyone got any suggestions on where I should go frome here?

Thanks in anticipation.

BTW, here is some stuff from my info.php file

Quote
GD Support    enabled
GD Version    2.0 or higher
FreeType Support    enabled
FreeType Linkage    with freetype
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled


Here is my last debug info

Quote
USER:
------------------
Array
(
    [ID] => 03cc5d79739becf119906694545d9600
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 12
  • [1] => 18
                [2] => 28
                [3] => 17
                [4] => 19
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
[user_id] => 1
    [user_name] => snowgun
    [groups] => Array
        (
           
  • => 1

        )

    [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] => 1
    [num_URI_upload] => 0
    [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
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
  • [1] => select * from cpg143_plugins order by priority asc; (0s)
        [2] => delete from `DB0738234608`.cpg143_sessions where time<1145173999 and remember=0; (0s)
        [3] => delete from `DB0738234608`.cpg143_sessions where time<1143967999; (0s)
        [4] => select user_id from `DB0738234608`.cpg143_sessions where session_id=md5("5b75eb626b30280297ba076afe57ca847839e46ae11278729d75cec980c6437e"); (0s)
        [5] => select user_id as id, user_password as password from `DB0738234608`.cpg143_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `DB0738234608`.cpg143_users AS u INNER JOIN `DB0738234608`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `DB0738234608`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => 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 cpg143_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0s)
        [10] => update `DB0738234608`.cpg143_sessions set time='1145177599' where session_id=md5('5b75eb626b30280297ba076afe57ca847839e46ae11278729d75cec980c6437e'); (0s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-04-16 18:53:19' (0s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='220.233.185.13' OR ip_addr='220.233.185.13' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT category FROM cpg143_albums WHERE aid='6' (0s)
        [15] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
       
[album] => 6
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.8 - OK
------------------
mySQL version: 4.0.20
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: 2.0 or higher
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support:
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support:
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.20
MYSQL_MODULE_TYPE none
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.1
Linked Version 1.2.1.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
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/lib/php/:/usr/share/pear/ | .:/php/includes:/usr/lib/php/:/usr/share/pear/
open_basedir | /var/www/html:/home/ftpwebspace/ | /var/www/html:/home/ftpwebspace/
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -bm -v | /usr/sbin/sendmail -t -bm -v
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.22 seconds - 16 queries in 0.001 seconds - Album set : ; Meta set: ;

I hope you can help.

Cheers,
SG




« Last Edit: April 16, 2006, 04:26:36 pm by GauGau »
Logged

Joachim Müller

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

Snow Gun

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Thumbnail probs, Image Magick 127, GD2.....
« Reply #2 on: April 16, 2006, 12:19:48 pm »

Well, I've gotta admit that I am really impressed with the speed of the reply, and accuracy of the fix.

I actually DID read that topic but wasn't sure if it actually related to my problem as my actual problem is not described in the thread.  I actually posted that I thought my host ran in safe mode for this reason.

Anyway, thanks for your help.

One point - There was actually 2 of "( imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);" line in my picmgmt.inc.php so I replaced BOTH.  I actuialy couldn't work out which one was correct, but it works anyway.

Just as a side note - how do you tell what line you are viewing?

Thanks for your help. I suppose that I've probably done the wrong thing by asking abnother question in this thread.  Please disregard if so.

Thanks

SG
Logged

Nibbler

  • Guest
Re: Thumbnail probs, Image Magick 127, GD2.....
« Reply #3 on: April 17, 2006, 09:29:01 pm »

One of the lines is for GD1 and the other is for GD2. You only need to change the one you use, but changing both does no harm. If you have a specialised code editor it will show you the line numbers, most (but not all) general purpose text editors can tell you the line number in some way.
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.