GD not installed, though it is installed? GD not installed, though it is installed?
 

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

Main Menu

GD not installed, though it is installed?

Started by henfri, December 13, 2005, 11:21:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

henfri

Hi,
since yesterday, I'm getting errors uploading Images again.
After resolving the issues with imagejpeg and php in this threadhttp://forum.coppermine-gallery.net/index.php?topic=24647.0, by inserting the workaround


Code:
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);


and replace with

Code:
$fh=fopen($dest_file,'w');
fclose($fh);
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);

If you are using GD1, look a few lines above and make a similar change.


I now get another error message (But it has been working perfectly since applying the patch!):

PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed
Filde: /export/websites/6/15/hf335976/coppermine/include/picmgmt.inc.php - Line: 205


Line 205 is this >imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']); (section: case gd1).
Removing the above workaround, didn't help (I thought, my host had fixed the bug, that workaround was for).

Below, I have included the whole debug info and attatched you'll find the phpinfo, but here's the probably most important parts of these files:

==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================

Configure Command './configure' '--with-openssl=/opt/rz/openssl-0.9.7i' '--with-ndbm' '--with-db' '--with-mysql' '--with-ftp' [b]'--with-gd'[/b] '--with-zlib-dir=/usr/include' '--enable-safe-mode' '--enable-memory-limit' '--with-apxs=/opt/rz/apache_1.3.34/bin/apxs' '--prefix=/opt/rz/php-4.4.1'



Maybe you have an idea, what could cause the bug?

Thanks a lot for your help! I appreciate it!

Greets,
Hendrik





USER:
------------------
Array
(
    [ID] => 0972254e7639f19307fc4dc7be059b49
    [am] => 1
    [liv] => Array
        (
            [0] => 563
            [1] => 1375
            [2] => 1376
            [3] => 909
            [4] => 934
        )

    [search] => ###frosch
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => henfri
    [user_password] => ********
    [user_lastvisit] => 2005-12-12 07:44:49
    [user_regdate] => 2005-05-06 17:23:40
    [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] => 1
    [num_file_upload] => 10
    [num_URI_upload] => 10
    [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
(
    [0] => SELECT extension, mime, content FROM cpg133_filetypes;
    [1] => SELECT * FROM cpg133_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '67fc4ee9d64a4fee0f99ad4b65a95074'
    [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 cpg133_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg133_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg133_banned WHERE expiry < '2005-12-13 22:59:20'
    [5] => SELECT * FROM cpg133_banned WHERE ip_addr='131.170.90.4' OR ip_addr='131.170.6.100' OR user_id=1
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.15-log
------------------
Coppermine version: 1.3.5
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 4
Active Links 5
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | /export/websites/6/15/hf335976:. | .:/opt/rz/php-4.4.1/lib/php
open_basedir | /export/websites/6/15/hf335976:/tmp:/var/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/lib/sendmail -t -i -f jeworrek@rz.rwth-aachen.de | /usr/lib/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 10 | 30
max_input_time | -1 | -1
upload_max_filesize | 10M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 24.786 seconds - 6 queries in 0.006 seconds - Album set :



Nibbler

You need jpeg support enabled with GD. That's the --with-jpeg-dir[=DIR] configure command.

henfri

Hi Nibbler,

thanks for the quick reply! Barely 4 minutes!

Well, I had contacted my ISP regarding that php bug with imagejpeg. Well, they have fixed the bug, alright... By deactivating Jpeg. Great.

I'll have to drop them another mail.

Greets,
Hendrik