HeyItsCory Posted March 11, 2006 Posted March 11, 2006 So, I decided I wanted to start selling stuff online through my website, and I changed my host to dreamhost.com and they sure delivered. Free ecommerce software right on my site. I'm just having trouble setting it up. I put it on greencircuits.com/store and it looks crappy all the image links are broken. I looked at the code and the image file addresses are not correct and have something like //: where they should http:// I went through and changed them all in my html editor and it immediately looked right, but there's got to be a way to fix this problem permanently. This problem also seems related to a problem I'm having in my admin folder. I can change information easily enough through their interface but when I click update it gives me an obnoxious 404 error. ----------------- Not Found The requested URL /store/admin/://www.greencircuits.com/store/admin/configuration.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ----------------- It changes whatever I'm trying to change just fine, but I think the fact that it won't operate smoothly is a sign of my bigger problem. I was also wondering if there is a user-side desktop interface that is designed to function with osCommerce. Thanks in advance for all your help. :) -Cory P.S. I would like to appologize if all my questions have be answered here before dozens of times. I'm new to this place and wouldn't know what to call what I would be searching for. Feel free to passive agressively post links to those threads for me. ;)
armadillo Posted March 11, 2006 Posted March 11, 2006 So, I decided I wanted to start selling stuff online through my website, and I changed my host to dreamhost.com and they sure delivered. Free ecommerce software right on my site. I'm just having trouble setting it up. I put it on greencircuits.com/store and it looks crappy all the image links are broken. I looked at the code and the image file addresses are not correct and have something like //: where they should http:// I went through and changed them all in my html editor and it immediately looked right, but there's got to be a way to fix this problem permanently. This problem also seems related to a problem I'm having in my admin folder. I can change information easily enough through their interface but when I click update it gives me an obnoxious 404 error. ----------------- Not Found The requested URL /store/admin/://www.greencircuits.com/store/admin/configuration.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ----------------- It changes whatever I'm trying to change just fine, but I think the fact that it won't operate smoothly is a sign of my bigger problem. I was also wondering if there is a user-side desktop interface that is designed to function with osCommerce. Thanks in advance for all your help. :) -Cory P.S. I would like to appologize if all my questions have be answered here before dozens of times. I'm new to this place and wouldn't know what to call what I would be searching for. Feel free to passive agressively post links to those threads for me. ;) I started on a similar offering of OSC in 1994, it was a 2.0 version provided by the host. Have been working almost a year redoing everything to the MS2. My point is, your install does not sound like it went as designed and it may not be your fault. I would suggest downloading from here a fresh version and then do the install yourself. It was easier for me to start over than to try to make the changes needed to update my site, and this may be the case for you. Unless, of course, you can find someone on your host willing and knowledgable enough to help you out. www.djscollectables.com
HeyItsCory Posted March 11, 2006 Author Posted March 11, 2006 I tried unintalling and installing it (a few times). No dice. Same problem. Is this the wrong part of the board for this question? Is this an installation issue?
satish Posted March 11, 2006 Posted March 11, 2006 I tried unintalling and installing it (a few times). No dice. Same problem. Is this the wrong part of the board for this question? Is this an installation issue? If the paths are wrong as the Url says.You need to modify your config.php file in includes folder. If you are not able to then just paste your config file here. But just block the data base details. Satish Mantri Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
HeyItsCory Posted March 11, 2006 Author Posted March 11, 2006 If the paths are wrong as the Url says.You need to modify your config.php file in includes folder.If you are not able to then just paste your config file here. But just block the data base details. Satish Mantri Do I have to know PHP in order to do that? What do I need to modify about it? EDIT: Also, it's giving me a 403 when I try to access it. How do I get to that file? It's not browsable.
ozcsys Posted March 11, 2006 Posted March 11, 2006 I tried unintalling and installing it (a few times). No dice. Same problem. Is this the wrong part of the board for this question? Is this an installation issue? Are you doing the reinstalling manually using the files from this site or installing from your hosting control panel? If the later my guess is that there is something wrong with the installation routine and you should try manually uploading the files and see if that helps.... The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
ozcsys Posted March 11, 2006 Posted March 11, 2006 Do I have to know PHP in order to do that? What do I need to modify about it? EDIT: Also, it's giving me a 403 when I try to access it. How do I get to that file? It's not browsable. If you have not installed osC manually using the files found HERE then you should first read all the install instructions found HERE and then download osC and do the install. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
HeyItsCory Posted March 11, 2006 Author Posted March 11, 2006 If you have not installed osC manually using the files found HERE then you should first read all the install instructions found HERE and then download osC and do the install. Installing manually with my FTP program didn't work either. It let me install, let me enter all my information and then when it finished the store popped up broken like before (though now with broken links to DVDs) Does this sound familar to anyone?
HeyItsCory Posted March 11, 2006 Author Posted March 11, 2006 <?php/* 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', '://'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.greencircuits.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/cgi'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', 'www.greencircuits.com/store/'); 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', '/home/heyitscory/greencircuits.com/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'shop.greencircuits.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'myusername'); define('DB_SERVER_PASSWORD', 'mypassword'); define('DB_DATABASE', 'shopgreencircuits'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Found that file... what can it tell us?
custodian Posted March 12, 2006 Posted March 12, 2006 Found that file... what can it tell us? Fdnd define('HTTP_SERVER', '://'); // eg, http://localhost - should not be empty for productive servers change to define('HTTP_SERVER', 'http://www.greencircuits.com'); // eg, http://localhost - should not be empty for productive servers ================= Find define('DIR_WS_HTTP_CATALOG', 'www.greencircuits.com/store/'); Change to define('DIR_WS_HTTP_CATALOG', '/store/'); ================ Find define('DIR_FS_CATALOG', '/home/heyitscory/greencircuits.com/store/'); This may or may not be correct, it's not typical to see a personal directory with dots in it My Contributions Henry Smith
stevel Posted March 12, 2006 Posted March 12, 2006 Hi, Cory... See, this is why I hate the idea of hosts auto-installing scripts for users. The auto-installs ALWAYS screw it up, and the users don't understand enough to recognize it. My own host does this too and I probably spend more than half my time in their user forums helping people extricate themselves from the mess the auto-install caused. If that configure.php you posted is what you have, it is seriously messed up. Make the following changes: define('HTTP_SERVER', 'http://greencircuits.com''); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://greencircuits.com''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'greencircuits.com'); define('HTTPS_COOKIE_DOMAIN', 'greencircuits.com'); define('HTTP_COOKIE_PATH', '/store/'); define('HTTPS_COOKIE_PATH', '/store/'); define('DIR_WS_HTTP_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); Start with that and see where you get. You will need to make corresponding changes to the admin's configure.php, but note that the two files are NOT interchangeable. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
HeyItsCory Posted March 12, 2006 Author Posted March 12, 2006 Hi, Cory... Holy crap... Steve! What a small internet it is. Is there anything you DON'T selflessly help people with? :D
stevel Posted March 12, 2006 Posted March 12, 2006 I'm sure there must be something... But I followed your link in TCF. I had not spotted your thread here before. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
HeyItsCory Posted March 12, 2006 Author Posted March 12, 2006 I'm sure there must be something... But I followed your link in TCF. I had not spotted your thread here before. Okay, I did those changes in the file I posted the code from, then I looked for those in the other one you said to check. I could not find all of them exactly the same. <?php/* 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://greencircuits.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://greencircuits.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'greencircuits.com'); define('HTTPS_COOKIE_DOMAIN', 'greencircuits.com'); define('HTTP_COOKIE_PATH', '/store/'); define('HTTPS_COOKIE_PATH', '/store/'); define('DIR_WS_HTTP_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); 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', '/home/heyitscory/greencircuits.com/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'shop.greencircuits.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'shopgreencircuits'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> It says I have an error on line 15 when I go to the store address now. At least it did something. It means I'm closer. <?php/* 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://greencircuits.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://greencircuits.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/heyitscory/greencircuits.com/store/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/store/admin/'); // absolute path required define('DIR_FS_ADMIN', '/store/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/store/'); // absolute path required define('DIR_FS_CATALOG', '/home/heyitscory/greencircuits.com/store/'); // absolute path required 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', 'shop.greencircuits.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'shopgreencircuits'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Here is the admin/includes/configure.php
stevel Posted March 12, 2006 Posted March 12, 2006 Hmm. I don't see an error in your store configure.php. It parses ok for me, but something is different on your store? Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
HeyItsCory Posted March 12, 2006 Author Posted March 12, 2006 Hmm. I don't see an error in your store configure.php. It parses ok for me, but something is different on your store? What's posted is what got FTP'd to the site. I go to greencircuits.com/store and I get this error. .................... Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/.augusta/heyitscory/greencircuits.com/store/includes/configure.php on line 15
stevel Posted March 12, 2006 Posted March 12, 2006 How about you PM me with FTP server and login info and i'll take a look. Something else is going wrong... Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
HeyItsCory Posted March 12, 2006 Author Posted March 12, 2006 How about you PM me with FTP server and login info and i'll take a look. Something else is going wrong... Okay. Note to everyone reading: I know this guy from another forum. I am not a moron who would give this info to anyone. :)
HeyItsCory Posted March 18, 2006 Author Posted March 18, 2006 Okay, I've changed what needed changed. I'm having trouble replacing things and deleting things with my FTP program (WS_FTP Pro) so I don't know if the files are getting where the need to be. Anyway I think I have changed every instance of the two problems I was having with the :// and the /store/ now I get this problem at the top of my page... Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/.augusta/heyitscory/greencircuits.com/store/includes/configure.php:46) in /home/.augusta/heyitscory/greencircuits.com/store/includes/functions/sessions.php on line 97 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/.augusta/heyitscory/greencircuits.com/store/includes/configure.php:46) in /home/.augusta/heyitscory/greencircuits.com/store/includes/functions/sessions.php on line 97 I'm a little mad at my web host. Why even bother offering this free ecommerce solutions to people (and not support it) if you're going to make it so screwed up when you install it? It's like offering you a free can of beer, but the can's pull opener is broken off. Such a tease.
stevel Posted March 18, 2006 Posted March 18, 2006 Cory, didn't you see my suggestion on this? Check your catalog/includes/languages/english.php file and make sure that it has no blank lines at the end. Now you see why I don't like web host auto-installs of complex scripts. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
HeyItsCory Posted March 18, 2006 Author Posted March 18, 2006 Cory, didn't you see my suggestion on this? Check your catalog/includes/languages/english.php file and make sure that it has no blank lines at the end. Now you see why I don't like web host auto-installs of complex scripts. There seemed to be a blank line at the end of the file, so I deleted that and then uploaded it. To make sure it was actually getting where it needed to be, I actually deleted the first file with the FTP program before uploading the fixed one. That didn't change anything, so I got rid of the ?> at the end just in case that was what you were talking about. That didn't change anything either.
stevel Posted March 18, 2006 Posted March 18, 2006 You certainly didn't want to delete the ?> at the end. The first line of this file must start with <?php and the last line must end with ?> with no characters outside of these. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
stevel Posted March 18, 2006 Posted March 18, 2006 (Ignore this) Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
HeyItsCory Posted March 19, 2006 Author Posted March 19, 2006 Well, there's some progress... My admin area no longer 404's everytime I do something! That makes setting things up MUCH faster and easier, as well as makes me feel like the whole darn thing isn't broken beyond all hope. I will try searching for index page problems like mine. In the default text of the page it mentions "errors at the top of the page" that "must be fixed" before continuing. (Of course it doesn't have any sort of guide or anything.) That means they are common, and if the problem is common, the solution is on the internet.
stevel Posted March 19, 2006 Posted March 19, 2006 The "errors at the top of the page" are usually the warnings about being able to write the configuration file. This is fixed by setting the protection of the configure.php files to 400. Note that if you do this, you have to set it back to 700 before uploading a new copy. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Recommended Posts
Archived
This topic is now archived and is closed to further replies.