Home Forums Event Espresso Premium PHP Error relating to logo

PHP Error relating to logo

Posted: April 3, 2019 at 2:08 pm


April 3, 2019 at 2:08 pm

We are receiving the following message in our site error log (slightly modified with our site name and exact file path removed):

PHP Warning: getimagesize( failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 499

We have tried updating the logo, new file name, new copy, updating through EE interface settings, etc. Have also verified that it does load directly in the browser.

Any suggestions for what to look for or try?


  • Support Staff

April 3, 2019 at 2:44 pm


The PHP warning you’re seeing is caused by a server setting where allow_url_fopen is disabled. You could contact your web host to see if they can change the server settings so allow_url_fopen is activated.

If that’s not a viable option what you could do is go to Event Espresso > Messages > Default Message Templates and edit the Invoice template and change the way it gets the logo image. The default invoice template uses [INVOICE_LOGO] to output the logo image. You can remove that shortcode and replace with another shortcode to just get the URL and wrap the URL in an image tag, like so:
<img class="logo screen" src="[INVOICE_LOGO_URL]" width="300px" alt="logo" />

You might need to change the image size in the above to suit your needs.

The support post ‘PHP Error relating to logo’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 10 months, 3 weeks ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!