Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't figure this one out


acicorp

Recommended Posts

Hello,

 

Woudl anyone have any idea what would cause this error? Warning: Cannot add header information - headers already sent by (output started at /home/u1/acicorp2/html/shop/admin/includes/application_top.php:526) in /home/u1/acicorp2/html/shop/admin/includes/functions/general.php on line 18

 

My developer is working on it but maybe the blind leading the blind. It seems I have to log in twice at the admin section, not normal. Any ideas would be much appreciated.

 

Thanks,

Rick

Link to comment
Share on other sites

I hope you're not paying your developer alot of money :D

 

do a search and thou shall find...

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

This is a common error. A search on headers would show you multiple answers to this. Basically, you have extra whitespace either before or after the first or last <php or php?> tag. Open application_top and delete any whitespace at the beginning of the file or end of the file and it should work. I'd also check the references of your "developer" as anyone who has ever had any experience with PHP should be aware of this issue with PHP.

Link to comment
Share on other sites

:? Sir,

 

Thank you for that information, but I failed to mention that the pages work, I can add products, manufacturers, etc.. but I get this error instead of the next page that should follow after hitting the incert, upload, submit, etc. button. I will search for header problems to see if I can get closer to the problem. What is also weird that just started is I have to log in twice to my admin panel, that never did that before.

 

Best,

Rick

Link to comment
Share on other sites

Yes, that's exactly what would happen. I think your problem is in general.php though. There's a complicated reason as to why this happens, something about headers being terminated at the whitespace, then a request for headers again that terminates abnormally, which causes the error. The error would only occur when you try to call the file that has the extra whitespace in it. if you really want to know the technical info behind it, check php.net, there's a lengthy description of the error there.

Link to comment
Share on other sites

Thanks for the help but what would I search for?

 

Warning: Headers etc..

 

But Aragorn127 is right... the error allready mentions the solution:

at line 526 in the file home/u1/acicorp2/html/shop/admin/includes/application_top.php

there is "html" output started (by whitespace, hard return etc). Because of this the actual header can not be send correctly, hence your scripts start acting funny.

 

Remove them and try again. Also make sure you upload your php scripts as ASCII, not as BINARY.

 

PS Nice girl friend

 

It's a HE :D

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

:lol:

 

Thank you sir that was the answer my developer was looking for. I owe you one, maybe you would be interested in extra work?

 

Rick

 

Tell your developer to use our FAQ section - it has been in there for years.

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...