Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mac User here , OS 9


Guest

Recommended Posts

You also have the <base href=""> problem.

 

Read this thread: http://www.oscommerce.com/forums/index.php?showtopic=96589&hl=

 

Try Johnson's fix first, he's referring to a line in application_top.php, line 41. It's a more rigorous test of the server environment.

 

You can quickly fix it by making the simple changes to the include/configure.php file

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Do Johnson's fix first so we will all know if this should be a permanent recommended change.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

O.K. Alan

 

 

Have done what you recommended I got stuck on one line though

--------------------------------------------------------------------------- :unsure:

 

define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/yesterdaysheroes.us/subdomains/suns/httpdocs/');

 

------------------------------------------------------------------------------

 

 

Im fairly decent with file management yet not very good at php?

Link to comment
Share on other sites

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

 

 

this is what i have in my configure.php file

Link to comment
Share on other sites

Dont let go alan have to run errand will be back in 2 hours,

 

Thanks for your immediete replies

B) ------------> alan so kool for helping out

Link to comment
Share on other sites

O.K. Alan

 

 

Have done what you recommended I got stuck on one line though

--------------------------------------------------------------------------- :unsure:

 

define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/yesterdaysheroes.us/subdomains/suns/httpdocs/');

 

------------------------------------------------------------------------------

 

 

Im fairly decent with file management yet not very  good at php?

Huh? Don't adopt e_larkin's entire configure.php file! :o

 

I should have posted only my 4 lines.

 

Now we may have a mess.

 

I only wanted you to change two lines in your existing configure.php file.

 

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

define('HTTPS_SERVER', 'http://www.tufuente.com');

define('ENABLE_SSL', 'false');

define('HTTP_COOKIE_DOMAIN', 'www.tufuente.com');

define('HTTPS_COOKIE_DOMAIN', 'www.tufuente.com');

 

If you can't figure it out post your configure.php file.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Dont let go alan have to run errand will be back in 2 hours,

 

Thanks for your immediete replies

B) ------------> alan so kool for helping out

Don't worry, I'll be around all day, off and on. ;)

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

<?php

/*

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.tufuente.com');

define('HTTPS_COOKIE_DOMAIN', 'www.tufuente.com');

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']));

 

ALAN THIS LINE JUST ABOVE IS WHAT IS THROWING ME OFF LINE

 

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', '******');

define('DB_SERVER_PASSWORD', '****');

define('DB_DATABASE', 'tufuente_ecart');

define('USE_PCONNECT', 'true'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

ok well im back Alan and that's fine , ill do the changes you specified (4 lines)

I'd prefer that you try Johnson's change first. I know that the configure.php file change will fix the problem but it's a cludge.

 

If we know for sure that Johnson's fix works I can recommend that in the future. I don't have any servers with this problem so I can't test it myself.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

This line should work but it's not ideal.

 

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

If you drop a little file named phpinfo.php with these three lines into your catalog folder we can find the actual FS path.

 

<?
phpinfo();
?>

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

You need to add a / here.

 

define('HTTPS_COOKIE_PATH', '/');

 

and here

 

define('DIR_WS_HTTPS_CATALOG', '/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...