473,383 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Very Bizarre

This is very bizarre. Could someone else have a look at this? Maybe you
can see something I'm overlooking. Go here:

http://www.newsletters.forbes.com/en...n/deliver.php4

U: bugtest P: test

Enter 1 for "How many files in this delivery?" and select a file to
upload, in one of the listed formats. Scroll down and click "Test Email".

You should get

Cannot modify header information - headers already sent in
/usr/home/enpusr/enews/auth.php3 on line 49

Cannot modify header information - headers already sent by (output
started at /usr/home/enpusr/enews/auth.php3:49) in
/usr/www/users/enpusr/enews/admin/deliverx.php4 on line 83

There are a number of very weird things about this. First, auth.php3 is
used by every single page in the application, but only has a problem with
this one. Second, the second message is saying output started in
auth.php3 on line 49, but that's a header() call:

header("Set-Cookie: pk=$NewKey; path=/; domain=.$AuthDomain");

The third and most bizarre thing is if you omit the file count, this is
an application error, and deliverx.php4 processes it just fine -- it
makes it through auth.php3 and everything else.

And even more bizarre than that is the fact that this code has been
working fine for a long time, and I haven't changed anything.

Don't let the .php3 extension fool you, it's all PHP4; I just haven't
gotten around to changing some of the file extensions.

Any ideas?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #1
4 2148
"Alan Little" <al**@n-o-s-p-a-m-phorm.com> wrote in message
news:Xn**************************@216.196.97.132.. .
This is very bizarre. Could someone else have a look at this? Maybe you
can see something I'm overlooking. Go here:

http://www.newsletters.forbes.com/en...n/deliver.php4

U: bugtest P: test

Enter 1 for "How many files in this delivery?" and select a file to
upload, in one of the listed formats. Scroll down and click "Test Email".

You should get

Cannot modify header information - headers already sent in
/usr/home/enpusr/enews/auth.php3 on line 49

Cannot modify header information - headers already sent by (output
started at /usr/home/enpusr/enews/auth.php3:49) in
/usr/www/users/enpusr/enews/admin/deliverx.php4 on line 83

There are a number of very weird things about this. First, auth.php3 is
used by every single page in the application, but only has a problem with
this one. Second, the second message is saying output started in
auth.php3 on line 49, but that's a header() call:

header("Set-Cookie: pk=$NewKey; path=/; domain=.$AuthDomain");


No, it said "headers already sent" in auth.php3 on line 49... and then you
demonstrated exactly that.

The second message indicates the error occurred on line 83 of deliverx.php4.
What does that line look like?

- Virgil
Jul 17 '05 #2
Carved in mystic runes upon the very living rock, the last words of
Virgil Green of comp.lang.php make plain:
"Alan Little" <al**@n-o-s-p-a-m-phorm.com> wrote in message
news:Xn**************************@216.196.97.132.. .
This is very bizarre. Could someone else have a look at this? Maybe
you can see something I'm overlooking. Go here:

http://www.newsletters.forbes.com/en...n/deliver.php4

U: bugtest P: test

Enter 1 for "How many files in this delivery?" and select a file to
upload, in one of the listed formats. Scroll down and click "Test
Email".

You should get

Cannot modify header information - headers already sent in
/usr/home/enpusr/enews/auth.php3 on line 49

Cannot modify header information - headers already sent by (output
started at /usr/home/enpusr/enews/auth.php3:49) in
/usr/www/users/enpusr/enews/admin/deliverx.php4 on line 83

There are a number of very weird things about this. First, auth.php3
is used by every single page in the application, but only has a
problem with this one. Second, the second message is saying output
started in auth.php3 on line 49, but that's a header() call:

header("Set-Cookie: pk=$NewKey; path=/; domain=.$AuthDomain");

No, it said "headers already sent" in auth.php3 on line 49... and then
you demonstrated exactly that.


Yes, but the second error says that's where output started.
The second message indicates the error occurred on line 83 of
deliverx.php4. What does that line look like?


It's a Location: header

header("Location: deliver.php4?err=10");

