Steve Bartlett Posted April 24, 2013 Report Posted April 24, 2013 I am getting this after approving a Pirep: Warning: imagestring() expects parameter 2 to be long, string given in /home/vforg/public_html/core/common/PilotData.class.php on line 1054This is what I have for line 1054: imagestring($img, $font, $xoffset, $currline, $output[$i], $textcolor); What do I need to do to fix this error? Quote
Steve Bartlett Posted April 25, 2013 Author Report Posted April 25, 2013 Buehler?........ Buehler?............Buehler? Quote
Strider Posted April 25, 2013 Report Posted April 25, 2013 We all have our own things to do, we will get to answering your question if we are able to answer it. We may not be able to answer it at this time. Quote
Moderators Kyle Posted April 26, 2013 Moderators Report Posted April 26, 2013 Replace the following line.... imagestring($img, $font, $xoffset, $currline, $output[$i], $textcolor); To imagestring($img, int($font), $xoffset, $currline, $output[$i], $textcolor); Quote
Steve Bartlett Posted April 27, 2013 Author Report Posted April 27, 2013 Okay Kyle, I copied and pasted what you gave me above, and now I get a fatal error: Fatal error: Call to undefined function int() in /home/vforg/public_html/core/common/PilotData.class.php on line 1054 Quote
Moderators Kyle Posted April 27, 2013 Moderators Report Posted April 27, 2013 My apologies. Use this.. imagestring($img, (int)$font, $xoffset, $currline, $output[$i], $textcolor); Quote
Steve Bartlett Posted April 27, 2013 Author Report Posted April 27, 2013 That fixed it, thank you sir! Quote
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.