Talisman57 Posted April 24, 2012 Report Share Posted April 24, 2012 Hello all, I have noticed that when accepting PIREP's in the Admin Center, I get an error, which is Warning: imagefontheight() expects parameter 1 to be long, string given in /home/upscargo/public_html/core/common/PilotData.class.php on line 1035 Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/upscargo/public_html/core/common/PilotData.class.php on line 1036 Warning: imagestring() expects parameter 2 to be long, string given in /home/upscargo/public_html/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /home/upscargo/public_html/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /home/upscargo/public_html/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /home/upscargo/public_html/core/common/PilotData.class.php on line 1054 Warning: imagestring() expects parameter 2 to be long, string given in /home/upscargo/public_html/core/common/PilotData.class.php on line 1054 I get this error when pilots register too. I host my own site on my servers, which have php 5.3.9, and all the necessary extensions. From what I've read, it's a PHP 5.3 compatibility error, but just want to see if others have it. Thanks for the help, David P.S. MassMailer doesn't work, and graphs sometimes pull up errors. This and the problem above also happens on another test site on a different server with same PHP. Quote Link to comment Share on other sites More sharing options...
Talisman57 Posted April 26, 2012 Author Report Share Posted April 26, 2012 Anyone have an idea on this? Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted April 26, 2012 Moderators Report Share Posted April 26, 2012 Make sure you have GD installed (Part of PHP Images). Contact your host to see if they can enable it for you. Can you explain what's not working with the mass mailer (You might need to configure the email servers and logins in the local.config.php for the mass mails), and the graph errors are just normal, it'll show up a few times but it will work again. Quote Link to comment Share on other sites More sharing options...
Talisman57 Posted April 27, 2012 Author Report Share Posted April 27, 2012 I host my site through my company. GD is enabled on PHP 5.3.10. The MassMailer worked fine and then just stopped working. It was set up correctly in local.config.php. I've tested increasing PHP Memory, but that did nothing. Quote Link to comment Share on other sites More sharing options...
Talisman57 Posted April 28, 2012 Author Report Share Posted April 28, 2012 Any idea? Quote Link to comment Share on other sites More sharing options...
Talisman57 Posted April 29, 2012 Author Report Share Posted April 29, 2012 Seems like lots of phpVMS users are having problems with the MassMailer Quote Link to comment Share on other sites More sharing options...
Talisman57 Posted May 1, 2012 Author Report Share Posted May 1, 2012 Polite Bump... Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted May 2, 2012 Administrators Report Share Posted May 2, 2012 I have run into this on some servers and it has been an issue with the link for the rank image that goes on the pilot badge. When a relative path is used /lib/images/ranks/new_hire.jpg the error presents itself. I have had success in using an absolute path to the image http://www.mysite.com/lib/images/ranks/new_hire.jpg Quote Link to comment Share on other sites More sharing options...
Talisman57 Posted May 2, 2012 Author Report Share Posted May 2, 2012 This would go in the PilotData.class.php right? Quote Link to comment Share on other sites More sharing options...
Talisman57 Posted May 3, 2012 Author Report Share Posted May 3, 2012 I also fixed the MassMailer problem. I put Swiftmailer in instead of PHPMailer, and now the emails send. But the suggestion from simpilot didnt work 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.