View Issue Details

IDProjectCategoryView StatusLast Update
0001182OXID eShop (all versions)2. ----- eShop backend (admin) -----public2009-09-08 09:29
ReporterMBa Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.4 revision 21266 
Fixed in Version4.1.6 revision 22740 
Summary0001182: clear cache of categorys displays 'headers already sent'
DescriptionIf I use in
admin->categories->Re-Index Category Tree
I got a error message:
'headers already sent'

This problem is since 21266.
Additional InformationI found following changes between 19188 and 21266.
views/oxshopcontrol.php

from:
// show output
//ob_Start("gzip");
echo ( $sOutput );

to:
// show output
//ob_Start("gzip");

// #M1047 Firefox duplicated GET fix
header("Content-Type: text/html; charset=".oxLang::getInstance()->translateString( 'charset' ));
echo ( $sOutput );
TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Relationships

child of 0001047 resolvedalfonsas_cirtautas Firefox doubles HTTP request 

Activities

dainius.bigelis

2009-08-10 15:43

reporter   ~0001391

Reminder sent to: MBa

Hi,

Sorry, but we cannot reproduce this case localy. Maybe there are some additional changes in templates or environment on your local shop? Maybe there are some modules installed, which may affect such behavior?
Could you please try the same case on our demoshops at:
http://demoshop.oxid-esales.com/professional-edition
http://demoshop.oxid-esales.com/enterprise-edition

The change in the code named "#M1047 Firefox duplicated GET fix" was implemented as a workaround for FireFox bug (entry in our bugrack - 0001047).

Best regards,

MBa

2009-08-10 18:14

reporter   ~0001396

Last edited: 2009-08-10 18:27

I think, this is a question of the server, not of my installation.

I know, I had simular problems with an other application, on xampp it works great, but a normal productive configured webserver give me this message.
And the problem was the same like this, too.


> http://es2.php.net/manual/en/function.header.php
> Remember that header() must be called before any actual output is sent...

and if you take a look to the generated HTML of this Popup, you see, that there is output before the header.


This output is written in
/core/oxcategorylist.php:494

Ok, I can change my server configuration, but php.net says is a error and there many users who can't change the config on their server.

As a quick fix you can use output buffering. But better is to give the output of oxcategorylist.php:494 to the template.

Regards,
Markus

dainius.bigelis

2009-08-11 08:58

reporter   ~0001397

Last edited: 2009-08-11 08:59

@Developers: please check from the source code side if there is such situation when output is before the header. If there is - please implement some fix or consider about possible workaround (if it depends on server configuration), and check also in other places to make sure that there is no such behavior.
Also please take a look to the fix 0001047, which was implemented as a workaround to solve the harmfull bug in FireFox.

arvydas_vapsva

2009-08-19 13:58

reporter   ~0001448

Reminder sent to: MBa

can you give us phpinfo output? would like to check on similar environment you have

arvydas_vapsva

2009-08-24 09:55

reporter   ~0001490

Reminder sent to: MBa

Please give us phpinfo output

MBa

2009-08-24 10:46

reporter   ~0001493

Already done
> php_info.pdf.zip [^] (88,552 bytes) 08-21-09 20:12

arvydas_vapsva

2009-08-25 10:17

reporter   ~0001512

Last edited: 2009-08-25 15:50

configured local env. similar to yours and could not get similar problem. Maybe because my system runs on windows. Possibly some non oxid output comes before rendering page, and this causes header sending error. Can you have a look at popup generated html - maybe there is some extra space written or something what does not belong to shop?

arvydas_vapsva

2009-08-27 09:59

reporter   ~0001538

fixed

dainius.bigelis

2009-08-28 08:58

reporter   ~0001559

Attachment now has been deleted.