Support

Home Forums Ticketing Add-on FPDF error: Some data has already been output, can't send PDF file (2)

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

Posted: October 22, 2014 at 12:06 am


ALAMESA, S.L. Ernesto Gallud

October 22, 2014 at 12:06 am

Here is the url:
http://www.nutricionpractica.org/?download_invoice=true&attendee_id=9&r_id=1-54442672afa5b

I have no modified the invoice template.
My wp-config says: define(‘WP_DEBUG’, false);

Any help with this? Im running other site and works fine, here i cant make it work…

Thank you in advance !

  • This topic was modified 9 years, 5 months ago by  Josh.
  • This topic was modified 4 years, 1 month ago by  Garth.


Tony

  • Support Staff

October 22, 2014 at 1:23 am

Hi,

If you enable WP_DEBUG do you see any other errors on that page?


ALAMESA, S.L. Ernesto Gallud

October 22, 2014 at 8:12 pm

When i enable debug, this is the message:

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /srv/www/nutricionpractica.org/www/wp-content/plugins/espresso-requirements-check/espresso_requirements_check.php on line 108

Warning: file_get_contents(http://www.nutricionpractica.org/wp-content/themes/Divi/style.css) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /srv/www/nutricionpractica.org/www/wp-content/plugins/espresso-requirements-check/espresso_requirements_check.php on line 108

Notice: Undefined index: HTTP_MOD_REWRITE in /srv/www/nutricionpractica.org/www/wp-content/plugins/espresso-requirements-check/espresso_requirements_check.php on line 146
FPDF error: Some data has already been output, can’t send PDF file


Lorenzo Orlando Caum

  • Support Staff

October 22, 2014 at 8:15 pm

Hi,

Could you go ahead and deactivate the requirements plugin? It is only needed to check your site to see if it compatible with Event Espresso.


Lorenzo


ALAMESA, S.L. Ernesto Gallud

October 23, 2014 at 1:18 pm

I’ve deactivated the plugin and the error is the same:
FPDF error: Some data has already been output, can’t send PDF file

any help?

No more messages if i activate debug mode…


Lorenzo Orlando Caum

  • Support Staff

October 23, 2014 at 1:35 pm

Hi,

Have you already tried testing with only Event Espresso running and your other plugins temporarily deactivated?

Does the issue continue?

The following macro may help. Turn debugging off through your wp-config.php and add the follow macro just below it:

define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);


Lorenzo


ALAMESA, S.L. Ernesto Gallud

October 23, 2014 at 6:35 pm

I tried. Nothing occurs. No new message if i deactivate all the plugins except event espresso, and the invoice doesnt show at all.

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

I added the coe in wp-config and no new message appears…

Any more help, please?


Lorenzo Orlando Caum

  • Support Staff

October 23, 2014 at 7:11 pm

Hi there,

Could you please create a temporary WordPress admin login and a temporary SFTP/FTP login so we can take a closer look at this issue?

Please share that temporary login through the secure link below:

https://eventespresso.com/send-login-details/

To prevent delays in troubleshooting, be sure to double check your information on the form before submitting.

The submit button for the form appears at the end of the form.

Again, please ensure that the temporary login works.

Thank you.


Lorenzo


ALAMESA, S.L. Ernesto Gallud

October 23, 2014 at 8:29 pm

Sent! Thank you!


Lorenzo Orlando Caum

  • Support Staff

October 24, 2014 at 12:12 pm

Thanks. I’ve sent a reply to your email.


Lorenzo


ALAMESA, S.L. Ernesto Gallud

October 27, 2014 at 8:21 pm

FPDF error: Some data has already been output, can’t send PDF file
Still the same error.
I talked with our host and there´s no debuggin on mode activated.

I need this problem to be resolved asap, we need to send invoices…

Thank you


Lorenzo Orlando Caum

  • Support Staff

October 28, 2014 at 9:56 am

Hi,

Sorry for the delay. I replied to this yesterday asking about some additional testing.


Lorenzo


ALAMESA, S.L. Ernesto Gallud

October 29, 2014 at 8:43 pm

Still not working…any help?

In my wp-config i have this lines of code:
define(‘WP_DEBUG’, false);
if (WP_DEBUG) {
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);
}


Dean

October 30, 2014 at 2:25 am

Hi,

define(‘WP_DEBUG’, false);
if (WP_DEBUG) {
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);
}

should read

define(‘WP_DEBUG’, true);
if (WP_DEBUG) {
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);
}

(the first line should be true not false).

That will allow error messages to show and also create a log file.


ALAMESA, S.L. Ernesto Gallud

November 5, 2014 at 2:56 pm

There were no spaces at all. I used a fpdf.php file that worked correctly in other site.

I found the solution including ob_clean(); just at the start of the php. Here’s the example:

<?php
/*******************************************************************************
* FPDF                                                                         *
*                                                                              *
* Version: 1.6                                                                 *
* Date:    2008-08-03                                                          *
* Author:  Olivier PLATHEY                                                     *
*******************************************************************************/
<strong>ob_clean();</strong>
define('FPDF_VERSION','1.6');

class Espresso_FPDF

The support post ‘FPDF error: Some data has already been output, can't send PDF file (2)’ 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