You are here:  »  Warning: Cannot modify header information - headers already sent by feeds_import.php on line 31


Warning: Cannot modify header information - headers already sent by feeds_import.php on line 31

Submitted by TWDesigns on Wed, 2010-04-28 01:41 in

All of a sudden I am getting this error when importing feeds. Does anyone know what causes it. I am starting over from a fresh install to see if I can troubleshoot it.

Submitted by support on Wed, 2010-04-28 08:16

Hi,

This error means that the header() function to redirect the page back the /admin/ home page after import has completed cannot take place because something has already generated output.

The most common cause is that some white space (space characters or new lines) have crept in to your config.php file; so these are being output by PHP as page content and preventing header() from working.

Open your config.php file into your text editor, and double-check that there is nothing at all outside of the PHP tags (<?php at the beginning and ?> at the end) - that should be all it is...

Cheers,
David.

Submitted by TWDesigns on Thu, 2010-04-29 00:22

Thank you!

Submitted by koen on Sun, 2014-04-13 13:01

Hi David,

I suddenly have this error:
Warning: Cannot modify header information - headers already sent by {code saved} [Duplicate entry 'ffb394d801ae40a25fc1b7f6b28462cf' for key 'dupe_filter'] etc...

I've used the FeedAnalyser, but the products named in the error are not the ones that appear in the "duplicate" output from the analyser.
Can you please help me on this?

Thanks,
Koen

Submitted by support on Sun, 2014-04-13 18:23

Hello Koen,

All that is, is that database debug mode is still enabled - presumably from when working on previous modifications, and there now happes to be a duplicate product entry (which triggers an "intentional" database error, by way of how the duplicate prevention mechanism works using a unique key on the database).

If you edit config.advanced.php and change line 6 back to:

  $config_databaseDebugMode = FALSE;

...import / CRON should then complete without any issues.

Cheers,
David.
--
PriceTapestry.com