Partial Admin Page Load After T_STATIC Alteration
I have a working catalog with 1.3.9 on my website. I wanted to start a brand new catalog with 1.5.4 and installed it successfully with all the variables giving a green "go" after adjusting a few .htaccess things.
This is what my working existing catalog has:
Quote:
Server OS: Linux 2.6.18-471.3.1.el5.lve0.8.72 Database: MySQL 5.1.69-log
Server Date: 01/21/2015 08:57:56 Database Date: 01/21/2015 08:57:56
Server Up Time: 08:57:56 up 73 days, 23:29, 1 user, load average: 2.58, 2.85, 2.84 HTTP Server: Apache
PHP Version: 5.2.17 (Zend: 2.2.0) PHP Memory Limit: 512M PHP Safe Mode: Off
PHP File Uploads: On Max Size: 250M POST Max Size: 250M
Database Data Size: 49,407 kB Database Index Size: 1,772 kB
I'm sure I have the exact same configuration on my new catalog, with a brand new MySQL database to go with it.
As mentioned, the install went fine. When I went into admin, I got the blank page. I adjusted line 118 of the T_STATIC to the "self" as suggested in another thread.
Now, when I go to my admin page, I get a partial page. I don't get anything showing in the error logs, and my server logs don't show anything. I have not contacted my host for his logs yet.
All that loads on the admin page is the following html:
HTML Code:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Zen Cart!</title>
<meta name="robots" content="noindex, nofollow" />
<script language="JavaScript" src="includes/menu.js" type="text/JavaScript"></script>
<link href="includes/stylesheet.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS" />
<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 //-->
<!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="header">
<tr>
<td align="left" valign="top" height="70px" width="200px"><a href="http://EDITED.com/catalog/EDITED/index.php"><img src="images/logo.gif" border="0" alt="Admin Powered by Zen Cart :: The Art of E-Commerce" title=" Admin Powered by Zen Cart :: The Art of E-Commerce "></a></td>
<td colspan="2" align="left"><table width="100%"><tr>
<td align="left" class="main" valign="top"></td>
<td align="right" class="main" valign="top">Your version of Zen Cart® appears to be current.<br />(You are presently using: v1.5.4)</td>
</tr></table></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr class="headerBar">
<td class="headerBarContent" align="left">
</td>
<td class="headerBarContent" align="center">
Wednesday 21 Jan 2015 10:17:52 AM -0500 GMT [107.144.41.140]<br />
I couldn't find anything that matched my problem in a search.
Re: Partial Admin Page Load After T_STATIC Alteration
Is there any business reason why you are unable to upgrade to a newer version of PHP? Are you aware support, security fixes, and bugfixes for PHP 5.2 were officially discontinued in January 2011? I would strongly recommend against running an e-commerce platform on top of an outdated version of PHP.
If you absolutely need to continue debugging the issue on your production server (with PHP 5.2), I would strongly recommend reviewing the article I am getting a blank page (or blank part of a page). In particular the note at the bottom for an "Advanced Developer Option". Just create the same file at "/my-renamed-admin/includes/local/configure.php" to enable for the Zen Cart administrative interface.
If you are still receiving no errors, you may need to adjust (or have your hosting provider adjust) the PHP configuration (php.ini). The PHP configuration can be configured to report all error and log them to a file. This will help find issues occurring before Zen Cart's logging is loaded.
Re: Partial Admin Page Load After T_STATIC Alteration
Thanks for posting the page source. That confirmed that there's another incompatibility with your obsolete version of PHP.
A workaround is posted here: http://www.zen-cart.com/showthread.p...04#post1270404
Re: Partial Admin Page Load After T_STATIC Alteration
I commented out line 236 of /admin/includes/header.php as posted in DrByte's link and that works. I also contacted my web host and asked if they could upgrade to a newer PHP version. Thanks.
Re: Partial Admin Page Load After T_STATIC Alteration
Thank You for letting us know the "temporary" workaround from DrByte worked.
PHP 5.3 is EOL already, so I would recommend PHP 5.4 or 5.5 at this time (unless you have some other really old PHP code on the site which still needs to be upgraded to work properly in PHP 5.4+).
DrByte+=100
Re: Partial Admin Page Load After T_STATIC Alteration
Quote:
Originally Posted by
sunshinelock
I commented out line 236 of /admin/includes/header.php as posted in DrByte's link and that works. I also contacted my web host and asked if they could upgrade to a newer PHP version. Thanks.
Great! Worked like a Charm! :) Just one comment solved my problem.... Thanks sunshinelock!...