Zen Cart Logo
Forums / Customization from the Admin / Help - my admin/configuration vanished

Help - my admin/configuration vanished

Locked

Views: 1,541

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
4 Oct 2010, 9:13 PM
#1
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

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? :unsure:

Thank you SO much!!

4 Oct 2010, 9:17 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help - my admin/configuration vanished

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

4 Oct 2010, 9:30 PM
#3
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

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 Oct 2010, 9:33 PM
#4
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

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**;** ?> </td>
</tr>

4 Oct 2010, 9:34 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help - my admin/configuration vanished

kobra:

Post contents removing/x-out db detail of the admin configure.php file
configure.php not configuration.php

4 Oct 2010, 9:35 PM
#6
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

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

4 Oct 2010, 10:42 PM
#7
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

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

5 Oct 2010, 12:30 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

5 Oct 2010, 1:14 AM
#9
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Re: Help - my admin/configuration vanished

kobra:

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?

5 Oct 2010, 6:50 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

5 Oct 2010, 1:35 PM
#11
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Re: Help - my admin/configuration vanished

copyright removed to save space but not sure if you need to see the other comments or not.

<?php

/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. /
/
**** The 2 files should be kept separate and not used to overwrite each other. ***********/

// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings

If you desire your entire admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:

*/
define**('HTTP_SERVER','http://ljgdesign.com');**
define**('HTTPS_SERVER','https://ljgdesign.com');**
define**('HTTP_CATALOG_SERVER','http://ljgdesign.com');**
define**('HTTPS_CATALOG_SERVER','https://ljgdesign.com');**

// Use secure webserver for catalog module and/or admin areas?
define**('ENABLE_SSL_CATALOG','');*
define**('ENABLE_SSL_ADMIN','');*

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define**('DIR_WS_ADMIN','/**********/');**
define**('DIR_WS_CATALOG','/');**
define**('DIR_WS_HTTPS_ADMIN','/**********/');**
define**('DIR_WS_HTTPS_CATALOG','/');**

define**('DIR_WS_IMAGES','images/');**
define**('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');**
define**('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');**
define**('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');**
define**('DIR_WS_INCLUDES','includes/');**
define**('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');**
define**('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');**
define**('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');**
define**('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');**
define**('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');**
define**('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');**

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define**('DIR_FS_ADMIN','/home1/ljgdesig/public_html/**********/');**
define**('DIR_FS_CATALOG','/home1/ljgdesig/public_html/');**

define**('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');**
define**('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');**
define**('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');**
define**('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');**
define**('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');**
define**('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');**
define**('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');**

// define our database connection
define**('DB_TYPE','mysql');**
define**('DB_PREFIX','');**
define**('DB_SERVER','');
define
('DB_SERVER_USERNAME','**********');**
define**('DB_SERVER_PASSWORD','**********');**
define**('DB_DATABASE','**********');**
define**('USE_PCONNECT','**********');**
define**('STORE_SESSIONS','db');**
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define**('SQL_CACHE_METHOD','none');**
define**('DIR_FS_SQL_CACHE','/home1/ljgdesig/public_html/cache');**

// EOF

5 Oct 2010, 4:23 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help - my admin/configuration vanished

Assuming that you have your new admin folder spelled correctly/matching what exists on the server this looks correct

In sure it is in the correct lcation

What is any error message do you get?

5 Oct 2010, 4:46 PM
#13
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Re: Help - my admin/configuration vanished

I can log into my admin section using the link
http://ljgdesign.com/XXXXXX/

it is all there and the links work but when i click the header "configuration" and the drop down menu appears, I go to click on an item in that menu and i get

The webpage cannot be found

HTTP 404
Most likely causes:

  • There might be a typing error in the address.

  • If you clicked on a link, it may be out of date. What you can try:

    ** Retype the address. **

    Go back to the previous page.

    ** Go to and look for the information you want. **

The webpage cannot be found

HTTP 404
Most likely causes:

  • There might be a typing error in the address.

  • If you clicked on a link, it may be out of date. What you can try:

    ** Retype the address. **

    Go back to the previous page.

    ** Go to and look for the information you want. **

The webpage can not be found
Most likely causes:

  • There might be a typing error in the address.
  • If you clicked on a link, it may be out of date.
    Hell I am so frustrated right now I may just delete the whole darn thing and start again - I have no idea what happened.
5 Oct 2010, 4:53 PM
#14
lj111970 avatar

lj111970

New Zenner

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
97
Plugin Contributions:
0

Re: Help - my admin/configuration vanished

kobra, I got it!!!!!!!

I had a friend helping me also and she found a post that I didn't on this forum. I had spend yesterday and this morning trying so hard to fix it and it was right there all along.

This was what she found.....
> This is what happened in my case. When I uploaded zen to my webspace, the configuration.php file did not transmit correctly. What was on my server was a blank file. I was not able to access any of the configuration files. Then I deleted configuration.php on my server. Got the message file not found. Why was it blank on the server? So I went to my original zen folder on my my computer and opened up configuration.php and it was full of code. Good thing! Re-uploaded this one file to the server to replace the blank corrupt one. Voila! Fixed the problem. I can now access my configuration selections in my admin
So I checked my files and the configuration.php wasn't even uploaded into my admin file. It WAS there and was blank but then vanished (likely my hand) so now it is there and it works.

THANK YOU KOBRA for taking your time to try and help me - you have no idea how much i appreciate it!!!!

5 Oct 2010, 4:55 PM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help - my admin/configuration vanished

Try pasting what is in red after your admin folder

http: //www.xxxxx.com/xxxxxx/configuration.php?gID=1