Bahgwan Posted January 6, 2005 Share Posted January 6, 2005 I'm extremely frustrated with OScommerce. What the #$@#% is going on!? I was working on setting up my online store... everything was working fine. I started to get some errors, and other problems which I posted and got no responce. No problem, I'll work on it myself. Now, after wiping out all my progress, re-installing OScommerce, and all the Administration setup... When I try to add a product (and that's the only thing I've done since I've started from scratch) I GET THE $#%@#$% Warning: No file uploaded. WHAT AM I DOING WRONG!!!!!!? Someone please help me! -Steve Link to comment Share on other sites More sharing options...
safoo Posted January 6, 2005 Share Posted January 6, 2005 Bahgwan, I know you are new here, but these forums aren't here so you can take out your "frustration". osCommerce has been around for a long time and you aren't the first person to have a problem uploading images. Whenever you have a problem, your first action should be to use the search function or check the knowledge base. On the top right of the forums there is a 'search' button. A simple search for "upload images" brings up 2 possible things for you to check: 1. Check the path to the images folder in catalog/includes/configure.php 2. Make sure the images folder has has chmod 777 If that doesn't work, post the following from your catalog/includes/configure.php files: define('HTTP_SERVER', 'http://XXX'); // eg, http://localhost - should not be empty for productive servers define('DIR_WS_HTTP_CATALOG', '/XXX/'); define('DIR_WS_IMAGES', 'images/'); Link to comment Share on other sites More sharing options...
Bahgwan Posted January 6, 2005 Author Share Posted January 6, 2005 I apologize if I came across to strongly... I've been working on this for over a week non-stop and my brain is fried. I changed the chmod on the images directory to 777... no dice. Here is my configure.php define('HTTP_SERVER', 'http://majormagnets.com'); define('HTTPS_SERVER', 'https://majormagnets.com'); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'majormagnets.com'); define('HTTPS_COOKIE_DOMAIN', 'majormagnets.com'); define('HTTP_COOKIE_PATH', '/cookies'); define('HTTPS_COOKIE_PATH', '/cookies'); 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/'); I installed everything into the htdocs directory of the webhost. I don't have a catalog directory... again... I had everything working fine, then for some reason that I assume I did, it stopped uploading photos. after starting over I can only conclude that it wasn't something I thought I did... I'm stuck. -Steve Bahgwan, I know you are new here, but these forums aren't here so you can take out your "frustration". osCommerce has been around for a long time and you aren't the first person to have a problem uploading images. Whenever you have a problem, your first action should be to use the search function or check the knowledge base. On the top right of the forums there is a 'search' button. A simple search for "upload images" brings up 2 possible things for you to check: 1. Check the path to the images folder in catalog/includes/configure.php 2. Make sure the images folder has has chmod 777 If that doesn't work, post the following from your catalog/includes/configure.php files: define('HTTP_SERVER', 'http://XXX'); // eg, http://localhost - should not be empty for productive servers define('DIR_WS_HTTP_CATALOG', '/XXX/'); define('DIR_WS_IMAGES', 'images/'); <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Rob123 Posted January 6, 2005 Share Posted January 6, 2005 Bahgwan, You've got another problem... Warning: mysql_connect(): Too many connections in /www/f/ftpsnider/htdocs/includes/functions/database.php on line 19Unable to connect to database server! Search the forums for a quick and easy solution :thumbsup: HTH, Robert Link to comment Share on other sites More sharing options...
Deskdirect Posted January 7, 2005 Share Posted January 7, 2005 Bahgwan, It sounds like the problem I was having with my host. You may need a custom php.ini file. What host are you using? Link to comment Share on other sites More sharing options...
boxtel Posted January 7, 2005 Share Posted January 7, 2005 I apologize if I came across to strongly... I've been working on this for over a week non-stop and my brain is fried. I changed the chmod on the images directory to 777... no dice. Here is my configure.php define('HTTP_SERVER', 'http://majormagnets.com'); define('HTTPS_SERVER', 'https://majormagnets.com'); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'majormagnets.com'); define('HTTPS_COOKIE_DOMAIN', 'majormagnets.com'); define('HTTP_COOKIE_PATH', '/cookies'); define('HTTPS_COOKIE_PATH', '/cookies'); 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/'); I installed everything into the htdocs directory of the webhost. I don't have a catalog directory... again... I had everything working fine, then for some reason that I assume I did, it stopped uploading photos. after starting over I can only conclude that it wasn't something I thought I did... I'm stuck. -Steve <{POST_SNAPBACK}> set these to / define('HTTP_COOKIE_PATH', '/cookies'); define('HTTPS_COOKIE_PATH', '/cookies'); and a warning of no file uploaded means only that no image was supplied, no problem. if you did not provide an image or changed it, ignore that warning. Treasurer MFC Link to comment Share on other sites More sharing options...
Bahgwan Posted January 7, 2005 Author Share Posted January 7, 2005 Thanks for all the support help here... I'm going to answer several questions: A. I am using the host PowWeb. (www.powweb.com) B. I supplied an image, I got a warning and when I checked the directory through cuteFTP there was no photo. So it never uploaded. C. Warning: mysql_connect(): - I've encountered that in the past, and I thought it was resolved but I'll research that and get it fixed... Thanks. Through a different website (long story) I learned about OScommerce. It seemed like just the thing we needed... so I set up a new account and started to build our store. I've overcome some hurdles, but this one stopped me cold. Custom php.ini file? -Steve Bahgwan, It sounds like the problem I was having with my host. You may need a custom php.ini file. What host are you using? <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Bahgwan Posted January 7, 2005 Author Share Posted January 7, 2005 Another quick note: We also have another Powweb account that we were going to use, but thought it would be better to create a new site. So we have two accounts with powweb. OScommerce was set up on the other site, and I used that to become familiar with it (it was not fully set up to the public). Now, I checked back with the other site, and it too also encountered the problem "No file uploaded" when it did before. I haven't changed anything be both sites seem to be exhibiting the same problem. Thanks for all the support help here... I'm going to answer several questions: A. I am using the host PowWeb. (www.powweb.com) B. I supplied an image, I got a warning and when I checked the directory through cuteFTP there was no photo. So it never uploaded. C. Warning: mysql_connect(): - I've encountered that in the past, and I thought it was resolved but I'll research that and get it fixed... Thanks. Through a different website (long story) I learned about OScommerce. It seemed like just the thing we needed... so I set up a new account and started to build our store. I've overcome some hurdles, but this one stopped me cold. Custom php.ini file? -Steve <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Bahgwan Posted January 7, 2005 Author Share Posted January 7, 2005 Ok, another update that I found about POWWEB: PHP's default upload_tmp_dir was /tmp, which is no longer world writeable as this is where the worms using the phpBB exploit download their programs to spread. This was necessary to stop our servers from attacking others. Your scripts should not download files to this area anyways as it is not available on all the servers your site is hosted on. If you use PHP to upload files, you need to have a custom php.ini. You need to uncomment and edit the upload_tmp_dir variable to point to a directory that is writeable by you, which would be your home directory or a subdirectory inside your home directory. DO NOT change that directories permissions to 777, it is already writeable by your php scripts if it is the default 755. So it was a server problem, not OScommerce... (sorry for the hysterics) and, I did find some other posts on Powweb, I just tested the php.ini file, and it uploaded successfully, and I uploaded a picture successfully. WHEW... all is right with the world. Thanks everyone. -Steve :D Another quick note: We also have another Powweb account that wewere going to use, but thought it would be better to create a new site. So we have two accounts with powweb. OScommerce was set up on the other site, and I used that to become familiar with it (it was not fully set up to the public). Now, I checked back with the other site, and it too also encountered the problem "No file uploaded" when it did before. I haven't changed anything be both sites seem to be exhibiting the same problem. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
johnnykalsi Posted January 7, 2005 Share Posted January 7, 2005 Same problems with Powweb, fixed it with custom php.ini Also, please make sure you read the following As another sidenote, since the php.ini file is placed in htdocs, it is then viewable in a web browser. It would be wise to block that ability. To do this, you can add the following lines to your .htaccess file: Code: <Files php.ini> order allow,deny deny from all </Files> I made my custom php.ini upload directory to my store/images directory..is that correct ? Link to comment Share on other sites More sharing options...
Bahgwan Posted January 7, 2005 Author Share Posted January 7, 2005 Cool... custom php.ini needs to go into your htdocs/ directory. make sure that you create it with wordpad and it's save at an .ini file. you should be ok. -Steve Same problems with Powweb, fixed it with custom php.ini Also, please make sure you read the following As another sidenote, since the php.ini file is placed in htdocs, it is then viewable in a web browser. It would be wise to block that ability. To do this, you can add the following lines to your .htaccess file: Code: <Files php.ini> order allow,deny deny from all </Files> I made my custom php.ini upload directory to my store/images directory..is that correct ? <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Bahgwan Posted January 7, 2005 Author Share Posted January 7, 2005 Cool... custom php.ini needs to go into your htdocs/ directory. make sure that you create it with wordpad and it's save at an .ini file. you should be ok. Let me expand on that... My webserver (powweb) gives me the following directories when I log in: cgi-bin htdocs log The /htdocs directory is where I have OScommerce installed. -Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.