Subject: COM_refresh break rendering pages in geeklog 1.7.0

Posted on: 15/10/10 09:46am
By: ::Ben

Hi,

COM_refresh function in geeklog 1.7.0 break rendering pages with themes such as chameleon, purepro...


function COM_refresh($url)
{
header('Content-Type: text/html; charset=' . COM_getCharset());

return "<html><head><meta http-equiv=\"refresh\" content=\"0; URL=$url\"></head></html>\n";
}


because these theme do not allow headers to be sent before content:
Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/layout/purepro/functions.php(472) : eval()'d code:10) in /home/site/public_html/lib-common.php on line 6840


What can we do?

::Ben

Re: COM_refresh break rendering pages in geeklog 1.7.0

Posted on: 15/10/10 09:49am
By: ::Ben

Oups I ckecked in the 1.7.1rc1 and found
function COM_refresh($url)
{
return "<html><head><meta http-equiv=\"refresh\" content=\"0; URL=$url\"></head></html>\n";
}


Nice job.

::Ben

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=91362