Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP! My old site and new site are linked?!?!


luvubeauty

Recommended Posts

K, bare with me all! I am very very new to PHP and doing my old site! My web chick left me high and dry during a revamp, and now I am left to googling every question I have during install...but I can not find the answer to this question...I find lots of posts with the same problem and a fix, but no one saying how to do the fix for people like me lol.

I have two live shops running...I transfered all the files from the old site to the new site, leaving two live stores. I corrected both admin/includes/config and include/config to represent the new store, but for some reason it is still linking to the old store but with the new store address (if that makes sense lol). If anyone could help me (prefereably with step by step instructions as I don't have an oscommerce book for dummies, although somedays I wish I did)

Thanks in advance!

Tira

Link to comment
Share on other sites

In the includes FOLDER (catalog and admin) where the normal configure.php files are there is a FOLDER named local

 

On some installs there may be a configure.php inside the local FOLDER (catalog and admin)

 

If there is, anything in it overrides anything in the normal configure.php files.

 

You can check for that.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

The only things in the local folder in admin/includes/local are .cvsignore which when you hit edit it says configure.php but nothing else and the other is a readme file.

In the includes/local is a folder named _vti_cfn both local and the _vti have readme files in them.

Link to comment
Share on other sites

Unless you have some wonky template or custom code the configure file(s) are what determines what the links are.

 

I don't know what else to say...

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

If the sites are on the same server they may be sharing the same cache.

 

In your admin set 'Use Cache' to false.

 

Save it.

 

That would solve the cache problem, if they are on the same server.

 

Or you can setup your own private cache.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I customized the template of the store. and I think the codes in the config files are standard. I don't think she did anything to them. I know I have a few different add ons to the store bu that's it. Here are the codes.

 

Includes/configure:

<?php

define('HTTP_SERVER', 'http://luvubeauty.com');

define('HTTPS_SERVER', 'https://luvubeau.startlogic.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'luvubeauty.com');

define('HTTPS_COOKIE_DOMAIN', 'luvubeauty.com');

define('HTTP_COOKIE_PATH', '/wholesalestore/');

define('HTTPS_COOKIE_PATH', '/wholesalestore/');

define('DIR_WS_HTTP_CATALOG', '/wholesalestore/');

define('DIR_WS_HTTPS_CATALOG', '/wholesalestore/');

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

define('DIR_FS_CATALOG', 'wholesalestore');

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

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

 

define('DB_SERVER', 'luvubeau.startlogicmysql.com');

define('DB_SERVER_USERNAME', 'I blanked username out');

define('DB_SERVER_PASSWORD', 'I blanked password out');

define('DB_DATABASE', 'luvubeau_IC_20081027_122743');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

admin/includes/configure:

<?php

define('HTTP_SERVER', 'http://luvubeauty.com');

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

define('HTTPS_CATALOG_SERVER', 'https://luvubeau.startlogic.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/users/web/b568/sl.luvubeau/public_html/wholesalestore/');

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

define('DIR_FS_ADMIN', '/home/users/web/b568/sl.luvubeau/public_html/wholesalestore/admin/');

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

define('DIR_FS_CATALOG', '/home/users/web/b568/sl.luvubeau/public_html/wholesalestore/');

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('DB_SERVER', 'luvubeau.startlogicmysql.com');

define('DB_SERVER_USERNAME', 'I blanked username out');

define('DB_SERVER_PASSWORD', 'I blanked password out');

define('DB_DATABASE', 'luvubeau_IC_20081027_122743');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

All the links at

http://luvubeauty.com/wholesalestore/index.php

work for me.

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

yep, both stores work...but when someone comes online it shows in both admins, when i update a price in one store it updates in both ect ect two seperate identities that have the same brain pretty much lol

Link to comment
Share on other sites

If they share the same DB that would explain a lot.

 

Since I don't have the other store URL, I'm still in the dark...

:blink:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

It's just different folders on the same domain.

 

If you don't want them "connected" you have to create a totally new DB, turn the cache off (or set up a private one for each store).

 

All the links at

http://luvubeauty.com/Estore/index.php

work for me as well.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I did do a seperate install for the whole site, but when I copied the files and folders from my back up on my computer I must of copied the wrong files? what do I do from here? Cache is turned off on both, should I make a new one, and how? Sorry for all the questions, but the php stuff is all new to me, I got the designing down pat (well as much as I needed to) but not "techy" stuff.

Link to comment
Share on other sites

A guide to the configure.php files

 

If you want two "non conncected" stores on the same domain they need their own DB's, Admins, cache, files, etc.

 

It's all in the configure file.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Ok, all the config files have the correct links and such in them as I did that on install. Both sites are on the same server, different files, db's and cache is off. I did do an install of oscommerce of the store on the new site, didn't just copy the files over! I am completely lost....although I was lost when I started! Should I do a new install and copy the files again? Should I upload the files from my computer or copy them from the old store file or does it matter? Is there anywhere pther then those two config files that would link stuff up?

Link to comment
Share on other sites

define('DB_DATABASE', 'luvubeau_IC_20080923_133931');

 

I am assuming this is where the problem lies. Both sites have this same line and I am also assuming they should be different. Where would I find the database name for each so I can edit?

Link to comment
Share on other sites

Ok, so i think that is it. and I found where to find the db name but when i go there it appears there is 5 stores with the same name that she installed...so I am going to delete them all and start fresh with a new one...wish me luck!

Link to comment
Share on other sites

Ok, I have done 4 complete installs today and all of them have messed up in some way or another...I have looked for a step by step of duplicating a store but can't find anything. Does anyone know of anything like that?

Thanks in advance!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...