View Issue Details

IDProjectCategoryView StatusLast Update
0003196OXID eShop (all versions)2. ----- eShop backend (admin) -----public2012-12-07 13:59
Reporterdklingmann Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformLinuxOSDebian LennyOS Version-
Product Version4.5.0 revision 34568 
Fixed in Version4.5.2 revision 38481 
Summary0003196: AJAX call to change variant fails
Descriptionwhen trying to select a variant on an article detail view I get the article view replaced by 'undefined' and a HTML response as following:

Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time. in /admin/oxajax.php on line 690

Warning: Cannot modify header information - headers already sent by (output started at /admin/oxajax.php:690) in admin/oxajax.phpon line 717


Line 690 in this case is:

688: ini_set('session.name', 'sid' ); 689: ini_set('session.use_cookies', 0 );
690: ini_set('session.use_trans_sid', 0);
691: ini_set('url_rewriter.tags', '');
692: ini_set('magic_quotes_runtime', 0);

This practically makes the variant selector unusable. I would appreciate any help.
TagsAJAX
ThemeBoth
BrowserGoogle Chrome
PHP Version5.2.6
Database Version5.5

Activities

birute_meilutyte

2011-08-31 10:15

reporter   ~0005151

Reminder sent to: dklingmann

Hello,

just to be sure, you try to select variant in frontend products details page, or in admin products details Main tab?
Also, could you please let us know, if you experience same problem on our demoshop? http://demoshop.oxid-esales.com/professional-edition/

greetings,

dklingmann

2011-08-31 11:11

reporter   ~0005153

Hi there,

well I talk about the variant selector in the frontend. When I try to comment out those lines the AJAX request seems to be stuck in an infinite loop of index.php location redirects.

The problem is not occuring in any of the demo shops.

Cheers

Reignman

2011-08-31 12:08

reporter   ~0005154

We experince exactly the same Problem on one Webserver.
But we use the same code on other Servers and dont have any Problems.

On this Server we use php 5.3.6

I compared the php.ini settings with working servers but no differences except in the session saving path.

but for me it really looks like a Webserver configuartion problem.

any help appreciated

birute_meilutyte

2011-08-31 13:49

reporter   ~0005156

@developers: please investigate

dainius.bigelis

2011-09-05 13:44

reporter   ~0005174

Reminder sent to: dklingmann, Reignman

Hi,

Could you please give us access to your server (or any test environment where you also can reproduce this issue) where we could debug this case? As we cannot reproduce that localy.
If you can - please send email to our support ([email protected]) with access info and link to this bug entry.

Best regards,

dklingmann

2011-09-08 13:13

reporter   ~0005190

We upgraded from 4.5.0 to 4.5.2 and the variant selector seems to work now although the update broke a lot of other stuff...

dainius.bigelis

2011-09-09 10:05

reporter   ~0005192

Reminder sent to: dklingmann

Hi,

Thanks for feedback that the case works in 4.5.2.
And please - write all the issues what you experienced after update as bug entries and we will investigate these.

Best regards,

dklingmann

2011-09-09 11:03

reporter   ~0005194

HA! I think I found the problem.

The AJAX request seems to fail when the x-requested-with header in the AJAX request is set to XMLHTTPRequest. Removing the request header in oxajax.js with

$.ajaxSettings.beforeSend=function(xhr){
      xhr.setRequestHeader('X-Requested-With', {toString: function(){ return ''; }});
};

resolved our problems. I don't know exactly why it did resolve it but yea, that's how it works for us.

arvydas_vapsva

2011-09-15 13:11

reporter   ~0005217

Reminder sent to: dklingmann

Shop has no special behaviour in "XMLHttpRequest" case, so your problem may be related to server configuration, custom modules or third party software you use on server. If you could provide us access data we could review issue. I would not like to include your fix in shop install without knowing real reason why it happens. Could you setup some test environment?

dklingmann

2011-09-15 13:16

reporter   ~0005218

Current project is still in confidential state so we can't provide any access. We might be able to setup a test environment but probably not this month as time is currently only sparingly available.

arvydas_vapsva

2011-09-15 13:26

reporter   ~0005219

Reminder sent to: dklingmann

so please, when you will be able to give us test environmen - reopen this bug entry, thnx, nom i'm closing it with status "cant reproduce"!

arvydas_vapsva

2011-09-15 13:27

reporter   ~0005220

p.s. /admin/oxajax.php has no connection with variant selector in details page