Ok I have found 3 separate issues with the debugging tool and I'm not 100% sure as to how to go about fixing them (not exactly a php wizard)
[13-Apr-2010 08:21:30] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/d/m/admin420/html/includes/languages/english.php:1393) in /home/content/a/d/m/admin420/html/includes/init_includes/init_templates.php on line 78
[13-Apr-2010 08:21:30] PHP Warning: session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot regenerate session id - headers already sent in /home/content/a/d/m/admin420/html/includes/functions/sessions.php on line 167
[13-Apr-2010 08:21:30] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/d/m/admin420/html/includes/languages/english.php:1393) in /home/content/a/d/m/admin420/html/includes/functions/functions_general.php on line 44
for the code in question, here's the init_templates.php snippet
PHP Code:
/**
* send the content charset "now" so that all content is impacted by it
*/
(line 78) header("Content-Type: text/html; charset=" . CHARSET);
sessions.php
PHP Code:
function zen_session_recreate() {
global $http_domain, $https_domain, $current_domain;
if ($http_domain == $https_domain) {
$saveSession = $_SESSION;
$oldSessID = session_id();
(line 167) session_regenerate_id();
$newSessID = session_id();
session_id($oldSessID);
session_id($newSessID);
if (STORE_SESSIONS == 'db') {
session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
}
session_start();
$_SESSION = $saveSession;
if (IS_ADMIN_FLAG !== true) {
whos_online_session_recreate($oldSessID, $newSessID);
}
} (there's an 'else' flag here, but the second half of the function is commented out)
and functions_general.php
PHP Code:
function zen_redirect($url) {
global $request_type;
// Are we loading an SSL page?
if ( (ENABLE_SSL == true) && ($request_type == 'SSL') ) {
// yes, but a NONSSL url was supplied
if (substr($url, 0, strlen(HTTP_SERVER . DIR_WS_CATALOG)) == HTTP_SERVER . DIR_WS_CATALOG) {
// So, change it to SSL, based on site's configuration for SSL
$url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER . DIR_WS_CATALOG));
}
}
// clean up URL before executing it
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
// header locates should not have the & in the address it breaks things
while (strstr($url, '&')) $url = str_replace('&', '&', $url);
(line 44) header('Location: ' . $url);
zen_exit();
}
Are there any glaring script errors in the areas mentioned? or is the problem more likely with the english.php page?
Bookmarks