header output errors on my own module (Solved)

dleaberr1

Joined: 2005-03-17
Posts: 14
Posted: Thu, 2005-03-17 22:07

bharat solved the problem for me on IRC a few minutes after posting. I had some spaces after my ending ?>. Just in case anyone runs across the same problem.

__________________________
I'm currently coding a paypal checkout module. As recommended I've based my module on zipcart and also a little on the previous checkout module stuart coded a few months back.

I've got my module to register, and the admin view works fine. I can set sizes, paper type and paypal info. The problem is in my fulfillcart method. I've tried just about everything but when it hits return array(GalleryStatus::success(), array('view' => 'checkout:SelectSizes')); it will give the following error "Warning: Cannot modify header information - headers already sent by (output started at path/to/modules/checkout/classes/CheckoutPlugin.class:66) in main.php on line 411."

That part in main.php is the redirect and it issues header: location type redirects. I've tried different views, even known good ones. I'm attaching the CheckoutPlugin.class file along with the module.inc.

NOTE: the whole plugin is not included. It's not done yet so don't ask me when it will be.

AttachmentSize
checkout.zip2.43 KB
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2005-03-18 08:11

dleaberr came by IRC and we talked about this. Turns out that he had an extra blank line on line 66 of CheckoutPlugin.class.