Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Help - my admin/configuration vanished

    I just updated my Zen cart to the latest version and everything went fine until I tried to access my admin area and it wouldnt allow me to do that until I changed the name of it.
    I renamed my admin folder, and in the includes php file but now when i log into the new admin area everything works ok BUT my entire "configuration" list does not. Every thing I click under it takes me to a page not found.
    I don't know if it was the update or the admin name change that went wrong......can someone PLEASE help me?

    Thank you SO much!!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help - my admin/configuration vanished

    Post contents removing/x-out db detail of the admin configure.php file
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Re: Help - my admin/configuration vanished

    I don't know what needs crossing out as you mentioned...so i posted as it is - I see no security issues with it but I may be wrong and if so then it sucks to be me....
    [code]
    <?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');
    }
    }
    {/code}

  4. #4
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Re: Help - my admin/configuration vanished

    too long and it wouldnt let me post in one posting...

    ?>
    <!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 //-->
    <tableborder="0"width="100%"cellspacing="2"cellpadding="2">
    <tr>
    <!-- body_text //-->
    <tdwidth="100%"valign="top"><tableborder="0"width="100%"cellspacing="0"cellpadding="2">
    <tr>
    <td><tableborder="0"width="100%"cellspacing="0"cellpadding="0">
    <tr>
    <tdclass="pageHeading"><?php echo $cfg_group->fields['configuration_group_title'];?></td>
    <tdclass="pageHeading"align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><tableborder="0"width="100%"cellspacing="0"cellpadding="0">
    <tr>
    <tdvalign="top"><tableborder="0"width="100%"cellspacing="0"cellpadding="2">
    <trclass="dataTableHeadingRow">
    <tdclass="dataTableHeadingContent"width="55%"><?php echo TABLE_HEADING_CONFIGURATION_TITLE; ?></td>
    <tdclass="dataTableHeadingContent"><?php echo TABLE_HEADING_CONFIGURATION_VALUE; ?></td>
    <tdclass="dataTableHeadingContent"align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
    </tr>

  5. #5
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Re: Help - my admin/configuration vanished

    ok then that is my issue - wth have I done LOL

    That IS my configure.php file

    admin/configure.php

  6. #6
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Re: Help - my admin/configuration vanished

    what file is it you want me to post

    admin/configure.php does not exist

    I only have
    admin/includes/configure.php
    or
    includes/configure.php

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help - my admin/configuration vanished

    Quote Originally Posted by kobra
    Post contents removing/x-out db detail of the admin configure.php file
    configure.php not configuration.php
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help - my admin/configuration vanished

    I renamed my admin folder, and in the includes php file but now when i log into the new admin area everything works ok BUT my entire "configuration" list does not
    Well you should not even be able to load admin without one

    Double check at
    /your new admin folder/includes/configure.php
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Re: Help - my admin/configuration vanished

    Quote Originally Posted by kobra View Post
    Double check at
    /your new admin folder/includes/configure.php
    Yes I have that...

    I went back into my older versions of zen and I never had a configure.php file in my admin folder...only configuration.php

    admin/includes/configure.php is that the one you want me to post?

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help - my admin/configuration vanished

    admin/includes/configure.php is that the one you want me to post?
    Yes, with new admin folder name and db details X'ed out
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Category Quantity in Admin vanished!!
    By kitcorsa in forum General Questions
    Replies: 8
    Last Post: 29 Aug 2013, 09:20 AM
  2. My Zen Cart Admin Login page now vanished?!
    By nickohorny in forum Customization from the Admin
    Replies: 2
    Last Post: 19 Jan 2011, 08:11 PM
  3. Help: Css vanished
    By maxell6230 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Nov 2009, 03:02 PM
  4. admin ok but site vanished!
    By dml311071 in forum General Questions
    Replies: 4
    Last Post: 20 Feb 2008, 07:49 PM

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