Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Accessing Admin Tool Immediately After Install


Gonzogoose

Recommended Posts

Posted

I just installed the store and when I got to the screen that gives you the option to go to either Catalog or Administration Tool, when I click Catalog it works fine. But when I click Administration Tool I get this error message:

 

 

Fatal error: Call to undefined function: tep_href_link() in /home/content/b/r/a/bracy/html/catalog/admin/index.php on line 17

 

Now here is line 17 of the admin/index.php file:

 

'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),

 

 

So what am I missing? Did I do something wrong or what? Thanks for your help.

Posted

I would reload the files from the admin folder - this won't affect what's in the database. If reloading all the admin files doesn't work then the database did not install correctly.

 

Vger

Posted
I would reload the files from the admin folder - this won't affect what's in the database. If reloading all the admin files doesn't work then the database did not install correctly.

 

Vger

 

Thanks, I'll give that a shot.

Posted

Okay, I did that, now I'm getting this:

 

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/b/r/a/bracy/html/catalog/admin/includes/functions/database.php on line 19

Unable to connect to database server!

Posted

Agh! Did you overwrite the admin/includes/configure.php file? That file should have had permissions set so that it could not have been overwritten.

 

Check in that file to see if it has the correct addresses/pathways in it.

 

Vger

Posted

Oh man, I had reset the attributes on that to 777 according to the post installation instructions. Ack. So now what?

 

I'm guessing I have to manually enter all that info now?

 

Or would it be easier to just unistall and do a clean reinstall?

Posted

Check in your includes/configure.php file and the info you need to be able to write your admin/includes/configure.php file will be available to you to use. All you need to do is to add 'admin/ where called for in certain sections of admin/includes/configure.php.

 

Vger

Posted
Check in your includes/configure.php file and the info you need to be able to write your admin/includes/configure.php file will be available to you to use. All you need to do is to add 'admin/ where called for in certain sections of admin/includes/configure.php.

 

Vger

 

Okay, whew. Man, thanks for all your help.

 

Hey, where it says CATALOG SERVER is that the same thing as the server, or would that be /catalog?

Posted

Thanks, that worked like a charm. Now one more multi-part question, and I'll leave you alone. I got the generated .htaccess code from the generator website, but there was already an .htaccess file in the admin folder on the server. Do I just add that code to that file or do I need a completely new file?

 

Also, I'm not clear on the .htpassword file. All the generator gives is that one line for it. Is that all that goes into that file?

 

And finally, if I save this in, say, notepad, it saves it as a txt file. Do I just rename that without the extension or what?

 

Thanks.

Posted

Rather than try to write your own .htaccess file, or get one from a site which generates it for you, I'd advise you to look in your web hosting control panel for a feature called something like Directory Protect or Password Protect. You can use this feature to password protect the admin folder, and behind the scenes it writes the .htaccess and .htpasswd files for you.

 

If you want to use your own then you need to upload it via FTP and then rename it to .htaccess - as you won't be abe to save it as .htaccess on your computer (all files must have a file extension).

 

Vger

Posted

Yeah, my cp doesn't have that feature. It's a rather limited host.

 

Ok, so I know I need to write one and upload it, then change it. Is there a tutorial somewhere that tells how to do that? Thanks.

 

Oh, and I spoke too soon on the admin tool. The main page comec up, but all the links (modules, etc.) lead to missing pages. It's something I did wrong I'm sure, so if you don't mind, here is the code for the admin/includes/configure.php file minus the bottom half with the password and username:

 

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

define('HTTP_CATALOG_SERVER', 'http://www.comicavalanche.com');

define('HTTPS_CATALOG_SERVER', 'http://www.comicavalanche.com');

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', 'admin/images/');

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

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

define('DIR_WS_INCLUDES', 'admin/includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'admin/includes/functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'admin/includes/classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'admin/includes/modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'admin/includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'admin/includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'admin/images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'admin/includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Posted

define('HTTP_SERVER', 'http://www.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

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/');

 

Vger

Archived

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

×
×
  • Create New...