Menu

font not found

Help
2005-04-16
2013-03-27
  • chamm_source

    chamm_source - 2005-04-16

    I've tried to install the latest release (v1.00) of phpfin on a linux debian sarge distribution with apache 1.3, php4, gd2 and so on.
    I found one issue i was able to resolve and one problem that still exists.

    1. The "includes/Phpxconfig" from your zip-archive should be renamed in "includes/phpXConfig.inc".
    It seems, the archive from sourceforge was build to run in a windows environment?!
    2. The login doesn't show the security-image. I've received the following error by the direct access of the security_image.php?refid=xxx

    Warning: imagettfbbox(): Could not find/open font in /xxxxxx/cdk_1.tmp on line 47

    Usually, i put following definition in the global header.  $font_name = dirname(__file__) . '/arial.ttf';
    But your php-sources are encoded with codelock ;--)
    Any ideas? Is it a known error? I did not find anything about this problem.

    Bye CHAMM

     
    • chamm_source

      chamm_source - 2005-04-17

      Ive solved the problem for myself with following addition in the security_image.php :

      putenv('GDFONTPATH=' . realpath('.'));$font = 'arial.ttf';

      Is there another place to define this as global statement and not only in the security_image.php?

      Now I have a new problem. Some click-buttons come without text, only as blank buttons. Any ideas?

      Bye CHAMM

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.