Jump to content

Recommended Posts

Posted (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 by OmerAslan
Posted

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,

  • Administrators
Posted

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.

Posted

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.

Posted

My ranks already have the full URL but I still get this error :wacko:

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?

Posted

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

  • Administrators
Posted

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

Posted

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.

  • Administrators
Posted

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?

Posted

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

  • Administrators
Posted

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_thumb.jpg

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...