From: Sunil J. <pav...@gm...> - 2007-12-30 18:54:28
|
Hi, I am trying to integrate phpESP into the oscommerce shopping cart, and everything seems to be working fine, except, when I hit the "Submit Survey" button, I get the following error message---------- *Warning*: Cannot modify header information - headers already sent by (output started at /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/languages/english/zermattsurvey2.php:20) in * /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/phpESP/public/phpESP.first.php * on line*60* --------------- I wonder if some one has any idea on how to get rid of this error message. Appreciate your help pavansut -- http://www.jayateas.com PREMIUM TEAS FROM THE HIGHLANDS OF INDIA |
From: Franky V. L. <lie...@te...> - 2007-12-30 19:03:24
|
On Sun, 30 Dec 2007 13:54:31 -0500 "Sunil Joshi" <pav...@gm...> wrote: > Hi, I am trying to integrate phpESP into the oscommerce shopping > cart, and everything seems to be working fine, except, when I hit the > "Submit Survey" button, I get the following error message---------- > *Warning*: Cannot modify header information - headers already sent by > (output started at > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/languages/english/zermattsurvey2.php:20) > in * > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/phpESP/public/phpESP.first.php > * on line*60* > --------------- > > I wonder if some one has any idea on how to get rid of this error > message. > > Appreciate your help > > pavansut well, I don't know oscommerce very well, but I did quite a bit of work to make this kind of thing possible. Have you looked at the examples? You should include public/phpESP.first.php before any output happens, as the session initializes there. This can probably be fixed by just moving that include higher up in whatever file you're including it in. Btw: are you using the latest version (2.0.2 as of today :) )? Franky |
From: Sunil J. <pav...@gm...> - 2007-12-30 23:14:26
|
On Dec 30, 2007 6:13 PM, Sunil Joshi <pav...@gm...> wrote: > Franky, thanks for your reply. I have it declared right at the top, but > still the same issue. I am using 2.0.1. Could that be the issue? > P > > > On Dec 30, 2007 2:00 PM, Franky Van Liedekerke <lie...@te...> > wrote: > > > On Sun, 30 Dec 2007 13:54:31 -0500 > > "Sunil Joshi" <pav...@gm...> wrote: > > > > > Hi, I am trying to integrate phpESP into the oscommerce shopping > > > cart, and everything seems to be working fine, except, when I hit the > > > "Submit Survey" button, I get the following error message---------- > > > *Warning*: Cannot modify header information - headers already sent by > > > (output started at > > > > > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/languages/english/zermattsurvey2.php:20) > > > in * > > > > > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/phpESP/public/phpESP.first.php > > > > > * on line*60* > > > --------------- > > > > > > I wonder if some one has any idea on how to get rid of this error > > > message. > > > > > > Appreciate your help > > > > > > pavansut > > > > well, I don't know oscommerce very well, but I did quite a bit of work > > to make this kind of thing possible. Have you looked at the examples? > > You should include public/phpESP.first.php before any output happens, > > as the session initializes there. This can probably be fixed by just > > moving that include higher up in whatever file you're including it in. > > Btw: are you using the latest version (2.0.2 as of today :) )? > > > > Franky > > > > > > -- > http://www.jayateas.com > PREMIUM TEAS FROM THE HIGHLANDS OF INDIA > -- http://www.jayateas.com PREMIUM TEAS FROM THE HIGHLANDS OF INDIA |
From: Franky V. L. <lie...@te...> - 2007-12-30 23:34:12
|
Well, upgrading wouldn't mind, but if it doesn't work, the issue must be somewhere else. This error means that /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/languages/english/zermattsurvey2.php already sends something to the browser (starting on line 20) before phpESP.first.php gets included (which starts a session if not already started and sends a cookie) Looking quickly at oscommerce, I suggest you include it in the file catalog/includes/application_top.php (maybe at the bottom of that file) and try again. Franky On Sun, 30 Dec 2007 18:14:29 -0500 "Sunil Joshi" <pav...@gm...> wrote: > On Dec 30, 2007 6:13 PM, Sunil Joshi <pav...@gm...> wrote: > > > Franky, thanks for your reply. I have it declared right at the > > top, but still the same issue. I am using 2.0.1. Could that be > > the issue? P > > > > > > On Dec 30, 2007 2:00 PM, Franky Van Liedekerke <lie...@te...> > > wrote: > > > > > On Sun, 30 Dec 2007 13:54:31 -0500 > > > "Sunil Joshi" <pav...@gm...> wrote: > > > > > > > Hi, I am trying to integrate phpESP into the oscommerce shopping > > > > cart, and everything seems to be working fine, except, when I > > > > hit the "Submit Survey" button, I get the following error > > > > message---------- *Warning*: Cannot modify header information - > > > > headers already sent by (output started at > > > > > > > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/languages/english/zermattsurvey2.php:20) > > > > in * > > > > > > > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/phpESP/public/phpESP.first.php > > > > > > > * on line*60* > > > > --------------- > > > > > > > > I wonder if some one has any idea on how to get rid of this > > > > error message. > > > > > > > > Appreciate your help > > > > > > > > pavansut > > > > > > well, I don't know oscommerce very well, but I did quite a bit of > > > work to make this kind of thing possible. Have you looked at the > > > examples? You should include public/phpESP.first.php before any > > > output happens, as the session initializes there. This can > > > probably be fixed by just moving that include higher up in > > > whatever file you're including it in. Btw: are you using the > > > latest version (2.0.2 as of today :) )? > > > > > > Franky > > > > > > > > > > > -- > > http://www.jayateas.com > > PREMIUM TEAS FROM THE HIGHLANDS OF INDIA > > > > > |
From: Sunil J. <pav...@gm...> - 2007-12-31 04:20:22
|
That almost did the trick. The error has gone away in the survey pages, but now a new error has come up which is Notice: Undefined index: profile in /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/application_bottom.php on line 15 I think this may have something to do with having to define the phpesp.first.php file. Will need to do some more research.. Thanks! -P On Dec 30, 2007 6:31 PM, Franky Van Liedekerke <lie...@te...> wrote: > Well, upgrading wouldn't mind, but if it doesn't work, the issue must > be somewhere else. > This error means that > > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/languages/english/zermattsurvey2.php > already sends something to the browser (starting on line 20) before > phpESP.first.php gets included (which starts a session if not already > started and sends a cookie) > Looking quickly at oscommerce, I suggest you include it in the file > catalog/includes/application_top.php (maybe at the bottom of that file) > and try again. > > Franky > > On Sun, 30 Dec 2007 18:14:29 -0500 > "Sunil Joshi" <pav...@gm...> wrote: > > > On Dec 30, 2007 6:13 PM, Sunil Joshi <pav...@gm...> wrote: > > > > > Franky, thanks for your reply. I have it declared right at the > > > top, but still the same issue. I am using 2.0.1. Could that be > > > the issue? P > > > > > > > > > On Dec 30, 2007 2:00 PM, Franky Van Liedekerke <lie...@te...> > > > wrote: > > > > > > > On Sun, 30 Dec 2007 13:54:31 -0500 > > > > "Sunil Joshi" <pav...@gm...> wrote: > > > > > > > > > Hi, I am trying to integrate phpESP into the oscommerce shopping > > > > > cart, and everything seems to be working fine, except, when I > > > > > hit the "Submit Survey" button, I get the following error > > > > > message---------- *Warning*: Cannot modify header information - > > > > > headers already sent by (output started at > > > > > > > > > > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/languages/english/zermattsurvey2.php:20) > > > > > in * > > > > > > > > > > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/phpESP/public/phpESP.first.php > > > > > > > > > * on line*60* > > > > > --------------- > > > > > > > > > > I wonder if some one has any idea on how to get rid of this > > > > > error message. > > > > > > > > > > Appreciate your help > > > > > > > > > > pavansut > > > > > > > > well, I don't know oscommerce very well, but I did quite a bit of > > > > work to make this kind of thing possible. Have you looked at the > > > > examples? You should include public/phpESP.first.php before any > > > > output happens, as the session initializes there. This can > > > > probably be fixed by just moving that include higher up in > > > > whatever file you're including it in. Btw: are you using the > > > > latest version (2.0.2 as of today :) )? > > > > > > > > Franky > > > > > > > > > > > > > > > > -- > > > http://www.jayateas.com > > > PREMIUM TEAS FROM THE HIGHLANDS OF INDIA > > > > > > > > > > -- http://www.jayateas.com PREMIUM TEAS FROM THE HIGHLANDS OF INDIA |
From: Franky V. L. <lie...@te...> - 2007-12-31 08:11:31
|
On Sun, 30 Dec 2007 23:20:25 -0500 "Sunil Joshi" <pav...@gm...> wrote: > That almost did the trick. The error has gone away in the survey > pages, but now a new error has come up which is > > Notice: Undefined index: profile in > /mnt/w0506/d37/s14/b02cd23b/www/zermattgarments/catalog/includes/application_bottom.php > on line 15 > > > I think this may have something to do with having to define the > phpesp.first.php file. Will need to do some more research.. > > > Thanks! > > > -P wel, I'll say it again: php notices are *not* errors, but anyway: they shouldn't occur (and you shouldn't display php errors/notices of any kind in the browser, only log them into files to prevent path disclosures). In my version of oscommerce (2.2rc1), I don't have anything in application_bottom.php that refers to profile, maybe that was an old error in oscommerce that got fixed? Franky |