Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installed Option Type, now admin panel doesn't work.


-Spazmatic-

Recommended Posts

I've been trying to get Option Type to work, and I thought I had, but it seems my admin panel is being difficult.

I can access my site and the admin panel itself, just as I should be able to, but when I click on anything in the admin panel it brings me to a "page not found" error. What did I do?

 

Note, I would check to see if the site works, but i don't have any items in it right now. Although, logging in and jumping around is working just fine.

Link to comment
Share on other sites

I've been trying to get Option Type to work, and I thought I had, but it seems my admin panel is being difficult.

I can access my site and the admin panel itself, just as I should be able to, but when I click on anything in the admin panel it brings me to a "page not found" error. What did I do?

 

Note, I would check to see if the site works, but i don't have any items in it right now. Although, logging in and jumping around is working just fine.

 

 

Look at the url in your address bar when you get the page not found. Does it match the location of your files? Chances are it does not and you will need to make changes to your admin/includes/configure.php file so that osC is looking in the correct place.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Look at the url in your address bar when you get the page not found. Does it match the location of your files? Chances are it does not and you will need to make changes to your admin/includes/configure.php file so that osC is looking in the correct place.

 

Would it look something like this?

 

https://www.blehbleh.com/admin/categories.php?selected_box=catalog&osCAdminID=c4a40********************16f2571

 

Without the ****'s of course.

Link to comment
Share on other sites

I can't seem to find why any of those files would have affected my admin panel... I did have a small bump (heh, forgot to update mySQL database), and I hoped it would fix it, as luck would have it, it didn't. Of course, it was unlikely it would.

Link to comment
Share on other sites

I can't seem to find why any of those files would have affected my admin panel... I did have a small bump (heh, forgot to update mySQL database), and I hoped it would fix it, as luck would have it, it didn't. Of course, it was unlikely it would.

 

(I can't edit my above post for some reason)

 

I think I found something.

Are you supposed to be able to (for example) go to www.yoursite.com/catalog/admin/customers.php ? If so, I cannot.

 

Because when I try, it says there's no page found. However, I can download it via FTP and the file is there in it's entirety. What's up?

 

 

-EDIT!!!-

I just found something!!

 

 

In my admin panel, it says "www.mysite.com/admin/........."

 

It should say "www.mysite.com/catalog/admin/......."

 

How do I fix that?

Link to comment
Share on other sites

(I can't edit my above post for some reason)

 

I think I found something.

Are you supposed to be able to (for example) go to www.yoursite.com/catalog/admin/customers.php ? If so, I cannot.

 

Because when I try, it says there's no page found. However, I can download it via FTP and the file is there in it's entirety. What's up?

-EDIT!!!-

I just found something!!

In my admin panel, it says "www.mysite.com/admin/........."

 

It should say "www.mysite.com/catalog/admin/......."

 

How do I fix that?

 

catalog/admin/includes/configure.php

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

catalog/admin/includes/configure.php

 

I know, but what do I change? here it is:

 

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.mysite.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com');
 define('ENABLE_SSL_CATALOG', 'true'); // 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/');

// define our database connection
 define('DB_SERVER', '***.net'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '***');
 define('DB_SERVER_PASSWORD', '***');
 define('DB_DATABASE', '***');
 define('USE_PCONNECT', 'true'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

I know, but what do I change? here it is:

 

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.mysite.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com');
 define('ENABLE_SSL_CATALOG', 'true'); // 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/');

// define our database connection
 define('DB_SERVER', '***.net'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '***');
 define('DB_SERVER_PASSWORD', '***');
 define('DB_DATABASE', '***');
 define('USE_PCONNECT', 'true'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Found the problem, instead of it saying define('DIR_WS_ADMIN', '/admin/'); I needed it to say define('DIR_WS_ADMIN', '/catalog/admin/');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...