Error previewing Gift Certificates


  • Default avatar
    dax707    
     13 years ago
    0

    anyone know how to fix this? I get the following error when i try to preview any of the gift certificates...

    Fatal error: Call to undefined function imagettfbbox() in /home/doulat/public_html/administrator/components/com_awocoupon/assets/virtuemart/ps_awo_giftcert.php on line 327
  • Default avatar
    dax707    
     13 years ago
    0

    also it doesn't look like I am receiving the email that is supposed to get auto-generated with my gift certificate. Could this also be because of the error I specified above?
  • Your avatar
    seyi    
     13 years ago
    0

    Hi, what version of php are you using. According to the documentation imagettfbbox is defined in both php 4 and 5:
    http://php.net/manual/en/function.imagettfbbox.php

    And yes, I do not think you would receive gift certificates since it is using that function to create them.
  • Default avatar
    dax707    
     13 years ago
    0

    here are my server statistics......as you can see i am using php 5

    Program Versions
    Program
    Version
    Apache:
    2.2.17
    CentOS:
    .
    cPanel:
    11.28.87
    Curl:
    7.12.1
    MySQL
    5.1.52
    phpMyAdmin
    3.3.9.2
    Python:
    2.4.3
    Program
    Version
    Perl:
    5.8.8
    PHP:
    5.2.4
    ionCube Loader:
    3.3.20
    Zend Optimizer:
    3.3.9
    Ruby:
    1.8.7
    Rails:
    2.3.5
    OpenSSL:
    0.9.8e-fips-rhel5
  • Your avatar
    seyi    
     13 years ago
    0

    Ok, do you have GD library installed? I do not see it on the list. You will need that to generate the images.
  • Default avatar
    dax707    
     13 years ago
    0

    yes, it looks like version 2.0.34 is installed. if you go to the following link you can view the vardump
    http://www.doula-training.com/test.php
  • Your avatar
    seyi    
     13 years ago
    0

    I see. never seen this erro before so went to googling. From what I found, you either do not have gd library or you do not have php compiled with ttf support. So we know you have the gd library, can you check the ttf support?
    http://www.itsolutionskb.com/2008/10/fatal-error-call-to-undefined-function-imagettfbbox/
  • Default avatar
    dax707    
     13 years ago
    0

    how do i go about checking to see if the server has TTF support?
  • Your avatar
    seyi    
     13 years ago
    0

    I am not sure, you would have to ask your host about that.
  • Default avatar
    dax707    
     13 years ago
    0

    thanks for your help

    i contacted the server and its now working
  • Default avatar
    ruth.cheesley    
     11 years ago
    0

    Thanks for this post, I had the same problem although as I had error reporting disabled it wasn't showing me the error at first!

    Just adding that to see if it fixes!

    Ruth