osCommerce Script installer

When using the script installer if we choose /cart the application is installed as expected. If we we want the installer to use / the images are not loading correctly the path is http:/images/ and the admin is using //admin and the whole app loads like molasses.

We would like the installer to function as it does with other applications.

How can this be corrected?

Status: 
Closed (fixed)

Comments

is this a bug?

Jamie, I can confirm this issue (and I have a fix!).

Whenever osCommerce is installed into the web root (and not a sub-dir), the images won't load properly.

The fix is, whenever it generates the includes/configure.php file, there's a line that looks like this:

define('DIR_WS_IMAGES', '//images/');

It appears to not like those "//" at the front there. Simply changing that line to the following fixes the issue:

define('DIR_WS_IMAGES', '/images/');

I have actually tried this and a couple other fixes that just seem to not be working for me

ie the admin area is still referenced with a // (images reamin broken on the admin end) and i cannot seem to find a simple fix for this

GGGGRRRRRR WHY OH WHY ME

admin has a seperate config wtf; so the files are getting additional /hash and making a mess see below.

Not real familiar with oscommerce; looks like the catalog path also has an extra /hash

includes/configure.php define('DIR_WS_HTTP_CATALOG', '//'); define('DIR_WS_HTTPS_CATALOG', '//'); define('DIR_WS_IMAGES', '//images/');

admin/includes/configure.php define('DIR_WS_ADMIN', '//admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '//'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', '//admin/images/');

Okay, so it looks like any place you see those double slashes like "//", that needs to be updated to just a single slash "/".

Jamie will be able to correct that in the Install Script, but you can manually edit those two config files in the meantime.

Thanks for finding this .. I will include a fix in the next Virtualmin release.

Ok i am testing some of the other installers and running into issues when the app runs at the root level.

Is it possible this issue applies to other installers? the extra /

Which specific installers did you run into issues with?

movable type reacted fine in a folder but when installed as web root it appeared broken. I have not used the installers much, given the couple oddities; I plan on testing all of them when installed root vs folder and will report back with a list of my findings.

Would this be helpful?

Thanks, that is a bug in the Movable Type installer .. I'll fix it in the next Virtualmin release.

Please let us know about any other broken installers that you find (preferably by filing new tickets).

Automatically closed -- issue fixed for 2 weeks with no activity.