Graphics don't work with Solaris

Graphics don't work with Solaris

by Teemu Sumi -
Number of replies: 3
Graphics of Survey, Today's Logs and All Logs don't appear. It's Solaris OS 5.9 Generic_117171-12 sun4u.

PHP version is 4.3.10 an it was compiled with these:

'./configure' '--with-mysql=/opt/mysql' '--prefix=/opt/php' '--with-apxs2=/opt/www/bin/apxs' '--with-xml' '--enable-track-vars' '--with-gd' '--with-png-dir' '--with-zlib-dir' '--enable-gd-native-ttf' '--with-jpeg-dir' '--with-ttf'

This is from PHP info

gd

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Usually these are the problems when True Type Fonts don't work. Has anybody solved these problems?


Cheers
Teemu
Average of ratings: -
In reply to Teemu Sumi

Re: Graphics don't work with Solaris

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
Try to look at the graphics files directly, not in a page (usually by right clicking on the broken image). You may see textual PHP errors that give some clues.

For example, having "blank lines" in the config.php can cause this problem.
In reply to Martin Dougiamas

Re: Graphics don't work with Solaris

by Teemu Sumi -
I checked config.php and there weren't blank lines. It's not the first time when I have these problems but usually there has been some error messages, which have told that missing True type Font is the fault. This is the first time when there are no error messages.


Teemu
In reply to Teemu Sumi

Re: Graphics don't work with Solaris

by Teemu Sumi -
There was no Freetype even you can see this line in PHP info:

FreeType Support enabled

PHP should be compiled with this:

--with-freetype2=/usr/include/freetype2


Teemu