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

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

by john doeherty -
Number of replies: 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

Average of ratings: -
In reply to john doeherty

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

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of 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).
In reply to Martin Dougiamas

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

by john doeherty -

Thanx Martin...

unfortunately, I already checked all that (...yes, I DID read around here before posting wink
(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