Hello,
I get the following errors when adding a feed:
__________________
(Click register)
Warning: Cannot modify header information - headers already sent by (output started at /home/jewelry/public_html/config.php:16) in /home/jewelry/public_html/admin/feeds_register_step2.php on line 68
(Click register and trial import)
Warning: Cannot modify header information - headers already sent by (output started at /home/jewelry/public_html/config.php:16) in /home/jewelry/public_html/admin/feeds_register_step2.php on line 72
(Click register and full import)
Warning: Cannot modify header information - headers already sent by (output started at /home/jewelry/public_html/config.php:16) in /home/jewelry/public_html/admin/feeds_register_step2.php on line 76
__________________
However, when I click "import" on the main admin menu (yes, "import" appears even after the error, I just get a blank page (with a URL like http://www.mysite.com/admin/feeds_import.php?filename=10310.txt)... and then this error:
"Warning: Cannot modify header information - headers already sent by (output started at /home/jewelry/public_html/config.php:16) in /home/jewelry/public_html/admin/feeds_import.php on line 29"
Not so reassuringly, after all this it registers that there are a number of products listed and 0 clicks. But, I can't do anything like add feeds, because "Changes are not applied until the feed is imported!".
I'm completely lost now. I haven't changed anything in the admin section and have followed the installation instructions.
Any help would be greatly appreciated - cheers.
Hi Harvey,
All this means is that some blank lines have crept onto the end of your config.php file.
PHP starts to send output whenever there is a new-line character outside of the PHP tags; so look for any returns and delete them where i've marked below:
<?php
$config_title = "Mysite.com - the jewelry search engine";
$config_charset = "";
$config_baseHREF = "/";
$config_useRewrite = true;
$config_useTracking = true;
$config_useJavaScript = true;
$config_useInteraction = true;
$config_currencyHTML = "USD";
$config_resultsPerPage = 10;
$config_databaseServer = "Removed!";
$config_databaseUsername = "Removed!";
$config_databasePassword = "Removed!";
$config_databaseName = "Removed!";
$config_databaseTablePrefix = "";
?>
<---- DELETE ANY EXTRA BLANK LINES HERE
Cheers!
David.
David, thanks so much for the quick and great support!
Worked a treat :)
PS:
Just got the shock of my life to see despite all the above, everything was imported successfully (it seems).
But I also get the following error when clicking a "jump" link:
Warning: Cannot modify header information - headers already sent by (output started at /home/jewelry/public_html/config.php:16) in /home/jewelry/public_html/jump.php on line 14
Something seems to be going on with the config file. To make things a bit easier, I've pasted it below:
<?php
$config_title = "Mysite.com - the jewelry search engine";
$config_charset = "";
$config_baseHREF = "/";
$config_useRewrite = true;
$config_useTracking = true;
$config_useJavaScript = true;
$config_useInteraction = true;
$config_currencyHTML = "USD";
$config_resultsPerPage = 10;
$config_databaseServer = "Removed!";
$config_databaseUsername = "Removed!";
$config_databasePassword = "Removed!";
$config_databaseName = "Removed!";
$config_databaseTablePrefix = "";
?>