Support

Home Forums Event Espresso Premium FPDF error: Some data has already been output, can't send PDF file

FPDF error: Some data has already been output, can't send PDF file

Posted: June 3, 2014 at 7:51 am


Robert Smith

June 3, 2014 at 7:51 am

I know this has been posted before.
A.) We have not modified the invoice template.
B.) I checked for leading spaces in the file
C.) We are using a ‘p’ version of the code Version 3.1.36.5.P.

Any other thoughts on what I need to do to fix this?


Josh

  • Support Staff

June 3, 2014 at 8:11 am

Hi Robert,

Can you check to see if WP_DEBUG is set to ‘true’? If it is, you will need to turn wp_debug off in order for the FPDF functions to process through. The same effect can happen if the server is set to have error_display turned on. In either case, these should be set write debugging to log files, not display them on a production site.


Robert Smith

June 3, 2014 at 9:46 am

Where do I need to look for that? I’m figuring that since I don’t know where it is, it’s set to false… unless ‘on’ is default.


Josh

  • Support Staff

June 3, 2014 at 10:16 am

The wp-config.php file defines WP_DEBUG. Here are some links to the WordPress codex that explain further:

http://codex.wordpress.org/Debugging_in_WordPress

http://codex.wordpress.org/Editing_wp-config.php#Debug

While this is set to false as its default, some hosts will turn on PHP error display assuming that the site starts off under development, with the idea that the developer will turn off error display when the development is finished.

You can contact your host to ask them if error display is turned on, or even try adding this line of code to your wp-config.php file:

@ini_set('display_errors',0);


Robert Smith

June 3, 2014 at 11:00 am

I added the code to the wp_config.php, I am still receiving the error. Any other thoughts?


Josh

  • Support Staff

June 3, 2014 at 11:12 am

No other thoughts, but you should contact your host to see if error display is turned on.


Robert Smith

June 3, 2014 at 11:25 am

Inside php.ini, display_errors is off.


Lorenzo Orlando Caum

  • Support Staff

June 3, 2014 at 5:48 pm

Hi there Robert,

Does it work if you temporarily switch the site to defaults?


Lorenzo

The support post ‘FPDF error: Some data has already been output, can't send PDF file’ 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  Lorenzo Orlando Caum 5 years, 6 months ago ago

Topic Tags

Tagged: , ,

Notifications

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