PHP running on your server does not support the GD image library.... PHP running on your server does not support the GD image library....
 

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

PHP running on your server does not support the GD image library....

Started by lhlip8877, October 28, 2008, 01:29:11 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

lhlip8877

When I want to upload my pictures, the message "PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed" displayed.

So, I try to search the solution and follow the help documentation...

Here the error message:

File: /home/smkdpk/public_html/album/include/picmgmt.inc.php - Line: 254 

USER:
------------------
Array
(
    [ID] => 7dc347b1a19e0f9f2419e3d5a7a51b3d
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => ******
    [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 cpg_filetypes; (0s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `smkdpk_copp1`.cpg_sessions where time<1225149407 and remember=0; (0.001s)
        [3] => delete from `smkdpk_copp1`.cpg_sessions where time<1223943407; (0s)
        [4] => select user_id from `smkdpk_copp1`.cpg_sessions where session_id=md5("abe20c0762cd8d5f1b8e1d5ed6e8ba9de9553a0fe37ad9babbbf26abb25ae3fc"); (0s)
        [5] => select user_id as id, user_password as password from `smkdpk_copp1`.cpg_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 `smkdpk_copp1`.cpg_users AS u INNER JOIN `smkdpk_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `smkdpk_copp1`.cpg_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 cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `smkdpk_copp1`.cpg_sessions set time='1225153007' where session_id=md5('abe20c0762cd8d5f1b8e1d5ed6e8ba9de9553a0fe37ad9babbbf26abb25ae3fc'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2008-10-28 00:16:47' (0s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='60.52.14.142' OR ip_addr='60.52.14.142' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT category FROM cpg_albums WHERE aid='137' (0s)
        [15] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.6 - OK
    ------------------
    mySQL version: 4.1.22-standard
    ------------------
    Coppermine version: 1.4.10(stable)
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    module doesn't exist
    ==========================
    Module: zlib
    ------------------
    module doesn't exist
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value |  |  |  |  |  |  |  |
    ==========================
    Page generated in 1.993 seconds - 16 queries in 0.001 seconds - Album set : ; Meta set: ;


    Need help!!!

Fabricio Ferrero

The answer is:
Quotecheck with your webhost if ImageMagick is installed.

Cpg need some image procesor to work correctly. So ask your webhost if GD is installed on it. If not, ask if ImageMagick is installed. Depend on their answer the solution to your problem. Ask and post again.  ;)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

lhlip8877

Both ImageMagick and GD (1 & 2) installed already, and I choose GD ver.2
Some problem come out.

Here the print screen...

http://img525.imageshack.us/img525/9894/10yl6.jpg [Edit GauGau] Replaced hotlinked image with attachment [/Edit]


Joachim Müller

The screenshot you posted doesn't prove that GD2 is available - it's just the selector built into coppermine. It doesn't mean/prove that the Image libraries in question actually exist on your server. You have to look at the output of phpinfo to figure out if you actually have GD2.
Quote from: lhlip8877 on October 28, 2008, 04:15:34 AM
Both ImageMagick and GD (1 & 2) installed already
That's nonsense - GD1 and 2 can't co-exist on your server. It's either GD1 or GD2. As I said: the screenshot you took is from coppermine's config screen. Coppermine can't determine which image library you have - that's something that you have to do and then fill in the config screen of coppermine accordingly.

In fact you did quite the opposite of what you're suppossed to do: you posted debug_output although you mustn't. But, looking at debug_output carefully, here's what coppermine said there:
Quote from: lhlip8877 on October 28, 2008, 01:29:11 AM==========================
Module: gd
------------------
module doesn't exist
==========================
It seems that you don't have GD available on your server. Check phpinfo to find out if that's really the case. Ask your webhost if you have ImageMagick and if yes, what the path to the executables is. If you have neither ImageMagicg nor GD, you don't have the minimum requirememts and therefor can't use coppermine.
This is all being explained in detail in the docs that come with coppermine. Please read those docs before asking further questions.

Quote from: lhlip8877 on October 28, 2008, 05:37:30 AM
Anybody? Really need help...
This is not a hotline! Allow days for answers, not just hours. You bumped your thread after 82 minutes, which is just silly: even the coppermine supporters need to sleep sometimes. We have lives. We're not robots!

lhlip8877

Dear Joachim,
You look liked so "Hot" when reply my post, sorry if I not follow the forum's rule  ;)

Here is my phpinfo:
This is the output generated by the PHP-function phpinfo(), displayed within Coppermine (trimming the output at the right side).
Having others see your phpinfo can be a security risk, that's why this page is only visible when you're logged in as admin. You can not post a link to this page for others, they will be denied access.


So, what I need to do? Install GD myself or ask webhost do it for me?

Ya, before this question, I have face one problem before that related to "The previous file could not be placed". So I make a change from Files and thumbnails advanced settings > "Image Magick" to "GD version 2.X" and run properly. Is it mean that my server got GD already? 

Joachim Müller

Quote from: lhlip8877 on October 28, 2008, 08:49:08 AM
You look liked so "Hot" when reply my post
I'm not "hot" nor am I excited or angry if you meant to say that. What I tried to tell you is that you need to do your homeworks first, before asking questions: you need to read the documentation that comes with coppermine.


Quote from: lhlip8877 on October 28, 2008, 08:49:08 AM
So I make a change from Files and thumbnails advanced settings > "Image Magick" to "GD version 2.X" and run properly. Is it mean that my server got GD already?
Look, I already told you: the options that are available on coppermine's config page, section "method for resizing images" do not mean that the corresponding libraries are available on your server. They are options that will just instruct coppermine to try to use those image libraries. Coppermine doesn't even try to determine wether the libraries (GD1/GD2/ImageMagick) are available on your server.
That option on coppermine's config page doesn't mean anything yet. You need to dig deeper.

Quote from: lhlip8877 on October 28, 2008, 08:49:08 AM
Here is my phpinfo:
This is the output generated by the PHP-function phpinfo(), displayed within Coppermine (trimming the output at the right side).
Having others see your phpinfo can be a security risk, that's why this page is only visible when you're logged in as admin. You can not post a link to this page for others, they will be denied access.
That's just the header, but not the proper section where you're suppossed to look.

Read up FAQ -> How do I find out which version of GD I have? and do exactly as suggested there.

Quote from: lhlip8877 on October 28, 2008, 08:49:08 AMSo, what I need to do? Install GD myself or ask webhost do it for me?
Your reply shows once more that you haven't done your homeworks. As suggested, RTFM. In your case: FAQ: What's the difference between GD1 and GD2?. From that section:
QuoteUnless you are running your own webserver, you cannot upgrade nor install GD lib - only your webhost can!

Is http://smkdpk.com/album/ your gallery? If not, post a link to your gallery for a start (as suggested in the board rules that you agreed to respect when signing up).

lhlip8877

I already read the doc about FAQ -> How do I find out which version of GD I have? After sign as admin account and type the url http://smkdpk.com/album/phpinfo.php , still the same result as above.

Just now I already email to my webhost for looking up this problem, hope they will install GD for my host.

Ya. www.smkdpk.com/album is my Coppermine Gallery URL.

Thanks...