I'd love to try that fix but I don't know enough php to know what from that suggestion would apply to the file I'm getting the error with.
I tried changing in the functions_general.php file but since that's not the file I'm getting the error with, it did nothing to fix the problem.
Here's the file reporting the error:
Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// | Portions may be Copyright (c) 2004 DevosC.com |
// | |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: DEBUG_Paypal_session_list.php 1002 2005-02-11 20:34:18Z drbyte $
//
require('includes/application_top.php');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<script language="javascript" src="includes/menu.js"></script>
<script language="javascript" src="includes/general.js"></script>
<script type="text/javascript">
<!--
function init()
{
cssjsmenu('navbar');
if (document.getElementById)
{
var kill = document.getElementById('hoverJS');
kill.disabled = true;
}
}
// -->
</script>
</head>
<body onload="init()">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<?php
$session_post = (isset($_GET['Session_ID'])) ? $_GET['Session_ID'] : '';
$sql = "select * from " . TABLE_PAYPAL_SESSION ;
$sql .= ($session_post=='') ? '' : " where session_id = '" . $_GET['Session_ID'] . "'";
//echo 'SQL='.$sql.'<br />';
$stored_sessions = $db->Execute($sql);
$records = $stored_sessions->RecordCount();
if ($records > 0) {
echo 'Displaying '.$records.' records...';
while (!$stored_sessions->EOF) {
$_SESSION = unserialize(base64_decode($stored_sessions->fields['saved_session']));
echo '<br /><u><font color=blue>PAYPAL SESSION INFO for record #'.$stored_sessions->fields['unique_id'].'</font>, which expires on '.$stored_sessions->fields['expiry'].'</u><br /><strong>Session_ID='.$stored_sessions->fields['session_id'].'</strong><br />';
foreach($_SESSION as $key=>$value) {
echo "<strong>$key</strong> => <em>$value</em><br />";
if (is_array($value) || is_object($value)) {
foreach($value as $key2=>$value2) {
echo " <strong>$key2</strong> => <em>$value2</em><br />";
if (is_array($value2) || is_object($value2)) {
foreach($value2 as $key3=>$value3) {
echo " <strong>$key3</strong> => <em>$value3</em><br />";
if (is_array($value3) || is_object($value3)) {
foreach($value3 as $key4=>$value4) {
echo " <strong>$key4</strong> => <em>$value4</em><br />";
if (is_array($value4) || is_object($value4)) {
foreach($value4 as $key5=>$value5) {
echo " <strong>$key5</strong> => <em>$value5</em><br />";
if (is_array($value5) || is_object($value5)) echo '<font color=red>MORE</font>';
}
} elseif( is_a( $value, 'queryFactoryResult' ) ) {
if (sizeof($value->result) > 0) {
return true;
} else {
return false;
}
}
}
}
}
}
}
}
}
echo '--------------------------------------<br /><strong>Raw version:</strong><br />';
print_r($_SESSION);
echo '<br /><br />===========================================================<br />';
$stored_sessions->MoveNext();
}//end while
echo '-------------------------------------------------------<br />END OF INFO';
} else {
echo '<br /><br />No records to display.<br />';
}//endif $records > 0
?>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>