You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
...and then the reference to the utils.php file.
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...
`function osc_redirect_to($url, $code = null) {
Hi,
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):
function osc_redirect_to($url, $code = null) { if(ob_get_length()>0) { ob_end_flush(); } if($code!=null) { header("Location: ".$url, true, $code); } else { header("Location: ".$url); } exit; }
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...
...and then the reference to the utils.php file.
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...
`function osc_redirect_to($url, $code = null) {
}`
I am not sure if this is a real issue or just some localized mayhem here...but I thought I let you know....
The text was updated successfully, but these errors were encountered: