[SOLVED] Pirep and Signature rank error

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

I’m getting the same error?

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,

No fix for this?

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.

yes my friend it’s working well now. thanks a lot.

What file did you edit?

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.

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?

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.

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)

try http://domain.com/lib/images/ranks/imagename.file extention (rank1.jpg)

That did not work - same result.

Have either of you tried it with a jpg?

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

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);

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.

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?

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

Here is a image link

http://www.orange-air.co.uk/rank/1_trainee.png

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.

post-198-0-11155300-1460765180.jpg