Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,872
- Plugin Contributions:
- 7
[Done v1.3.9a] imagefontheight() error in banner_manager.php
Hi,
I think this is related to the latest xampp package with php 5.3 and the GD library. The error occurs on a fresh install of 1.38a with this package and not with 5.2.9.
In admin, tools, Banner Manager there are multiple warnings along the lines of
Warning: imagefontheight() expects parameter 1 to be long, string given in D:....\httpdocs\zen138a\admin\includes\classes\phplot.php on line 686
Screenshot here:
http://www.torvista.com/banner_error.gif
All the errors are referencing the use of the same variable $which_font which gets passed to the function DrawText.
I cannot find any other file (outside of phplot.php) that makes a call to this function and so don't know where this variable is coming from to know how it is created. In either case the echo value of $which_font is 4.
On the web the only identical report is in the oscommerce forums:
forums.oscommerce.com/topic/348579-error-message-in-banner-manager/
where the guy has copied a replacement phplot.php from the german forum:
forums.oscommerce.de/lofiversion/index.php?t70562.html
I compared this file with the original oscommerce version and all the originator has done is remove the lines that were causing the error!!
I can find reference to similar messages related to the use of the GD library but those waters are too deep for me....
So, here I am for help.
thanks
Steve