My points currency image is not showing

If you've configured the points currency image properly according to any instructions you were given and your own intuition, but the image still appears as a broken link it means there was an error in processing the image. This occurs since some images in MageRewards are developed on the fly.

To view the error, view the source of the document (requires some HTML knowledge). Since the <img src=".../rewards/image/index/quantity/29/currency/1/..." image, and copy the full SRC url. next, paste this in your browser. You should see a Magento error. If you're using magento 1.4 or newer, you'll need to either edit the report error file over FTP or SSH, or you'll have to turn off Magento error hiding.

If you get an error something like this:

Warning: imagefttext() [function.imagefttext]: Could not find/open font in .../app/code/community/TBT/Rewards/controllers/ImageController.php on line 106

It means the system could not find your font file. Either the font file you specified does not exist, or it just needs to be copied to your own theme instead of the default/default theme.

If you see this error:

Warning: imagecreatefrompng(.../skin/frontend/default/YOUR_THEME/images/rewards/gold_token.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory  in .../app/code/community/TBT/Rewards/controllers/ImageController.php on line 63

It means that the points currency image you specified doesn't exist or could not be found. To resolve:

  1. Make sure it exists in the path you've specified and in the one written above in the error.
  2. Make sure that the image is of type PNG
  3. Try other image files. Sometimes your own image file is corrupted or saved by your application in a format that is unreadable by PHP.

If you see this error:

Fatal error: Call to undefined function imagefttext() in ../app/code/community/TBT/Rewards/controllers/ImageController.php on line 105

This is an error with the user's php settings not including the required image mod plugin. You should contact your server administrator to enable this php function.

Still need help? Get Help Get Help