Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin links problem


Rhoadkyll

Recommended Posts

Greetings,

 

Over the weekend I uploaded my site and it's working fine EXCEPT all of the local links on the admin menu page are coming up like this:

 

http://www.mysite.netdir_ws_adminindex.php...?osCAdminsID=...

 

http://www.mysite.netdir_ws_adminconfigura...iguration&gID=1

 

and:

 

http://www.mysite.net/admin/HTTP_CATALOG_S...SERVER/catalog/

 

I don't know how this happened but where do I go to correct it?

 

TIA!

Link to comment
Share on other sites

You need to go in your admin/includes/configure.php file and make sure the links to your files/folders are correct!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Ok here's the code:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

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

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

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

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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', 'http://www.mysite.net/');

define('DIR_FS_CATALOG', 'http://www.mysite.net/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

That is the wrong configure.php, you want to post admin/includes/configure.php instead of the catalog configure.php.

 

If you did post the one there, you should refresh the file from your zip or redownload the snapshot or milestone and get a fresh copy (you would need to copy over the common settings from the one that you posted).

 

Good luck,

Matt

Link to comment
Share on other sites

Thanks, that was the problem - somehow I swapped configure files. :oops:

 

Now admin works correctly but I have SQL errors in my catagories/products:

 

1054 - Unknown column 'p.products_bimage' in 'field list'

 

select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_bimage, p.products_subimage1, p.products_bsubimage1, p.products_subimage2, p.products_bsubimage2, p.products_subimage3, p.products_bsubimage3, p.products_subimage4, p.products_bsubimage4, p.products_subimage5, p.products_bsubimage5, p.products_subimage6, p.products_bsubimage6, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from products p, products_description pd, products_to_categories p2c where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = '0' order by pd.products_name

 

[TEP STOP]

 

My table looks like this:

 

CREATE TABLE `products` (

`products_id` int(11) NOT NULL auto_increment,

`products_quantity` int(4) NOT NULL default '0',

`products_model` varchar(12) default NULL,

`products_image` varchar(64) default NULL,

`products_price` decimal(15,4) NOT NULL default '0.0000',

`products_date_added` datetime NOT NULL default '0000-00-00 00:00:00',

`products_last_modified` datetime default NULL,

`products_date_available` datetime default NULL,

`products_weight` decimal(5,2) NOT NULL default '0.00',

`products_status` tinyint(1) NOT NULL default '0',

`products_tax_class_id` int(11) NOT NULL default '0',

`manufacturers_id` int(11) default NULL,

`products_ordered` int(11) NOT NULL default '0',

PRIMARY KEY (`products_id`),

KEY `idx_products_date_added` (`products_date_added`)

) TYPE=MyISAM AUTO_INCREMENT=193 ;

 

 

Any idea where the problem is?

Link to comment
Share on other sites

Did you install a contribution for working with multiple images? It seems like it's missing an SQL update. You might want to go back to the contribution and see if it includes a script to update your database. In particular, you might want to check if it assumes another contribution (which does the database changes) is already installed.

 

Good luck,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...