RE: SECv2.2 with Credit Class and GVv5.05 for MS2

dougedmunds <[email protected]> 11 Sep 2003 19:22:17 -0000
Newsgroups gmane.comp.web.oscommerce.contributions
Message-ID <5bf206dbfd70d27658a60bda7382ca20@osCommerce-Forums>
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=228027#228027
----------------------------------------------------------------

No images on Admin side -- Path error

I am setting up a new site and the domain is not yet transferred
(ie  www.NEWSITE.com is still linked to the old host)

I am accessing the new host thru the backdoor:  
  http://host97.ipowerweb.com/~NEWSITE

In both configure.php files I have the full server path
set to:   http://host97.ipowerweb.com/~NEWSITE

On the user side, I get images, but on the 
admin side, no images.

If I look at the properties of a missing image, I see that the 
path is being set as:
http://host97.ipowerweb.com/catalog/images/microsoft/intkeyboardps2.gif

But it should be like this: http://host97.ipowerweb.com/~NEWSITE/catalog/images/microsoft/intkeyboardps2.gif

(on the user side it comes up like it should
http://host97.ipowerweb.com/~NEWSITE/catalog/images/microsoft/intkeyboardps2.gif)


Why is the /~NEWSITE part of the path getting parsed out 
for images, when viewed thru Admin? (presumably the entries in
the configure.php file are not being used).

What can I do to repair / temporarily override this until the domain transfer is completed, so I can see the images from the Admin side?
( I assume this problem will go away once the admin section is
accessed thru the domain name.)

Here is my ADMIN includes/configure.php: (I don't see anything wrong)

<?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 (c) 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://host97.ipowerweb.com/~NEWSITE');
  define('DIR_WS_HTTP_CATALOG', '/catalog/');

  define('HTTP_COOKIE_DOMAIN', 'host97.ipowerweb.com/~NEWSITE');
  define('HTTP_COOKIE_PATH', '/catalog/');

  define('HTTPS_SERVER', 'https://host97.ipowerweb.com/~NEWSITE'); 
  define('DIR_WS_HTTPS_CATALOG', '/catalog/');

  define('HTTPS_COOKIE_DOMAIN', 'host97.ipowerweb.com/~NEWSITE');
  define('HTTPS_COOKIE_PATH', '/catalog/');

  define('ENABLE_SSL', true); // secure webserver for checkout procedure?
  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/');
//dae added the '/'
  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/');

// define our database connection
  define('DB_SERVER', 'xxxxxxxxxx'); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', 'xxxxxxxx');
  define('DB_SERVER_PASSWORD', 'xxxxxx');
  define('DB_DATABASE', 'xxxxxxxxxxx');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

// moved to application_top.php
// WebMakers.com Added: Shoppe Enhancement Controller
//  require(DIR_WS_INCLUDES . 'configure_added.php');
?>