Something I just noticed is that it's trying to generate an "invalid file
format" error, which should not be happening, as I'm uploading a PDF
file, which is valid. So, more weirdness.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #3
Carved in mystic runes upon the very living rock, the last words of Alan
Little of comp.lang.php make plain:
This is very bizarre. Could someone else have a look at this? Maybe
you can see something I'm overlooking. Go here:


It turned out that something had gone funny with the way the web server
was handling file uploads; apparently it was dumping part of the file
into the response, or something. I don't know. It was the client who put
me onto the solution, actually. He noticed that there was another upload
page that was giving the same error, and said, "Looks like it has
something to do with file uploads." I then noticed that PHP was giving a
UPLOAD_ERR_PARTIAL error. On a hunch I had the ops people restart the
http daemon, and it straightened right out.

Still, a very bizarre error.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #4
On Thu, 10 Jun 2004 11:41:33 -0500, Alan Little
<al**@n-o-s-p-a-m-phorm.com> wrote:
Carved in mystic runes upon the very living rock, the last words of
Virgil Green of comp.lang.php make plain:
"Alan Little" <al**@n-o-s-p-a-m-phorm.com> wrote in message
news:Xn**************************@216.196.97.132.. .
This is very bizarre. Could someone else have a look at this? Maybe
you can see something I'm overlooking. Go here:

http://www.newsletters.forbes.com/en...n/deliver.php4

U: bugtest P: test

Enter 1 for "How many files in this delivery?" and select a file to
upload, in one of the listed formats. Scroll down and click "Test
Email".

You should get

Cannot modify header information - headers already sent in
/usr/home/enpusr/enews/auth.php3 on line 49

Cannot modify header information - headers already sent by (output
started at /usr/home/enpusr/enews/auth.php3:49) in
/usr/www/users/enpusr/enews/admin/deliverx.php4 on line 83

There are a number of very weird things about this. First, auth.php3
is used by every single page in the application, but only has a
problem with this one. Second, the second message is saying output
started in auth.php3 on line 49, but that's a header() call:

header("Set-Cookie: pk=$NewKey; path=/; domain=.$AuthDomain");


No, it said "headers already sent" in auth.php3 on line 49... and then
you demonstrated exactly that.


Yes, but the second error says that's where output started.


The "output" in this case is the first error message.

--
David ( @priz.co.uk )
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: mamo74 | last post by:
Hello. I am administering a SQL Server (Enterprise Edition on Windows 2003) from some month and can't understand what is going on in the latest week (when the db grow a lot). The DB is around...
11
by: Frances Del Rio | last post by:
this is so bizarre, and don't even know if this is right place to ask, but don't know where else: about two days I changed webhosting, changed DNS for my domain, francesdelrio.com, now when I...
1
by: Richard | last post by:
Here's a Bizarre one: I have a C# service program. The service registers and runs fine on one machine but when I copy the EXE to a second machine and try to use InstallUtil to register the...
11
by: wASP | last post by:
Hi, I've got a pair of int properties in a class. The properties in question are indexing values - but that's not relevant to my problem - or it's just symptomatic ... sort of. They are...
1
by: Michael Carr | last post by:
I have created a website that responds to the following two domain names: logintest.carr-engineering.com logintest.onualumni.org If you open either of these websites on their own, everything...
1
by: zoehart | last post by:
I'm working with VBScript to build a text email message. I'm seeing a variety of bizarre formatting issues. The following lines of code MT = MT & vbCrLf & "Card Type: " & CardType MT = MT &...
0
by: ckfan.painter | last post by:
I've run into a seemingly bizarre problem with insert() for std::vector. (This was done on Microsoft Visual C++ 2005 express version 8...maybe it is a compiler specific bug?) Here's the code: ...
52
by: robert | last post by:
I'm very pleased to announce that Foundations of F#, the first book to be published on the F# programming, will finish its first printing run, tomorrow, Friday 25th May. It should reach any...
6
by: maya | last post by:
hi, http://www.mayacove.com/design/nav/nav.html this dynamic menu is working fine in FF and IE7, but in IE6 can only test in that "stand-alone" IE6...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.