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

Unable to Render Images - HTTP ERROR 500 #387

Open
awaistariq opened this Issue Sep 30, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@awaistariq

awaistariq commented Sep 30, 2018

Hi,
Unable to render Images in my production server. Things are working fine in dev / localhost.

composer.json:
"spipu/html2pdf": "^5.0",

I am providing image absolute path, but apache throws error 500 without any description.

My .htaccess is:

RewriteEngine on
RewriteCond $1 !^(index\.php|assets|xml|images|js|css|uploads|favicon.png|image.png)
RewriteCond %(REQUEST_FILENAME) !-f
RewriteCond %(REQUEST_FILENAME) !-d
RewriteRule ^(.*)$ ./index.php/$1 [L]

Image Tag Src is:

/var/www/html/SiteFolder/assets/images/image.png

What can be wrong?

I am using CodeIgniter as the framework.

@awaistariq

This comment has been minimized.

awaistariq commented Sep 30, 2018

If I remove img tag, pdf renders fine.

@awaistariq

This comment has been minimized.

awaistariq commented Sep 30, 2018

Apparently, issue went once I changed image from PNG to JPEG. But I still can't figure what's wrong with PNG?

@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Oct 12, 2018

Hi!
I'd the same problem, i had to install php-curl and restart apache... See your log if you can!
Regards,
LBF

@spipu

This comment has been minimized.

Owner

spipu commented Oct 26, 2018

exactly, look at if you have the good php extensons (curl, gd, ...)

@spipu spipu added the help wanted label Oct 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment