Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 1 votes

Oscommerce installing on LOCAL machine


23 replies to this topic

#1 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 08 June 2009, 23:32

Hi everyone,

I am currently setting up my oscommerce site that is live on my local machine, so I can make changes etc locally before i upload the new changes.

1. I have my configure.php files all updated, some of the path could be wrong but the database info is definitely correct.
2. I have installed WAMPserver so I have the exact same php, mySQL, and Apache versions as I do on my paid host
3. I am at the point where I can access my pages locally on my machine on the front end
4. On the back end I can access the admin section but the field names are all messed up...eg. HEADING_TITLE instead of it dynmically taking effect like it does on the live server. Many links inside the admin section do not work either.
5. Lastly I have three errors showing up at the top of the admin section ONLY.

Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\MemorywalkRemote\admin\includes\application_top.php on line 133

Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\MemorywalkRemote\admin\includes\application_top.php on line 133
Error ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST

Anyone have any clue as to what is causing this???? again, this is set up on my localhost...could this just be me messing up some paths in my configure.php files??

Thanks a million for this! :blush:

#2 rivalgraphix

  • Community Member
  • 36 posts
  • Real Name:Ryan Matthews
  • Gender:Male
  • Location:Washington DC

Posted 09 June 2009, 01:56

Why are you setting it up local? Won't you just have to change everything once its online?

#3 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 09 June 2009, 03:37

I got rid of the warnings by simply changing the following in the admin/includes/application_top.php file - around line 133 ---

// include the language translations
require(DIR_WS_LANGUAGES . $language . '.php');
$current_page = basename($PHP_SELF);
if (file_exists(DIR_WS_LANGUAGES . $language . '/languages/' . $current_page)) {
include(DIR_WS_LANGUAGES . $language . '/languages/english/' . $current_page);
}

BUT I am still having problems with the admin side of my local install. Most of the headers to the pages are not defined eg. TABLE_HEADING_CONFIGURATION_TITLE TABLE_HEADING_CONFIGURATION_VALUE TABLE_HEADING_ACTION

and.....none of the edit buttons work and I cannot access most pages. I believe I must have a simple path that needs to be changed for a local machine somewhere that would affecting some of the language files...

Oscommerce gods please come to my rescue, ive searched forever on this + tried (almost) everything

Thanks :blush:

#4 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 09 June 2009, 03:42

View Postrivalgraphix, on Jun 9 2009, 02:56 AM, said:

Why are you setting it up local? Won't you just have to change everything once its online?
There is one major reason why. I want a solid testing server that allows me to edit changes locally on my machine before I deploy them to the web. For creating any professional sites this is pretty much mandatory. I am really surprised there is hardly any documentation anywhere on what the small differences are in getting oscommerce set up on a local machine and on the web.

I know I am super close to getting this set up, I just need to know what path is changing all the headers and functionality in the admin section. It seems like ive tried everyhting in the admin/includes/configure.php file.

Any ideas of what path and in what file i should be looking at?

#5 BryceJr

  • Community Member
  • 1,448 posts
  • Real Name:Bryce

Posted 09 June 2009, 05:08

Post your admin/includes/configure.php file. Do not include database section.

Edited by BryceJr, 09 June 2009, 05:09.


#6 rivalgraphix

  • Community Member
  • 36 posts
  • Real Name:Ryan Matthews
  • Gender:Male
  • Location:Washington DC

Posted 09 June 2009, 06:41

View Postjeremiah11, on Jun 8 2009, 11:42 PM, said:

For creating any professional sites this is pretty much mandatory.

Mandatory? Yeah, I don't think so.

Unless you are running many, many servers and sites, this is totally unnecessary and seems like you are wasting valuable time doing so. There are easier ways to do this.

#7 styloa

  • Community Member
  • 19 posts
  • Real Name:Adam Stylo
  • Gender:Male
  • Location:Maidenhead, UK

Posted 09 June 2009, 10:48

I have done a localhost install many times, never had to modify code to get it working. From the path you posted it seems you use wamp server. So do I, so in theory you should have no problems....

What steps did you take? From memory:

1. create a new dir in wamp\www and unzip osC catalog folder there
2. create a db
3. open the browser (firefox of course!), navigate to the new folder
4. punch the DB login details when asked
5. Delete /install and change configure.php to read only (to get rid of the warnings).
6. done.

If you then want to copy an existing site to localhost simply keep the configure.php and replace all other files....

#8 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 09 June 2009, 11:12

View PostBryceJr, on Jun 9 2009, 06:08 AM, said:

Post your admin/includes/configure.php file. Do not include database section.

define('HTTP_SERVER', 'http://127.0.0.1/MemorywalkRemote'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://127.0.0.1/MemorywalkRemote');
define('HTTPS_CATALOG_SERVER', 'https://127.0.0.1/MemorywalkRemote');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', 'C://wamp/www/'); // 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', 'C://wamp/www/MemorywalkRemote/admin/');
define('DIR_WS_CATALOG', 'MemorywalkRemote/');
define('DIR_FS_CATALOG', 'C://wamp/www/MemorywalkRemote/');
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/english/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . '/includes/languages/english/');
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/');

Thanks for taking the time to look at this!

#9 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 09 June 2009, 11:23

View Poststyloa, on Jun 9 2009, 11:48 AM, said:

I have done a localhost install many times, never had to modify code to get it working. From the path you posted it seems you use wamp server. So do I, so in theory you should have no problems....

What steps did you take? From memory:

1. create a new dir in wamp\www and unzip osC catalog folder there
2. create a db
3. open the browser (firefox of course!), navigate to the new folder
4. punch the DB login details when asked
5. Delete /install and change configure.php to read only (to get rid of the warnings).
6. done.

If you then want to copy an existing site to localhost simply keep the configure.php and replace all other files....

I do use Wamp server and I am trying to set up an existing site on my local machine...i modified the configure.php to a new user that I added to myphpadmin. It connects fine but link/headings do not work. I did export the database info from my live site and imported it into my local site. Is this where I could have went wrong? It seemed to work fine so I still think my problem is a path somewhere. Other than that I did the steps you listed above. I am using Dreamweaver to manage the site.

You are at least giving me some hope that you did get a local install to work....In posted my admin/configure.php in a reply to someone else in this very thread if you want to take a look.

Thanks, :blush:

#10 geoffreywalton

  • Community Sponsor
  • 7,731 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 09 June 2009, 11:42

Interesting use of double forward slash //, is this a vista thing? :-)

Sample xampp /includes/configure.php file where shop is installed in a directory called rc2a.

HTH

G

<?php
  define('HTTP_SERVER', 'http://localhost');
  define('HTTPS_SERVER', 'http://localhost');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', 'localhost');
  define('HTTPS_COOKIE_DOMAIN', 'localhost');
  define('HTTP_COOKIE_PATH', '/rc2a/');
  define('HTTPS_COOKIE_PATH', '/rc2a/');
  define('DIR_WS_HTTP_CATALOG', '/rc2a/');
  define('DIR_WS_HTTPS_CATALOG', '/rc2a/');
  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/');
// BEGIN newdesk
define('DIR_WS_RSS', DIR_WS_INCLUDES . 'modules/newsdesk/rss/');
// END newsdesk
//USAGE - call the url /rss.php?box=categories or /rss.php?box=whats_new or /rss.php?box=newsdesk_latest.php

  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/rc2a/');

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 ======>>>>>.

#11 styloa

  • Community Member
  • 19 posts
  • Real Name:Adam Stylo
  • Gender:Male
  • Location:Maidenhead, UK

Posted 09 June 2009, 12:32

View Postjeremiah11, on Jun 9 2009, 12:12 PM, said:

define('HTTP_SERVER', 'http://127.0.0.1/MemorywalkRemote'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://127.0.0.1/MemorywalkRemote');
define('HTTPS_CATALOG_SERVER', 'https://127.0.0.1/MemorywalkRemote');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', 'C://wamp/www/'); // 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', 'C://wamp/www/MemorywalkRemote/admin/');
define('DIR_WS_CATALOG', 'MemorywalkRemote/');
define('DIR_FS_CATALOG', 'C://wamp/www/MemorywalkRemote/');
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/english/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . '/includes/languages/english/');
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/');

Thanks for taking the time to look at this!

Ok my 2p worth:

1. Your HTTP_xx_SERVER defines should be just http://127.0.0.1 or http://localhost
2. Your DIR_xx_CATALOG_LANGUAGES should probably not have /english/

Judging by your error message it may be no 2 that is your source of trouble.

Other than that looks ok methinks.

A side note - do you have a ssl certificate installed on your local machine? If not, best point everything to http:// for your test setup.

#12 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 10 June 2009, 19:40

View Poststyloa, on Jun 9 2009, 01:32 PM, said:

Ok my 2p worth:

1. Your HTTP_xx_SERVER defines should be just http://127.0.0.1 or http://localhost
2. Your DIR_xx_CATALOG_LANGUAGES should probably not have /english/

Judging by your error message it may be no 2 that is your source of trouble.

Other than that looks ok methinks.

A side note - do you have a ssl certificate installed on your local machine? If not, best point everything to http:// for your test setup.

Thanks for the reply! I will take a look at this tonight. I do beleive i tried this before but I will test it again just to make sure. I do not have SSL set up on my local machine so I will change those as well.

Jeremy

#13 geoffreywalton

  • Community Sponsor
  • 7,731 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 10 June 2009, 20:09

HTH

G

  define('HTTP_SERVER', 'http://localhost');
  define('HTTPS_SERVER', 'http://localhost');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', 'localhost');
  define('HTTPS_COOKIE_DOMAIN', 'localhost');
  define('HTTP_COOKIE_PATH', '/MemorywalkRemote/');
  define('HTTPS_COOKIE_PATH', '/MemorywalkRemote/');
  define('DIR_WS_HTTP_CATALOG', '/MemorywalkRemote/');
  define('DIR_WS_HTTPS_CATALOG', '/MemorywalkRemote/');
  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('HTTP_SERVER', 'http://localhost');
  define('HTTP_CATALOG_SERVER', 'http://localhost');
  define('HTTPS_CATALOG_SERVER', 'http://localhost');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', 'C:/wamp/www/MemorywalkRemote/');
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_FS_ADMIN', 'C:/wamp/www/MemorywalkRemote/admin/');
  define('DIR_WS_CATALOG', '/MemorywalkRemote/');
  define('DIR_FS_CATALOG', 'C:/wamp/www/MemorywalkRemote/');
  define('DIR_WS_IMAGES', 'images/');

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 ======>>>>>.

#14 kuai

  • Community Member
  • 113 posts
  • Real Name:kuai
  • Gender:Male
  • Location:U.S.A.

Posted 11 June 2009, 13:37

Hey,
I'm using xampp and this is the config file from the includes folder. I don't think you need the "www.yourdomain.com" in that file. or in the config file from the admin\includes folder. It may be easier for you to start with a fresh install of osCommerce. It only takes about 5 minutes to install anyway. Your wasting more time trying to fix something when you could be editing files for your shop. You can upload your store afterwards at which time you'll need the "www.yourdomain.com" stuff added. But for your localhost, that is not needed.


<?php
define('HTTP_SERVER', 'http://localhost');
define('HTTPS_SERVER', 'http://localhost');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/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', 'C:/xampp/htdocs/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'root');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'oscommerce');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

#15 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 14 June 2009, 16:55

So I followed the advice and i updated the both the configure.php files. Just to note I can get pages to show up in the browser but none of the product pages. The admin side is where I am struggling to get set up. The titles to all the menu's in admin are all messed up so it leads me to beelive its not getting the right path to the languages files. I also cannot access any of the products/pages inside of admin. None of hte links work but I can access the default admin menu.

Here is my newly updated admin/configure.php file....please help!

define('HTTP_SERVER', 'http://127.0.0.1'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://127.0.0.1');
define('HTTPS_CATALOG_SERVER', 'http://127.0.0.1');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', 'C://wamp/www/MemorywalkRemote/'); // 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', '/MemorywalkRemote/admin/');
define('DIR_FS_ADMIN', 'C:/wamp/www/MemorywalkRemote/admin/');
define('DIR_WS_CATALOG', '/MemorywalkRemote/');
define('DIR_FS_CATALOG', 'C:/wamp/www/MemorywalkRemote/');
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/');


View Postgeoffreywalton, on Jun 10 2009, 09:09 PM, said:

HTH

G

  define('HTTP_SERVER', 'http://localhost');
  define('HTTPS_SERVER', 'http://localhost');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', 'localhost');
  define('HTTPS_COOKIE_DOMAIN', 'localhost');
  define('HTTP_COOKIE_PATH', '/MemorywalkRemote/');
  define('HTTPS_COOKIE_PATH', '/MemorywalkRemote/');
  define('DIR_WS_HTTP_CATALOG', '/MemorywalkRemote/');
  define('DIR_WS_HTTPS_CATALOG', '/MemorywalkRemote/');
  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('HTTP_SERVER', 'http://localhost');
  define('HTTP_CATALOG_SERVER', 'http://localhost');
  define('HTTPS_CATALOG_SERVER', 'http://localhost');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', 'C:/wamp/www/MemorywalkRemote/');
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_FS_ADMIN', 'C:/wamp/www/MemorywalkRemote/admin/');
  define('DIR_WS_CATALOG', '/MemorywalkRemote/');
  define('DIR_FS_CATALOG', 'C:/wamp/www/MemorywalkRemote/');
  define('DIR_WS_IMAGES', 'images/');


#16 geoffreywalton

  • Community Sponsor
  • 7,731 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 14 June 2009, 17:05

on a quick scan you are still usng 127.0.0.1 and have c://
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 ======>>>>>.

#17 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 14 June 2009, 17:21

View Postgeoffreywalton, on Jun 14 2009, 06:05 PM, said:

on a quick scan you are still usng 127.0.0.1 and have c://

I updated both of these and still the same result. Any other ideas as to what could be causing the problem? I have never came across this problem before so its a bit mysterious to me.

For example from hte admin menu i click on catalog i get this across the top instead of the dynamic content:

HEADING_TITLE
HEADING_TITLE_SEARCH
HEADING_TITLE_GOTO
TABLE_HEADING_CATEGORIES_PRODUCTS TABLE_HEADING_STATUS TABLE_HEADING_ACTION

There has to be one path this is messed up that is creating this problem and its driving me insane that I cannot find which one it is. Is there any other files besides the configure.php files that need to be updated?

#18 bktrain

  • Community Member
  • 2,093 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 14 June 2009, 18:08

Try this
define('HTTP_SERVER', 'http://localhost'); // eg, [url="http://localhost"]http://localhost[/url] or - [url="https://localhost"]https://localhost[/url] should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://localhost');
define('HTTPS_CATALOG_SERVER', 'https://localhost');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', $_SERVER['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', '/MemorywalkRemote/admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
define('DIR_WS_CATALOG', '/MemorywalkRemote/');
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/');

Edited by bktrain, 14 June 2009, 18:08.

Remember to backup database, files and pictures.

I reject your reality and substitute my own.
My mind not only wanders, it sometimes leaves completely.
The problem with the gene pool is that there is no lifeguard.
Everyone’s entitled to my opinion.


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#19 jeremiah11

  • Community Member
  • 73 posts
  • Real Name:Jeremy McLean
  • Gender:Male
  • Location:Saint Jilly Bean

Posted 14 June 2009, 18:34

View Postbktrain, on Jun 14 2009, 07:08 PM, said:

Try this
define('HTTP_SERVER', 'http://localhost'); // eg, [url="http://localhost"]http://localhost[/url] or - [url="https://localhost"]https://localhost[/url] should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://localhost');
define('HTTPS_CATALOG_SERVER', 'https://localhost');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', $_SERVER['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', '/MemorywalkRemote/admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
define('DIR_WS_CATALOG', '/MemorywalkRemote/');
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/');

Still the same result, after so much effort inside of the configure.php files I think its somewhere else that's causing the problem on my local machine. Permissions, path in another file?

Thanks for your efforts :blush:

#20 styloa

  • Community Member
  • 19 posts
  • Real Name:Adam Stylo
  • Gender:Male
  • Location:Maidenhead, UK

Posted 15 June 2009, 09:41

View Postjeremiah11, on Jun 14 2009, 07:34 PM, said:

Still the same result, after so much effort inside of the configure.php files I think its somewhere else that's causing the problem on my local machine. Permissions, path in another file?

Thanks for your efforts :blush:

Ok,

Lets check some basics again.... in no particular order and taking into account that I only had one cup of coffee so far this Monday:

1. Do you have PHP warnigs/errors enabled? Anything interesting in the log files? You would expect some complaint about a missing include file etc.

2. Are you able to run a plain vanilla osC installation on your machine? Should take 10 minutes and will prove there is nothing wrong with the way your local PC is set up.

3. The code that is giving you trouble - it DEFINITELY does work on another server? Are you sure nothing got corrupted during the copy? Copy it again and do a directory diff.

4. How customised is your version of osC? If it isn't too hacked you may be able to merge it gradually into a working plain vanilla install.... and check for problems at every step.

5. Any other differences between the working setup and your localhost? Some redirection in the .htaccess file? Some osC contrib that needs something extra special?

Other than that it would be time to get your sleeves rolled up and do some debugging. If you have a proper debugger you may be able to step through the code. If you don't, I would suggest locating a the include calls that pull in language strings and printing out the EXACT path+file name via an echo statement after the <body> tag.

On a positive note - once you find your problem it will probably be a Homer moment.... dough! Please do share it ;-)