Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Issue came up while modifying the header.php


jlaudio29

Recommended Posts

Ok so ive been slowly learning how to use this stuff in creating my own webpage, been doing pretty good but last night i went to try and change the header image and something happen i have no clue what, and i tried to reverse what i did in the header.php and i did but the problem didnt go away.

 

im sure most of you kknow what the stock layout is supposed to look like for oscommerce. well i need to get back to that with out losing the data i have already entered.

 

the website is www.jcfabshop.com

 

if you can tell me what happen to it. it would be much appreciated.

Link to comment
Share on other sites

in the file: /includes/configure.php

look for this line: define('DIR_WS_HTTP_CATALOG', ...

What do you have in there ... it seems as though you have define('DIR_WS_HTTP_CATALOG', '/catalog/'); but your site is NOT in catalog dir...so change it to define('DIR_WS_HTTP_CATALOG', '');

 

See if that fixes your problem...

Link to comment
Share on other sites

yah i changed it, didnt do anything. anything else?

 

Are you sure you changed it and uploaded it back to /includes/ folder?? ... paste your configure.php file here..

Link to comment
Share on other sites

Are you sure you changed it and uploaded it back to /includes/ folder?? ... paste your configure.php file here..

 

 

 

your right it wasnt changing it. i kept uploading the modified one from my desktop to the server and replacing the the one that was currently there.. i finally deleted the one off the server and uploaded the other one again. and it worked..

Link to comment
Share on other sites

your right it wasnt changing it. i kept uploading the modified one from my desktop to the server and replacing the the one that was currently there.. i finally deleted the one off the server and uploaded the other one again. and it worked..

 

you've made a mistake somewhere or missed out on a closing off something somewhere...paste your configure.php file here (make sure u remove the database info at the bottom before pasting it to the live forum here)

Link to comment
Share on other sites

you've made a mistake somewhere or missed out on a closing off something somewhere...paste your configure.php file here (make sure u remove the database info at the bottom before pasting it to the live forum here)

 

oh I just realised I missed out on a / ... your DIR should be set to the following: define('DIR_WS_HTTP_CATALOG', '/');

 

Sorry...

Link to comment
Share on other sites

<?php

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

define('HTTP_CATALOG_SERVER', 'http://www.jcfabshop.com');

define('HTTPS_CATALOG_SERVER', 'http://www.jcfabshop.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '//');

define('DIR_WS_ADMIN', '//admin/');

define('DIR_FS_ADMIN', '//admin/');

define('DIR_WS_CATALOG', '//');

define('DIR_FS_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/');

 

 

ok now when i try to go to product categories it gives me some error or when i try to click on a product it gives me an error. i cant find that line your refering to.

Link to comment
Share on other sites

<?php

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

define('HTTP_CATALOG_SERVER', 'http://www.jcfabshop.com');

define('HTTPS_CATALOG_SERVER', 'http://www.jcfabshop.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '//');

define('DIR_WS_ADMIN', '//admin/');

define('DIR_FS_ADMIN', '//admin/');

define('DIR_WS_CATALOG', '//');

define('DIR_FS_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/');

 

 

ok now when i try to go to product categories it gives me some error or when i try to click on a product it gives me an error. i cant find that line your refering to.

 

Thats your ADMIN configure file (you got it from /admin/includes/configure.php) ... post your other one (yes there are 2) (/includes/configure.php)

Link to comment
Share on other sites

ok so i screwed up, i somehow replaced my /includes config, with my admin/includes config.. so now i dont have it. but for the most part everything is running fine.

 

but how can i get one with all the right info in it?

Link to comment
Share on other sites

Here is a clean copy of the catalogs config file. It is from stock osc 2.2 updates 060817.

I filled in some of the info for you. you still need to fill in the database info.

<?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://jcfabshop.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://jcfabshop.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', 'false'); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'jcfabshop.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 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/');

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...