deant Posted October 28, 2002 Posted October 28, 2002 Hi, I know 2.2 is not a stable release as yet but I am using it on my Intranet. Problem is this, when I go to buy something I do not get shipping or payment options. Within the admin panel and I go to shipping, all I get or see os the path to the option or .php files. I also get the same when I click on payment option. If this is because the build is not final I can understand that and wait, if it is because there is another problem can someone tell me. Thanks Do not think you are good at what you do, unless you know you are better than the rest!
deant Posted October 29, 2002 Author Posted October 29, 2002 I know this is 2.2 but I would have thought someone could shed some light for me....PLEASE. Do not think you are good at what you do, unless you know you are better than the rest!
Ajeh Posted October 29, 2002 Posted October 29, 2002 Check and make sure that the /catalog/includes/modules/shipping are the code for the shipping modules and not the language files. Same on the /catalog/includes/modules/payment Then go to the /includes/languages/modules/shipping and make sure these are the definitions and the same on /includes/languages/modules/payments If the code and the definitions are in the right places ... go into the database table for configuration and see what is in the setting for the MODULE_PAYMENT_INSTALLED This should contain a list of the filenames for the payment modules on your computer. There should also be an entry for MODULE_SHIPPING_INSTALLED for the shipping modules on your computer.
deant Posted October 29, 2002 Author Posted October 29, 2002 Check and make sure that the /catalog/includes/modules/shipping are the code for the shipping modules and not the language files. Same on the /catalog/includes/modules/payment Then go to the /includes/languages/modules/shipping and make sure these are the definitions and the same on /includes/languages/modules/payments If the code and the definitions are in the right places ... go into the database table for configuration and see what is in the setting for the MODULE_PAYMENT_INSTALLED This should contain a list of the filenames for the payment modules on your computer. There should also be an entry for MODULE_SHIPPING_INSTALLED for the shipping modules on your computer. The trouble is, in 2.2 there is a modules page that comes up and has the red and green activity buttons on it, that is what is not coming up at all, not on any of the 3 modules, ie, payment, shipping and order total. I think that some code maybe missing or linked incorrectly to the PHP file that brings this up. The only thing I see where the options box should be is the path to the relevent file its looking for, which is as copied from the page and this is all it shows "Module Directory: /catalog/includes/modules/payment/" I would have thought it would be calling a certain file, maybe I don't have write enabled on that directory, not sure if it writes this on the fly or not. Thanks for your help.. Do not think you are good at what you do, unless you know you are better than the rest!
Ajeh Posted October 29, 2002 Posted October 29, 2002 If the configure.php is not correct or it does not see the modules or the modules are the language files rather than the code this will often happen. It also happens if the cofiguration table has an error in the two keys that I gave you, as in they are missing or damaged etc. There could be another possibility but most often these are the errors I find cause that you to just see the path. The most common issue is the configure.php has an error in it, the next is an .htaccess file miscoded.
deant Posted October 29, 2002 Author Posted October 29, 2002 If the configure.php is not correct or it does not see the modules or the modules are the language files rather than the code this will often happen. It also happens if the cofiguration table has an error in the two keys that I gave you, as in they are missing or damaged etc. There could be another possibility but most often these are the errors I find cause that you to just see the path. The most common issue is the configure.php has an error in it, the next is an .htaccess file miscoded. I am looking into the rest of the possibilites, I am fairly new to this 2.2, never had a problem with my working version of 2.1. I don't think its the .htaccess file, we can rule that one out as I am using this on a 2000 adv server (yes yes, yukky Microsoft)... I am also not too good with .php but I am working on it, I will post my config file on here, maybe you could have a look and tell me if something is wrong with it? Personaly I can't see anything wrong with it, but again, I am no .PHP expert.. lol Thanks again for your help. Just one other thing, when I installed the program and went to the install.php and went through the motions, all went well but when I tried to access the catalog or admin pages it told me there was no database defined, I went in and manualy set the D-Base options as I do with 2.1, do you think this could have something to do with it?? heres the config from catalog...... -----------------paste------------------- <?php /* $Id: configure.php,v 1.12 2002/06/16 22:11:53 harley_vb Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 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://192.168.0.2'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://192.168.0.2'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', $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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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 NULL 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' ?> here is the one from admin... ---------paste------------------- <?php /* $Id: configure.php,v 1.13 2002/07/20 09:08:31 project3000 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://192.168.0.2'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://192.168.0.2'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $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', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); 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/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '****'); define('DB_DATABASE', '****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Do not think you are good at what you do, unless you know you are better than the rest!
Ajeh Posted October 29, 2002 Posted October 29, 2002 Make sure that: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); is really your root. On mine, I have to put in my actual root here or things don't work the way they should. You can put a <?php echo $DOCUMENT_ROOT; ?> somewhere in both of your /include/header.php files to see what this really is as you move around the catalog/admin I found mine was not producing the same results as: what my real root was. As soon as I typed in the real setting, it fixed everything.
deant Posted October 30, 2002 Author Posted October 30, 2002 Make sure that: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); is really your root. On mine, I have to put in my actual root here or things don't work the way they should. You can put a <?php echo $DOCUMENT_ROOT; ?> somewhere in both of your /include/header.php files to see what this really is as you move around the catalog/admin I found mine was not producing the same results as: what my real root was. As soon as I typed in the real setting, it fixed everything. Thanks for your help, but this is getting to confusing for me. Think I better stick to html lol.. I can't figure this out, I have looked at just about everything and I am confused. Do not think you are good at what you do, unless you know you are better than the rest!
deant Posted October 30, 2002 Author Posted October 30, 2002 When you say the root, can you explain a little more, do you mean c:/inetpub/wwwroot/catalog/ ??? and exactly how would that be in the line? Sorry, as I said, I am fairly new to PHP and I am learning, so please be patient with me....... Be gentle ;) Thanks again Do not think you are good at what you do, unless you know you are better than the rest!
deant Posted October 31, 2002 Author Posted October 31, 2002 Linda, thank you, all fixed now thanks to yourself....... Only thing is the shipping option does not come up when placing an order, is that normal? I also have a couple of other questions I would like to ask people.... (1) At the top of internet explorer I would like to change the default page header to my site rather then to say osCommerce. (2) The copyright notice on the footer, I cannot find that to change it, I still want the osCommerce link there as this software is really theres, just would like to put my Copyright on there as I will be adding my own Icons and Images. Any help would be real cool.... Again, Linda, you are a star! thanks a bunch, would give you a big wet kiss if I could find a way of E-Mailing it to you! lol :oops: Do not think you are good at what you do, unless you know you are better than the rest!
Guest Posted August 10, 2003 Posted August 10, 2003 If the configure.php is not correct or it does not see the modules or the modules are the language files rather than the code this will often happen. It also happens if the cofiguration table has an error in the two keys that I gave you, as in they are missing or damaged etc. There could be another possibility but most often these are the errors I find cause that you to just see the path. The most common issue is the configure.php has an error in it, the next is an .htaccess file miscoded. I'v tried almost all ideas around (still looking for new ones). What .htaccess miscode could cause this? Any hints are welcome...
Guest Posted April 6, 2006 Posted April 6, 2006 Hi Peeps Could I please ask you about the DOCUMENT_ROOT situation, as I know that you have managed to resolve this. My webhost put OS commerce on for me, but when opening catalog/index.php and changing the DOCUMENT_ROOT to /mysite.com/, all of OSC is down. Is this the correct way of spelling the entry. So, the entry looks like this. NO LONGER--- define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on IS NOW--- define('DIR_FS_DOCUMENT_ROOT', /mysite.com/); // where your pages are located on Much appreciated Eddie Howell
Bubba Al Posted January 31, 2007 Posted January 31, 2007 I am also having this problem, I have checked my config files and they seem to be ok, my root document is pointed to the right place. In my SQL database I have nothing in the configuration value field and I'm not sure how to fix that, can anyone help me with that? At the moment I have only the stock payment options for my site...any help would be greatly appreciated as quickly as possible. Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.