Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image can't be initialized #61

Closed
edosgn opened this issue Jun 30, 2014 · 5 comments
Closed

image can't be initialized #61

edosgn opened this issue Jun 30, 2014 · 5 comments

Comments

@edosgn
Copy link

edosgn commented Jun 30, 2014

Hello,

I am experiencing some problems when using the images. In fact, when I try to upload pictures from "https://chart.googleapis.com/chart" I'm always getting an "xxx The image can not be initialized."
 
This only happens on the server in my localhost it works correctly.

My document looks like this:

<img

src="https://chart.googleapis.com/chart?cht=bvo&chs=500x200&chd=t1:80,85,88,90,95|78,83,86,88,93|82,87,90,92,97&chco=74bb7e|74bb7e|74bb7e|74bb7e|74bb7e,16359a,698cff&chf=bg,s,65432100&chl=80|85|88|90|95&chtt=%&chtt=%25&chts=000000,12,center&chxt=x&chxt=x,y"
/>
PDF captures localhost and server operation

localhost:
pdf-localhost

server
pdf-server-error

Help me please.

@aledeg
Copy link
Contributor

aledeg commented Jun 30, 2014

Can you get the content from your link on your server with wget?
Is your configuration on your server the same as your localhost?

@edosgn
Copy link
Author

edosgn commented Jun 30, 2014

I could show some tutorial to learn how to do it, Thanks

@aledeg
Copy link
Contributor

aledeg commented Jun 30, 2014

My first thought is that it is a configuration problem. So could you tell if you can access the image from your server. Could you display your phpinfo both from your localhost and your server?

@psliwa
Copy link
Owner

psliwa commented Jun 30, 2014

Do you have on your production server "allow_url_fopen" directive turned on in your php.ini? http://pl1.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen

@edosgn
Copy link
Author

edosgn commented Jul 1, 2014

Thank you very much everything works perfect, after setting allow_url_fopen = On in my php.ini

@psliwa psliwa closed this as completed Jul 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants