Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error message on Admin page


khaus

Recommended Posts

Posted

Started to install the contrbution, to get rid of the accounts required to purchase.

and I'm getting an error message on the Admin page:

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

Unable to connect to database server!

 

Looked a that the line item on that page and I see:

if (USE_PCONNECT == 'true') {

$$link = mysql_pconnect($server, $username, $password);

} else {

$$link = mysql_connect($server, $username, $password);

}

 

The store is working, just need to log-in - :blink:

Posted

This will be a configure.php error, the error is simply telling you where the script died

Make sure that the admin / includes / configure.php is OK

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Thanks,

 

everything is correct, just the log-info. had gone missing. With the login info. corrected, the there is a new message:

 

1046 - No database selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

I'm using a localhost to define the DB server 'define('DB_SERVER', 'localhost');'

 

Where the

 

define('DIR_FS_DOCUMENT_ROOT', '');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', '');

define('DIR_WS_CATALOG', '');

define('DIR_FS_CATALOG', '');

 

I'm lost as to what to enter. (I get the basic concept, not 100% about the info. :blush: ))

From what I understand from comparing another site, is that: they should be along this line (this one doesn't use a localhost)

'/export/home/cl/domainnamehere.com/public_html/'

 

What would the localhost version of this be?

I'm guessing that the correct info here would take care of the new error message.

 

define('HTTP_SERVER', 'http://localhost'); // eg,
or -
should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'http://localhost');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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', DIR_WS_CATALOG . 'includes/languages/');

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_BACKUP', DIR_FS_ADMIN . 'backups/');
Posted

Thanks,

 

everything is correct, just the log-info. had gone missing. With the login info. corrected, the there is a new message:

 

Not Found

The requested URL /admin/login.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

[TEP STOP]

 

I'm assuming that something in the configure.php doc is missing or incorrect-

If I'm on the right path, I've narrowed it down to this:

 

 

I'm using a localhost to define the DB server 'define('DB_SERVER', 'localhost');'

 

 

 

Where the

 

define('DIR_FS_DOCUMENT_ROOT', '');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', '');

define('DIR_WS_CATALOG', '');

define('DIR_FS_CATALOG', '');

 

I'm lost as to what to enter. (I get the basic concept, not 100% about the info. :blush: ))

From what I understand from comparing another site, is that: they should be along this line (this one doesn't use a localhost)

'/export/home/cl/domainnamehere.com/public_html/'

 

What would the localhost version of this be?

I'm guessing that the correct info here would take care of the new error message.

 

define('HTTP_SERVER', 'http://localhost'); // eg,
or -
should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'http://localhost');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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', DIR_WS_CATALOG . 'includes/languages/');

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_BACKUP', DIR_FS_ADMIN . 'backups/');

Archived

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

×
×
  • Create New...