OmerAslan Posted March 24, 2016 Report 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
OmerAslan Posted March 31, 2016 Author Report 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
Administrators simpilot Posted April 3, 2016 Administrators Report 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
OmerAslan Posted April 4, 2016 Author Report Posted April 4, 2016 yes my friend it's working well now. thanks a lot. Quote
OmerAslan Posted April 4, 2016 Author Report 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
OA01 Posted April 5, 2016 Report 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
DesComm Posted April 10, 2016 Report 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
OmerAslan Posted April 10, 2016 Author Report 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
DesComm Posted April 10, 2016 Report Posted April 10, 2016 try http://domain.com/lib/images/ranks/imagename.file extention (rank1.jpg) That did not work - same result. Quote
Administrators simpilot Posted April 10, 2016 Administrators Report Posted April 10, 2016 Have either of you tried it with a jpg? Quote
DesComm Posted April 10, 2016 Report 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
Administrators simpilot Posted April 10, 2016 Administrators Report 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
DesComm Posted April 10, 2016 Report 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
Administrators simpilot Posted April 13, 2016 Administrators Report 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
DesComm Posted April 14, 2016 Report 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
OA01 Posted April 14, 2016 Report Posted April 14, 2016 Here is a image link http://www.orange-air.co.uk/rank/1_trainee.png Quote
Administrators simpilot Posted April 16, 2016 Administrators Report 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
OA01 Posted April 17, 2016 Report 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
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.