HELP! Could not find/open font in c:\...\moodle\lib\graphlib.php

HELP! Could not find/open font in c:\...\moodle\lib\graphlib.php

av john doeherty -
Antall svar: 2

Hi!
Everything installed more or less smoothly and sofar, it looks really nice! Respect!

Unfortunately, the survey graphs woont show!
I'm on XP with apache, GD >2.0 working.

Heres the link to the image:

http://localhost/mytry/moodle/mod/survey/graph.php?id=1&sid=1&type=student.png

Heres the output i get for that link:

Warning: Could not find/open font in c:\apache\htdocs\mytry\moodle\lib\graphlib.php on line 1322

Warning: Could not find/open font in c:\apache\htdocs\mytry\moodle\lib\graphlib.php on line 1336
(this goes on and on...)

Thanx,

J°n

Gjennomsnittlig vurdering: -
Som svar til john doeherty

Re: HELP! Could not find/open font in c:\...\moodle\lib\graphlib.php

av Martin Dougiamas -
Bilde av Core developers Bilde av Documentation writers Bilde av Moodle HQ Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers
Make sure that your path for dirroot in config.php:

$CFG->dirroot = "c:\apache\htdocs\mytry\moodle";

is using the correct upper/lower case everywhere. I know Windows doesn't care about case, but sometimes PHP does.

Also, in the current development version (AFTER Moodle 1.0.8.1) the fonts have moved (into the language packs).
Som svar til Martin Dougiamas

Re: HELP! Could not find/open font in c:\...\moodle\lib\graphlib.php

av john doeherty -

Thanx Martin...

unfortunately, I already checked all that (...yes, I DID read around here before posting blunker
(oh and BTW: it should be $CFG->dirroot = "C:\apache\htdocs\mytry\moodle";
the small 'c:' gives an error msg... ) (ah yes, and another: originally my directory was called
'try' not 'mytry' as above. Apparently there's a small problem with special characters as moodle
produced 'C:\apache\htdocs  ry\moodle' from this...)

I'm getting carried away...
All config paths seem ok, everything works fine, EXCEPT the graphs...

Any more ideas?

J°n