Support

Home Forums Event Espresso Premium getimagesize failed to open stream no suitable wrapper can be found

getimagesize failed to open stream no suitable wrapper can be found

Posted: August 7, 2018 at 2:17 pm

Viewing 4 reply threads


lavidanm

August 7, 2018 at 2:17 pm

Hello-
We are receiving the above when trying to generate the PDF invoice. Our php.ini looks like the following:
memory_limit = 256M
allow_url_fopen = on
output_buffering = 2048

We are using WordPress 4.9.8 and it is hosted at Network Solutions.


Josh

  • Support Staff

August 7, 2018 at 3:01 pm

Hi,

The error message means allow_url_fopen is disabled on your web server. This is used within the DOMPDF library that Event Espresso uses to generate the PDF’s (so both PDF Receipts and Invoices)
You can contact your hosting company to have them enable allow_url_fopen on your site.


lavidanm

August 7, 2018 at 3:05 pm

So, this is a requirement above and beyond the allow_url_fopen = on that we already have present in the php.ini? Thanks


lavidanm

August 7, 2018 at 3:08 pm

Tried it again. We are now receiving the following: Warning: getimagesize(http://lvfnm.org/wp-content/uploads/2011/05/LVF-CMYK-e1308240594537.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /data/49/4/125/160/4940649/user/5865413/htdocs/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 499


Tony

  • Support Staff

August 8, 2018 at 2:20 am

So, this is a requirement above and beyond the allow_url_fopen = on that we already have present in the php.ini?

No, it likely meant the above change wasn’t being applied (or being overridden).

HTTP request failed! HTTP/1.1 400 Bad Request in /wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 499

Something on your server is blocking the request, 4xx errors are usually considered ‘client side’ errors meaning an issue with whatever is requesting the image, however, I added your Logo use to one of my test sites (which is a known good site/server setup) and get exactly the same error – http://take.ms/yrLLI

Can you check in with your host and ask them to look into why the request fails? You can send them the same error you added above.

Viewing 4 reply threads

The support post ‘getimagesize failed to open stream no suitable wrapper can be found’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso