Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moved site, template dissapeared.


acodemonkey

Recommended Posts

Posted

Hello,

I'm helping my friend with her osCommerce site. Here's a link: Hiptaculous Baby test site

 

Since I'm going to be making some changes to it, I copied the site to my local dev environment. The problem is, now the template and the text on the local site are completely different. Here is a link to a screenshot. (It's a big image.) screenshot

 

So, how do I fix this? I've tried all the config settings, but to no avail. I have an exact copy of the demo site's database and code. As far as I know the site is configured correctly, but I could be wrong. Below is the config information (aside from the database stuff, of course.)

 

 define('HTTP_SERVER', 'http://localhost/~brittany/hippo/'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://localhost/~brittany/hippo/'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', '1'); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'localhost');
 define('HTTPS_COOKIE_DOMAIN', 'localhost');
 define('HTTP_COOKIE_PATH', '.');
 define('HTTPS_COOKIE_PATH', '.');
 define('DIR_WS_HTTP_CATALOG', '');
 define('DIR_WS_HTTPS_CATALOG', '');
 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

I am developing on a Macbook Pro and running Snow Leopard. The site is saved in /Users/brittany/sites/hippo.

 

Any help is greatly appreciated. Thanks everyone.

Posted

have you copied all files to new folder? what about database, if you are using different mysql database?

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted

have you copied all files to new folder? what about database, if you are using different mysql database?

Yes I copied everything. I made a mysql database on my dev machine with the same name, and made a new user to connect to that database with the same username and password.

 

I noticed a new weird thing. When I try to log in to the admin page, I get this message:

"Unable to connect to database server!"

 

It's weird, because I can connect with that user and password and database. I tried it in MySQL workbench. I also wrote a short php script to verify the connection credentials, and it connects fine too. Here's the code

$link = mysql_connect('127.0.0.1:3306', $username, $password, $db);
if (!$link) {
   die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

That connects successfully. And, even weirder, osCommerce is showing inventory and reviews from the database - yet still complains that it can't connect. Weird, no?

 

What am I missing? Is it that I'm running php 5 with osCommerce 2.2? I was told that I'm running the same version of PHP as the live server, so I hope that's it. Again, ideas welcome. My friend is counting on me. @.@

Posted

did you change /admin/includes/configure.php as well?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...