Forums / Installing on a Linux/Unix Server / Partial Admin Page Load After T_STATIC Alteration

Partial Admin Page Load After T_STATIC Alteration

Views: 2,081

Results 1 to 6 of 6
21 Jan 2015, 3:19 PM
#1
sunshinelock avatar

sunshinelock

New Zenner

Join Date:
Jan 2015
Location:
Seminole FL 33777
Posts:
7
Plugin Contributions:
0

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:

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:

<!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.

21 Jan 2015, 3:51 PM
#2
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

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.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

21 Jan 2015, 9:29 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.php?215694-Known-Bugs-%28and-fixes%29-with-v1-5-4&p=1270404#post1270404

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Jan 2015, 6:06 PM
#4
sunshinelock avatar

sunshinelock

New Zenner

Join Date:
Jan 2015
Location:
Seminole FL 33777
Posts:
7
Plugin Contributions:
0

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.

22 Jan 2015, 7:07 PM
#5
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

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

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

24 Aug 2015, 3:09 PM
#6
jordanbauer351 avatar

jordanbauer351

New Zenner

Join Date:
Aug 2015
Posts:
1
Plugin Contributions:
0

Re: Partial Admin Page Load After T_STATIC Alteration

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!...