GlobalOne Posted July 9, 2012 Report Share Posted July 9, 2012 Hey everyone, another day another problem . Warning: imagefontheight() expects parameter 1 to be long, string given in /***/core/common/PilotData.class.php on line 1035 Warning: imagefontwidth() expects parameter 1 to be long, string given in /***/core/common/PilotData.class.php on line 1036 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Anyone know whats causing these? I managed to fix the first 2 by adding (int) $stepsize = imagefontheight((int)$font); $fontwidth = imagefontwidth((int)$font); on lines 1034, 1035 of PilotData.class.php but I could not figure out how to get the rest to work. 2) Also no text is displaying on my signature except of rthe phpvms test on the bottom. Anyone know why? Quote Link to comment Share on other sites More sharing options...
Ariel Posted July 10, 2012 Report Share Posted July 10, 2012 have you tried refreshing signatures in admin panel??? Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted July 10, 2012 Author Report Share Posted July 10, 2012 yes, several times. When I refresh the signatures I get the errors above. Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 10, 2012 Moderators Report Share Posted July 10, 2012 According to the errors... it tells me that you might don't have php_g2d enabled. Contact your host to enable it. Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted July 11, 2012 Author Report Share Posted July 11, 2012 According to the errors... it tells me that you might don't have php_g2d enabled. Contact your host to enable it. do you mean GD, what is gd2? GD is enabled in the server. Quote Link to comment Share on other sites More sharing options...
SouthwestVA Posted July 12, 2012 Report Share Posted July 12, 2012 Hey everyone, another day another problem . Warning: imagefontheight() expects parameter 1 to be long, string given in /***/core/common/PilotData.class.php on line 1035 Warning: imagefontwidth() expects parameter 1 to be long, string given in /***/core/common/PilotData.class.php on line 1036 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /***/core/common/PilotData.class.php on line 1054 Anyone know whats causing these? I managed to fix the first 2 by adding (int) $stepsize = imagefontheight((int)$font); $fontwidth = imagefontwidth((int)$font); on lines 1034, 1035 of PilotData.class.php but I could not figure out how to get the rest to work. 2) Also no text is displaying on my signature except of rthe phpvms test on the bottom. Anyone know why? I Had that problem, hated it, so i bought a cheap vps and ran it off of that, worked just fine. Is it a vps or your server or is it hosting you bought? Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted July 12, 2012 Author Report Share Posted July 12, 2012 I have a vps, so I manage my own server. Quote Link to comment Share on other sites More sharing options...
SouthwestVA Posted July 12, 2012 Report Share Posted July 12, 2012 ok, what are you running as the web server, lampp? Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted July 13, 2012 Author Report Share Posted July 13, 2012 im using cpanel, so its apache Quote Link to comment Share on other sites More sharing options...
magicflyer Posted July 30, 2012 Report Share Posted July 30, 2012 Hi Guys, I am having the same problem since earlier this month. Does anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
RogerB Posted July 30, 2012 Report Share Posted July 30, 2012 Hosting is cheap, find a good host... Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted August 12, 2012 Author Report Share Posted August 12, 2012 I have fixed the problem. Had to do with the php settings on the server. Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted February 8, 2013 Report Share Posted February 8, 2013 I have this issue as well. The hosting claims that they have enabled GD and GD2, and told me to refer back here. It works with no issues on my localhost server however. [b]Warning[/b]: imagefontheight() expects parameter 1 to be long, string given in [b]/home/kamil/public_html/core/common/PilotData.class.php[/b] on line [b]1035[/b] [b]Warning[/b]: imagefontwidth() expects parameter 1 to be long, string given in [b]/home/kamil/public_html/core/common/PilotData.class.php[/b] on line [b]1036[/b] [b]Warning[/b]: imagestring() expects parameter 2 to be long, string given in [b]/home/kamil/public_html/core/common/PilotData.class.php[/b] on line [b]1054[/b] [b]Warning[/b]: imagestring() expects parameter 2 to be long, string given in [b]/home/kamil/public_html/core/common/PilotData.class.php[/b] on line [b]1054[/b] [b]Warning[/b]: imagestring() expects parameter 2 to be long, string given in [b]/home/kamil/public_html/core/common/PilotData.class.php[/b] on line [b]1054[/b] [b]Warning[/b]: imagestring() expects parameter 2 to be long, string given in [b]/home/kamil/public_html/core/common/PilotData.class.php[/b] on line [b]1054[/b] Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted May 7, 2014 Author Report Share Posted May 7, 2014 For anyone still wondering about this issue, its not likely your hosts fault. The problem is caused by an incompatibility within PHP 5.3 and on-wards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.