Support

Home Forums Event Espresso Premium PDF invoice problem with logo

PDF invoice problem with logo

Posted: June 13, 2014 at 1:08 pm

Viewing 11 reply threads


Tim Monk

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
FPDF error: Missing or incorrect image file: http://vpma-spvs-events.co.uk/images/events-invoice.jpg

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


Lorenzo Orlando Caum

  • Support Staff

June 13, 2014 at 2:04 pm

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.


Lorenzo


Tim Monk

June 13, 2014 at 3:12 pm

OK have done this now – does this enable more investigations?


Lorenzo Orlando Caum

  • Support Staff

June 13, 2014 at 4:14 pm

Is the php warning still appearing?


Lorenzo


Tim Monk

June 13, 2014 at 4:24 pm

Hi Lorenzo

Yes – clicking the ‘download pdf’ from the email opens web browser. Displays this 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
FPDF error: Missing or incorrect image file: http://vpma-spvs-events.co.uk/images/events-invoice.jpg

If I remove the logo link from the invoice payment option, invoice will download ok but without the logo of course.

T


Lorenzo Orlando Caum

  • Support Staff

June 13, 2014 at 4:50 pm

Could you swap in an alternative image and try again?


Lorenzo


Tim Monk

June 16, 2014 at 10:12 am

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


Lorenzo Orlando Caum

  • Support Staff

June 16, 2014 at 1:09 pm

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.


Lorenzo


Tim Monk

June 16, 2014 at 2:36 pm

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.


Tony

  • Support Staff

June 17, 2014 at 6:45 am

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.


Tim Monk

June 18, 2014 at 11:53 am

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.


Lorenzo Orlando Caum

  • Support Staff

June 18, 2014 at 12:39 pm

Hi Tim, please keep us updated. I’m interested to know what is causing this.


Lorenzo


Tim Monk

July 4, 2014 at 3:15 am

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?
Just added www to the logo url in the control panel and it works!! Ugh! Worked ok before, server must have done something. Thanks anyway.


Dean

July 4, 2014 at 6:03 am

Hi Tim,

Thanks for sharing the fix. I assume I can mark this thread as resolved now?

Viewing 11 reply threads

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.

Event Espresso