Posted: June 13, 2014 at 1:08 pm
|
Seen several topics on this but none seem to resolve issue. Been running EE for over a year now and has been stable. Today noticed pdf error with logo. Getting message: Warning: getimagesize(http://vpma-spvs-events.co.uk/images/events-invoice.jpg) [function.getimagesize]: failed to open stream: Permission denied in /home/www/vpma-spvs-events.co.uk/wp-content/plugins/event-espresso/class/fpdf/fpdf.php on line 1208 Have checked for server issues and can confirm that “allow_url_fopen” is enabled. Only change on site is ecommerce plugin being tested – have had several spam registrations recently – have checked FTP and all files look to be ok. Any clues? Also tried placing the logo file on another URL completely. Thanks |
Hi Tim, Could you turn off WordPress debugging through your wp-config.php file? define('WP_DEBUG', false); if (WP_DEBUG) { define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', true); @ini_set('display_errors', 0); } The macro above should replace any existing WPdebugging macros and the middle of the wp-config.php file is a safe location to add it. — |
|
|
OK have done this now – does this enable more investigations? |
Is the php warning still appearing? — |
|
|
Hi Lorenzo Yes – clicking the ‘download pdf’ from the email opens web browser. Displays this message: If I remove the logo link from the invoice payment option, invoice will download ok but without the logo of course. T |
Could you swap in an alternative image and try again? — |
|
|
Hi Lorenzo – back on this again now. Tried a different file completely but that hasn’t worked – also disabled plugins – no change. Have had to remove the logo link completely from the payment option to allow the pdf to be created. Any more ideas? Tim |
Hi Tim, Could you check with your host to see if allow_url_fopen is set to on? This is usually set in the php.ini file. Also, could you go to this link on your site: http://vpma-spvs-events.co.uk/wp-admin/options.php …and check for the following setting: https://monosnap.com/image/dsIblhxwExCSnzxVGhnPypGprbnKPv If it is blank or set to something else, please change it to file as shown in the screenshot above and save changes. — |
|
|
Have checked with the host allow_url_fopen is set to on, see: redacted – loc image default link is set to file – just linked pdf to logo again to test and still getting error.
|
Hi Tim, Does your host provide hotlink protection? If so try disabling that. If they are checking which User Agent is requesting the image they may be blocking anything other than a known browser. You may want to issue a ticket with your hosting to investigate this. |
|
|
Hi Tony – have raised this with hosts. Hotlink is offered but it is not running on this domain. Have also asked if they have implemented any other security recently. Weird, as it was working well for over a year. |
Hi Tim, please keep us updated. I’m interested to know what is causing this. — |
|
|
Hi Lorenzo – been working on this on and off also with other plugin support to see if there were any conflicts. Know what it was? |
|
Hi Tim, Thanks for sharing the fix. I assume I can mark this thread as resolved now? |
The support post ‘PDF invoice problem with 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.