Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Cannot log into Admin - Blank Page

    Hi there,

    I have tried to install the following:

    http://www.zen-cart.com/index.php?ma...roducts_id=599

    Now I can't log into my Admin....just get a blank page

    http://cplshop.co.uk/cpl21shop1454/login.php

    Damn, knew I should not mess about.

    Any ideas please?

    Regards,

    Andy

  2. #2
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    I don't even know where to start looking for this error.

    Wish I never tried to install this add on....


  3. #3
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    Here is what the 'View Source' says in IE:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <html>

    <head>
    <link rel="stylesheet" type="text/css" href="ErrorPageTemplate.css" >

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>HTTP 500 Internal Server Error</title>

    <script src="errorPageStrings.js" language="javascript" type="text/javascript">
    </script>
    <script src="httpErrorPagesScripts.js" language="javascript" type="text/javascript">
    </script>
    </head>

    <body onLoad="javascript:expandCollapse('infoBlockID', true); initGoBack(); navCancelInit(); initMoreInfo('infoBlockID');">

    <table width="730" cellpadding="0" cellspacing="0" border="0">

    <!-- Error title -->
    <tr>
    <td id="infoIconAlign" width="60" align="left" valign="top" rowspan="2">
    <img src="info_48.png" id="infoIcon" alt="Info icon">
    </td>
    <td id="mainTitleAlign" valign="middle" align="left" width="*">
    <h1 id="mainTitle">The website cannot display the page</h1>
    </td>
    </tr>



    <tr>
    <!-- This row is for HTTP status code, as well as the divider-->
    <td id="http500Align" class="errorCodeAndDivider" align="right"><ID id="http500">&nbsp;HTTP 500</ID>
    <div class="divider"></div>
    </td>
    </tr>


    <!-- Error Body -->
    <tr>
    <td>
    &nbsp;
    </td>
    <td id="likelyCausesAlign" valign="top" align="left">
    <h3 id="likelyCauses">Most likely causes:</h3>
    <ul>
    <li id="causeSiteMaintenance">The website is under maintenance.</li>
    <li id="causeSiteError">The website has a programming error.</li>
    </ul>
    </td>
    </tr>

    <!-- What you can do -->
    <tr>
    <td>
    &nbsp;
    </td>
    <td id="whatToTryAlign" valign="top" align="left">
    <h2 id="whatToTry">What you can try:</h2>
    </td>
    </tr>

    <!-- refresh page -->
    <tr>
    <td>
    &nbsp;
    </td>
    <td id="refreshPageAlign" align="left" valign="middle">
    <h4>
    <table>
    <tr>
    <td valign="top">
    <img src="bullet.png" border="0" alt="" class="actionIcon">
    </td>
    <td valign="top">
    <span id="navCancelContainer"></span><noscript id="refreshPage">Refresh the page.</noscript>
    </td>
    </tr>
    </table>
    </h4>
    </td>
    </tr>


    <!-- back to previous page -->
    <tr>
    <td >
    &nbsp;
    </td>
    <td id="goBackAlign" align="left" valign="middle">
    <h4>
    <table>
    <tr>
    <td valign="top">
    <img src="bullet.png" border="0" alt="" class="actionIcon">
    </td>
    <td valign="top">
    <span id="goBackContainer"></span><noscript id="goBack">Go back to the previous page.</noscript>
    </td>
    </tr>
    </table>
    </h4>
    </td>
    </tr>


    <!-- InfoBlock -->
    <tr>
    <td id="infoBlockAlign" align="right" valign="top">
    &nbsp;
    </td>
    <td id="moreInfoAlign" align="left" valign="center">
    <h4>
    <table>
    <tr>
    <td valign="top">
    <a href="#" onclick="javascript:expandCollapse('infoBlockID', true); return false;"><img src="down.png" id="infoBlockIDImage" border="0" class="actionIcon" alt="More information"></a>
    </td>
    <td valign="top">
    <span id="moreInfoContainer"></span>
    <noscript><ID id="moreInformation">More information</ID></noscript>
    </td>
    </tr>
    </table>
    </h4>

    <div id="infoBlockID" class="infoBlock">
    <p id="errorExplanation">This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.</p>
    <p id="moreInfoSeeHelp">For more information about HTTP errors, see Help.</p>
    </div>

    </td>
    </tr>


    </table>
    </body>
    </html>

  4. #4
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    My Login.php looks like this in the admin folder:

    <?php

    /**

    * @package admin

    * @copyright Copyright 2003-2010 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: login.php 15928 2010-04-13 03:21:56Z drbyte $

    */



    require('includes/application_top.php');



    $admin_name = "";

    $admin_pass = "";

    $pass_message = "";

    $message = false;

    if (isset($_POST['submit'])) {

    $admin_name = zen_db_prepare_input($_POST['admin_name']);

    $admin_pass = zen_db_prepare_input($_POST['admin_pass']);

    if ($admin_name == '' && $admin_pass == '') sleep(4);

    $sql = "select admin_id, admin_name, admin_pass from " . TABLE_ADMIN . " where admin_name = '" . zen_db_input($admin_name) . "'";

    $result = $db->Execute($sql);

    if ((!isset($_SESSION['securityToken']) || !isset($_POST['securityToken'])) || ($_SESSION['securityToken'] !== $_POST['securityToken'])) {

    $message = true;

    $pass_message = ERROR_SECURITY_ERROR;

    }

    if (!isset($result->fields) || !($admin_name == $result->fields['admin_name'])) {

    $message = true;

    $pass_message = ERROR_WRONG_LOGIN;

    }

    if (!isset($result->fields) || !zen_validate_password($admin_pass, $result->fields['admin_pass'])) {

    $message = true;

    $pass_message = ERROR_WRONG_LOGIN;

    }

    // BEGIN LOGIN SLAM PREVENTION

    if ($message == TRUE) {

    if (!isset($_SESSION['login_attempt'])) $_SESSION['login_attempt'] = 0;

    $_SESSION['login_attempt']++;

    if ($_SESSION['login_attempt'] > 6) {

    zen_session_destroy();

    sleep(15);

    zen_redirect(zen_href_link(FILENAME_DEFAULT, '', 'SSL'));

    } else {

    sleep(4);

    }

    } // END LOGIN SLAM PREVENTION

    if ($message == false) {

    unset($_SESSION['login_attempt']);

    $_SESSION['admin_id'] = $result->fields['admin_id'];

    if (SESSION_RECREATE == 'True') {

    zen_session_recreate();

    }

    zen_redirect(zen_href_link(FILENAME_DEFAULT, '', 'SSL'));

    }

    }

    ?>

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

    <link href="includes/stylesheet.css" rel="stylesheet" type="text/css" />

    <meta name="robot" content="noindex, nofollow" />
    </head>

    <body id="login" onload="document.getElementById('admin_name').focus()">

    <form name="login" action="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" method="post">

    <fieldset>

    <legend><?php echo HEADING_TITLE; ?></legend>

    <label class="loginLabel" for="admin_name"><?php echo TEXT_ADMIN_NAME; ?></label>

    <input style="float: left" type="text" id="admin_name" name="admin_name" value="<?php echo zen_output_string($admin_name); ?>" />

    <br class="clearBoth" />

    <label class="loginLabel" for="admin_pass"><?php echo TEXT_ADMIN_PASS; ?></label>

    <input style="float: left" type="password" id="admin_pass" name="admin_pass" value="<?php echo zen_output_string($admin_pass); ?>" />

    <br class="clearBoth" />

    <?php echo $pass_message; ?>

    <input type="hidden" name="securityToken" value="<?php echo $_SESSION['securityToken']; ?>">

    <input type="submit" name="submit" class="button" value="Login" />

    <?php echo '<a style="float: right;" href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?>

    </fieldset>

    </form>

    </body>

    </html>

    <?php require('includes/application_bottom.php'); ?>

  5. #5
    Join Date
    Sep 2004
    Location
    MONTANA!!!
    Posts
    105
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    Quote Originally Posted by Platinum Place View Post
    Hi there,

    I have tried to install the following:

    http://www.zen-cart.com/index.php?ma...roducts_id=599

    Now I can't log into my Admin....just get a blank page

    http://cplshop.co.uk/cpl21shop1454/login.php

    Damn, knew I should not mess about.

    Any ideas please?

    Regards,

    Andy
    Well, I'm assuming that you meant this mod "Minimum Order" . Your link is a bit messed up. ;)

    It is for version 1.3.8 so it begs the question of what version of ZC you are using? But, it does look like 1.3.8. Did you do the upgrade to database for this mod?

    Paul

  6. #6
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    Hi Paul,

    At last, some hope from someone.....could see a rebuild looming....

    I have the latest version, so I think I made a huge mistake here.

    These are the install instructions:

    1. Unzip and upload all files to your store directory;
    2. Go to Admin->Tools->Install SQL Patches and install install.sql.
    Copying SQL code from install.sql file (using a text editor) and paste into form in your shops
    admin at Tools > Install SQL patches (copy & paste, don't upload!!!).


    This is what I added to 'Install SQL patches':

    INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Minimum Order Amount', 'MIN_ORDER_AMOUNT', '10', 'The minimum amount an order must total to be able to checkout. Empty means no minimum.', '2', '99', NOW(), NULL, NULL);


    I really do hope you can help......

    Thanks,

    Andy

  7. #7
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    Hi there,

    Here is what my index.php looks like:

    <?php
    /**
    * @package admin
    * @copyright Copyright 2003-2009 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: index.php 14970 2009-11-29 00:56:42Z 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'] == $_SESSION['language']) {
    $languages_selected = $languages[$i]['code'];
    }
    }
    ?>
    <!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>
    <meta name="robot" 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 //-->
    <?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_SHORT, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));

    $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) {
    $customers->fields['customers_firstname'] = zen_output_string_protected($customers->fields['customers_firstname']);
    $customers->fields['customers_lastname'] = zen_output_string_protected($customers->fields['customers_lastname']);
    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_SHORT, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));
    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 and 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'); ?>




    Anything wrong in there?

    Regards,

    Andy

  8. #8
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    Next one is my configuration.php file.....
    I have seen some differences between this one and my other site, so tried to copy and paste, but did not fix:

    <?php
    /**
    * @package admin
    * @copyright Copyright 2003-2009 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: configuration.php 14193 2009-08-18 04:15:13Z drbyte $
    */


    require('includes/application_top.php');

    $action = (isset($_GET['action']) ? $_GET['action'] : '');

    if (zen_not_null($action)) {
    switch ($action) {
    case 'save':
    // demo active test
    if (zen_admin_demo()) {
    $_GET['action']= '';
    $messageStack->add_session(ERROR_ADMIN_DEMO, 'caution');
    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));
    }
    $configuration_value = zen_db_prepare_input($_POST['configuration_value']);
    $cID = zen_db_prepare_input($_GET['cID']);

    $db->Execute("update " . TABLE_CONFIGURATION . "
    set configuration_value = '" . zen_db_input($configuration_value) . "',
    last_modified = now() where configuration_id = '" . (int)$cID . "'");
    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue
    from ' . TABLE_CONFIGURATION;



    $configuration = $db->Execute($configuration_query);



    // set the WARN_BEFORE_DOWN_FOR_MAINTENANCE to false if DOWN_FOR_MAINTENANCE = true

    if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'true') ) {

    $db->Execute("update " . TABLE_CONFIGURATION . "

    set configuration_value = 'false', last_modified = '" . NOW . "'

    where configuration_key = 'WARN_BEFORE_DOWN_FOR_MAINTENANCE'"); }



    $configuration_query = 'select configuration_key as cfgkey, configuration_value as cfgvalue

    from ' . TABLE_CONFIGURATION;

    $configuration = $db->Execute($configuration_query);

    zen_redirect(zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cID));

    break;

    }

    }



    $gID = (isset($_GET['gID'])) ? $_GET['gID'] : 1;

    $_GET['gID'] = $gID;

    $cfg_group = $db->Execute("select configuration_group_title

    from " . TABLE_CONFIGURATION_GROUP . "

    where configuration_group_id = '" . (int)$gID . "'");



    if ($gID == 7) {

    $shipping_errors = '';

    if (zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == 'NONE' or zen_get_configuration_key_value('SHIPPING_ORIGIN_ZIP') == '') {

    $shipping_errors .= '<br />' . ERROR_SHIPPING_ORIGIN_ZIP;

    }

    if (zen_get_configuration_key_value('ORDER_WEIGHT_ZERO_STATUS') == '1' and !defined('MODULE_SHIPPING_FREESHIPPER_STATUS')) {

    $shipping_errors .= '<br />' . ERROR_ORDER_WEIGHT_ZERO_STATUS;

    }

    if (defined('MODULE_SHIPPING_USPS_STATUS') and (MODULE_SHIPPING_USPS_USERID=='NONE' or MODULE_SHIPPING_USPS_SERVER == 'test')) {

    $shipping_errors .= '<br />' . ERROR_USPS_STATUS;

    }

    if ($shipping_errors != '') {

    $messageStack->add(ERROR_SHIPPING_CONFIGURATION . $shipping_errors, 'caution');

    }

    }



    ?>

    <!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 marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="init()">

    <!-- header //-->

    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>

    <!-- header_eof //-->



    <!-- body //-->

    <table border="0" width="100%" cellspacing="2" cellpadding="2">

    <tr>

    <!-- body_text //-->

    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td class="pageHeading"><?php echo $cfg_group->fields['configuration_group_title']; ?></td>

    <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr class="dataTableHeadingRow">

    <td class="dataTableHeadingContent" width="55%"><?php echo TABLE_HEADING_CONFIGURATION_TITLE; ?></td>

    <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CONFIGURATION_VALUE; ?></td>

    <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>

    </tr>

    <?php

    $configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key,

    use_function from " . TABLE_CONFIGURATION . "

    where configuration_group_id = '" . (int)$gID . "'

    order by sort_order");

    while (!$configuration->EOF) {

    if (zen_not_null($configuration->fields['use_function'])) {

    $use_function = $configuration->fields['use_function'];

    if (preg_match('/->/', $use_function)) {

    $class_method = explode('->', $use_function);

    if (!is_object(${$class_method[0]})) {

    include(DIR_WS_CLASSES . $class_method[0] . '.php');

    ${$class_method[0]} = new $class_method[0]();

    }

    $cfgValue = zen_call_function($class_method[1], $configuration->fields['configuration_value'], ${$class_method[0]});

    } else {

    $cfgValue = zen_call_function($use_function, $configuration->fields['configuration_value']);

    }

    } else {

    $cfgValue = $configuration->fields['configuration_value'];

    }



    if ((!isset($_GET['cID']) || (isset($_GET['cID']) && ($_GET['cID'] == $configuration->fields['configuration_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {

    $cfg_extra = $db->Execute("select configuration_key, configuration_description, date_added,

    last_modified, use_function, set_function

    from " . TABLE_CONFIGURATION . "

    where configuration_id = '" . (int)$configuration->fields['configuration_id'] . "'");

    $cInfo_array = array_merge($configuration->fields, $cfg_extra->fields);

    $cInfo = new objectInfo($cInfo_array);

    }



    if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) {

    echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '\'">' . "\n";

    } else {

    echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id'] . '&action=edit') . '\'">' . "\n";

    }

    ?>

    <td class="dataTableContent"><?php echo $configuration->fields['configuration_title']; ?></td>

    <td class="dataTableContent"><?php echo htmlspecialchars($cfgValue); ?></td>

    <td class="dataTableContent" align="right"><?php if ( (isset($cInfo) && is_object($cInfo)) && ($configuration->fields['configuration_id'] == $cInfo->configuration_id) ) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $configuration->fields['configuration_id']) . '" name="link_' . $configuration->fields['configuration_key'] . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>

    </tr>

    <?php

    $configuration->MoveNext();

    }

    ?>

    </table></td>

    <?php

    $heading = array();

    $contents = array();



    switch ($action) {

    case 'edit':

    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');



    if ($cInfo->set_function) {

    eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");');

    } else {

    $value_field = zen_draw_input_field('configuration_value', $cInfo->configuration_value, 'size="60"');

    }



    $contents = array('form' => zen_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));

    if (ADMIN_CONFIGURATION_KEY_ON == 1) {

    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');

    }

    $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);

    $contents[] = array('text' => '<br><b>' . $cInfo->configuration_title . '</b><br>' . $cInfo->configuration_description . '<br>' . $value_field);

    $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE, 'name="submit' . $cInfo->configuration_key . '"') . '&nbsp;<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');

    break;

    default:

    if (isset($cInfo) && is_object($cInfo)) {

    $heading[] = array('text' => '<b>' . $cInfo->configuration_title . '</b>');

    if (ADMIN_CONFIGURATION_KEY_ON == 1) {

    $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br />');

    }



    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');

    $contents[] = array('text' => '<br>' . $cInfo->configuration_description);

    $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($cInfo->date_added));

    if (zen_not_null($cInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($cInfo->last_modified));

    }

    break;

    }



    if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {

    echo ' <td width="25%" valign="top">' . "\n";



    $box = new box;

    echo $box->infoBox($heading, $contents);



    echo ' </td>' . "\n";

    }

    ?>

    </tr>

    </table></td>

    </tr>

    </table></td>

    <!-- body_text_eof //-->

    </tr>

    </table>

    <!-- body_eof //-->



    <!-- footer //-->

    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

    <!-- footer_eof //-->

    <br>

    </body>

    </html>

    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>



    Any ideas?

    Regards,
    Andy

  9. #9
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    Thought I should put the link I am reffering to:

    http://cplshop.co.uk/cpl21shop1454/login.php

  10. #10
    Join Date
    Sep 2010
    Posts
    45
    Plugin Contributions
    0

    Default Re: Cannot log into Admin - Blank Page

    Can you undo changes made to the sql, even without being able to login to the admin?

    It is looking like a rebuild......just as I got so far.....


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h admin/login.php page totally blank - cannot log in
    By shags38 in forum General Questions
    Replies: 3
    Last Post: 31 Dec 2013, 08:55 AM
  2. Cannot log into my admin
    By Colleen O Reilly in forum Installing on a Windows Server
    Replies: 8
    Last Post: 23 Sep 2012, 06:32 PM
  3. Cannot log into my Admin
    By tbokich in forum Basic Configuration
    Replies: 8
    Last Post: 26 Aug 2009, 07:13 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