GD installed but not detected - bug?

GD installed but not detected - bug?

by Manuel Gonzalez -
Number of replies: 3

Hi,

Moodle 1.5.2 running on xampp 1.4.16 - Windows 2k

Many people are posting GD-related problems in this forum, this may be the cause (and the workarround):

I couldn't see the graphs in the survey module, but I was sure that GD 2.0 was installed. After removing in function 'survey_print_graph' (file 'survey/lib.php') the code that checks for GD:

    //if (empty($CFG->gdversion)) {
    //    echo "(".get_string("gdneed").")";

    //} else {
        echo "<img height=\"$SURVEY_GHEIGHT\" width=\"$SURVEY_GWIDTH\" border=\"1\"".
             " src=\"$CFG->wwwroot/mod/survey/graph.php?$url\" alt=\"\" />";
    //}

the graphs show without problem. Since I think that $CFG->gdversion is set by function 'check_gd_version' (file 'moodlelib.php'), I presume that this function is not working well in my environment.
Should I submit a bug for this problem?

Average of ratings: -
In reply to Manuel Gonzalez

Re: GD installed but not detected - bug?

by Zbigniew Fiedorowicz -
In reply to Zbigniew Fiedorowicz

Re: GD installed but not detected - bug?

by Michael Shaffer -
I'm having a similar problem of GD not being detected after migrating my Moodle 1.6.1 site to a new server. The server is Linux based using Cpanel. PHP version is 4.4.4.

I have run the script to install GD but still, when I go to the variables page, it is saying GD is not installed. I even tried the "Save Changes" "trick" that seems to work for everyone else sad

Any ideas?
In reply to Michael Shaffer

Re: GD installed but not detected - bug?

by celso cruz -
I install Moodle 1.7, Fedora Core 6, when I try to see the scales I get the GD not install Message, I installed and same error, can anybody help me.
Thanks,