Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Locked out of Admin !


Guest

Recommended Posts

This is my last resort before taking the site offline and start from the beginning.

 

I tried to install Contribution [seperate Pricing Per Customer] (http://addons.oscommerce.com/info/716) and had to uninstall it and upload the backup files I created before beginning the install. This contribution DOES NOT WORK.

 

Anyway, I am currently getting the error:

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: NO) in /home/htf/public_html/catalog/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

When I try to get into the admin panel.

 

I have the site www.thehotfish.com controlled as I locked out the checkout module before I lost access to the admin section. Can anyone offer me any suggestions about how to correct this problem ?

 

I would hate to have to tear everything down and start from scratch again.

Link to comment
Share on other sites

This is my last resort before taking the site offline and start from the beginning.

 

I tried to install Contribution [seperate Pricing Per Customer] (http://addons.oscommerce.com/info/716) and had to uninstall it and upload the backup files I created before beginning the install. This contribution DOES NOT WORK.

 

Anyway, I am currently getting the error:

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: NO) in /home/htf/public_html/catalog/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

When I try to get into the admin panel.

 

I have the site www.thehotfish.com controlled as I locked out the checkout module before I lost access to the admin section. Can anyone offer me any suggestions about how to correct this problem ?

 

I would hate to have to tear everything down and start from scratch again.

 

/catalog/includes/configure.php

 

At the bottom input your DB details and reupload the file

Link to comment
Share on other sites

/catalog/includes/configure.php

 

At the bottom input your DB details and reupload the file

 

 

Hi,

 

Thanks for the response but the configure.php file has all the details and is on the server. This was not one of the files that was affected by the failed installation.

 

Any other suggestions ??

Link to comment
Share on other sites

Hi,

 

Thanks for the response but the configure.php file has all the details and is on the server. This was not one of the files that was affected by the failed installation.

 

Any other suggestions ??

 

oh im so sorry i typed in the wrong dir to look in...sorry, I meant check this file /catalog/admin/includes/configure.php and check the database settings in this file...they ok??

Link to comment
Share on other sites

oh im so sorry i typed in the wrong dir to look in...sorry, I meant check this file /catalog/admin/includes/configure.php and check the database settings in this file...they ok??

 

 

Thank you, there was an error in that file.

 

Here is another for you, maybe you could point me in the right direction...........

 

Now that I have access to the admin, when I click on CATALOG I receive the following error:

 

Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/htf/public_html/catalog/admin/includes/functions/compatibility.php:18) in /home/htf/public_html/catalog/admin/includes/functions/compatibility.php on line 18

 

Here is some of the code for the compatibilty.php file:

 

<?php
/*
 $Id: compatibility.php,v 1.10 2003/06/23 01:20:05 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2007 osCommerce

 Released under the GNU General Public License
*/

////
// Recursively handle magic_quotes_gpc turned off.
// This is due to the possibility of have an array in
// $HTTP_xxx_VARS
// Ie, products attributes
 function do_magic_quotes_gpc(&$ar) {
   if (!is_array($ar)) return false;

   reset($ar);
   while (list($key, $value) = each($ar)) {
     if (is_array($ar[$key])) {
       do_magic_quotes_gpc($ar[$key]);
     } else {
       $ar[$key] = addslashes($value);
     }
   }
   reset($ar);
 }

 if (PHP_VERSION >= 4.1) {
   $HTTP_GET_VARS =& $_GET;
   $HTTP_POST_VARS =& $_POST;
   $HTTP_COOKIE_VARS =& $_COOKIE;
   $HTTP_SESSION_VARS =& $_SESSION;
   $HTTP_POST_FILES =& $_FILES;
   $HTTP_SERVER_VARS =& $_SERVER;
 } else {
   if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array();
   if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array();
   if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array();
 }

// handle magic_quotes_gpc turned off.
 if (!get_magic_quotes_gpc()) {
   do_magic_quotes_gpc($HTTP_GET_VARS);
   do_magic_quotes_gpc($HTTP_POST_VARS);
   do_magic_quotes_gpc($HTTP_COOKIE_VARS);
 }

 if (!function_exists('is_numeric')) {
   function is_numeric($param) {
     return ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $param);
   }
 }

 if (!function_exists('is_uploaded_file')) {
   function is_uploaded_file($filename) {
     if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {
       $tmp_file = dirname(tempnam('', ''));
     }

     if (strchr($tmp_file, '/')) {
       if (substr($tmp_file, -1) != '/') $tmp_file .= '/';
     } elseif (strchr($tmp_file, '\\')) {
       if (substr($tmp_file, -1) != '\\') $tmp_file .= '\\';
     }

     return file_exists($tmp_file . basename($filename));
   }
 }

 if (!function_exists('move_uploaded_file')) {
   function move_uploaded_file($file, $target) {
     return copy($file, $target);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...