OmerAslan Posted March 24, 2016 Report Share Posted March 24, 2016 (edited) When i approved a new pirep i get this error also on the signature, i can't see the rank. gives me the same error Can you help me about this? Warning: imagecreatefromstring(): Empty string or invalid image in /home/pilotomeraslan/public_html/a/core/common/PilotData.class.php on line 1016 Edited May 20, 2016 by OmerAslan Quote Link to comment Share on other sites More sharing options...
OA01 Posted March 26, 2016 Report Share Posted March 26, 2016 I'm getting the same error? Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted March 31, 2016 Author Report Share Posted March 31, 2016 Hello, Is anyone has any answer about this matter? Actually i found one way to fix, that is if you put external link for the award images becomes looks fine. But for the internal link, not working. Thanks, Quote Link to comment Share on other sites More sharing options...
OA01 Posted April 3, 2016 Report Share Posted April 3, 2016 No fix for this? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 3, 2016 Administrators Report Share Posted April 3, 2016 You have to use a fully qualified url - http:// www.myairline.com/path/to/my/rank/image This is due to the image being used both in templates as well as core classes so a relative url is going to be wrong for one of them. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted April 4, 2016 Author Report Share Posted April 4, 2016 yes my friend it's working well now. thanks a lot. Quote Link to comment Share on other sites More sharing options...
OA01 Posted April 4, 2016 Report Share Posted April 4, 2016 What file did you edit? Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted April 4, 2016 Author Report Share Posted April 4, 2016 Hi, You don't need to edit any file for this. Go to the admin panel then pilot&groups then ranks section. Edit each rank with full path of image url. Example http:// www.myairline.com/path/to/my/rank/image That's all. Quote Link to comment Share on other sites More sharing options...
OA01 Posted April 5, 2016 Report Share Posted April 5, 2016 My ranks already have the full URL but I still get this error Warning: imagecreatefromstring() [function.imagecreatefromstring]: Data is not in a recognized format in /xxxxx/xxxxx/public_html/core/common/PilotData.class.php on line 1017 My images are all .png not .jpg, does this make a difference? Quote Link to comment Share on other sites More sharing options...
DesComm Posted April 10, 2016 Report Share Posted April 10, 2016 We are getting the same error, "Rank" url is http://domain.com/Pics/7.png - They show up correctliy in Pilot Center and on a list of pilots just not on the Badges. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted April 10, 2016 Author Report Share Posted April 10, 2016 We are getting the same error, "Rank" url is http://domain.com/Pics/7.png - They show up correctliy in Pilot Center and on a list of pilots just not on the Badges. try http://domain.com/lib/images/ranks/imagename.file extention (rank1.jpg) Quote Link to comment Share on other sites More sharing options...
DesComm Posted April 10, 2016 Report Share Posted April 10, 2016 try http://domain.com/lib/images/ranks/imagename.file extention (rank1.jpg) That did not work - same result. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 10, 2016 Administrators Report Share Posted April 10, 2016 Have either of you tried it with a jpg? Quote Link to comment Share on other sites More sharing options...
DesComm Posted April 10, 2016 Report Share Posted April 10, 2016 Yes and I am getting the same message when rejecting a pirep and also when generating Signatures. I replaced the domain with xxx . path set is xxx.com/Pics/7.jpg Warning: imagecreatefromstring(): Empty string or invalid image in /var/www/vhosts/xxx.com/xxx.com/core/common/PilotData.class.php on line 1016 Warning: imagecreatefromstring(): Empty string or invalid image in /var/www/vhosts//vhosts/xxx.com/xxx.com/core/common/PilotData.class.php on line 1016 Generating signature for Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 10, 2016 Administrators Report Share Posted April 10, 2016 Is it all pilots or just certain ones? If it is just certain ones possibly they have no rank or a rank without a rank image. Also, disable the rank image inclusion in the signature to see if it will process it without it to see if the issue may actually be deeper than what is being seen. Config::Set('SIGNATURE_SHOW_RANK_IMAGE', false); Quote Link to comment Share on other sites More sharing options...
DesComm Posted April 10, 2016 Report Share Posted April 10, 2016 All pilots, the ranks show up correctly when listing "all pilots" its just the Sigs and when I rejected a pirep the same message. They Generate ok when set to false, I have not tried rejecting when set to 'false' - Images are set for everyone except New and that only accounts for 3 out of 120 pilots. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 13, 2016 Administrators Report Share Posted April 13, 2016 I have just tried it with jpg, png, and gif images and it works as long as you are using a full domain path to the rank image. What is one of the paths to your images? Quote Link to comment Share on other sites More sharing options...
DesComm Posted April 14, 2016 Report Share Posted April 14, 2016 I have just tried it with jpg, png, and gif images and it works as long as you are using a full domain path to the rank image. What is one of the paths to your images? See PM with data requested Quote Link to comment Share on other sites More sharing options...
OA01 Posted April 14, 2016 Report Share Posted April 14, 2016 Here is a image link http://www.orange-air.co.uk/rank/1_trainee.png Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 16, 2016 Administrators Report Share Posted April 16, 2016 Here is a image link http://www.orange-air.co.uk/rank/1_trainee.png My guess may be that you are blocking yourself with your hot link script since it has to be a full url and not a relative path. Quote Link to comment Share on other sites More sharing options...
OA01 Posted April 17, 2016 Report Share Posted April 17, 2016 You were blocked since your domain is not listed in my white list. My domain is on the white list. So this not the cause of the problem. 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.