Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Premature ob_end_flush() before header modification...? #2298
I am by no means any good at PHP but I encountered the following issue using osclass 3.8 and the latest PaymentPro plugin...
The problem was there (line 1472 in utils.php):
Then I noticed that when I update the PaymentPro plugin the response stalls...the logfile showed the following error:
PHP Warning: Cannot modify header information - headers already sent...
As far as I understand this function closes a stream or flushing the stream of some sort then tries to modify the header...which is not possible after calling the ob_end_flush()...according to the doco..
As a solution I swaped the two calls around and it worked...so far anyway...
I am not sure if this is a real issue or just some localized mayhem here...but I thought I let you know....