|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Join Date: Sep 2002
Location: Rhode Island
Posts: 82
Reputation: 5
|
Warning:No File Uploaded -Problems
I just installed osCommerce and am attempting to setup a small dummy store to learn on. The installation went fine and everything seems to be working except when I try to add an image for a category or catalog item, I browse to the location on my harddrive and choose the picture and then click save. When my browser window refreshes, I get an error message on the top of the screen that reads "Warning:No File Uploaded" and on the right side on the screen it says IMAGE DOES NOT EXIST.
After trying many different things including FTPing the file to the directory, I can't seem to figure out what the problem is. It seems like it's probably something simple that I am overlooking. Anyone have any suggestions? Thanks alot! Mike D. |
|
|
|
|
#2 |
|
Join Date: Sep 2002
Location: Rhode Island
Posts: 82
Reputation: 5
|
After looking through this forum and the one on the osCommerce site, I realized that I needed to create a php.ini file, change the temp directory path and after I finally realized it wasn't working because I needed to uncomment the line: upload_tmp_dir variable (thanks Stevel for making that clear in another post), now all is well. Simple solution in the end thankfully!
Mike D. |
|
|
|
|
#3 |
|
Join Date: Sep 2004
Location: Baltimore, MD
Posts: 40
Reputation: 5
|
cool, what does uncomment mean?
|
|
|
|
|
#4 | |
|
Join Date: Feb 2002
Location: n/a
Posts: 7,279
Reputation: 202
|
Quote:
To remove the semicolon ; from the front of the line. |
|
|
|
|
|
#5 |
|
Join Date: Sep 2002
Location: Rhode Island
Posts: 82
Reputation: 5
|
Uncomment means...
Uncomment means to remove the ";" from the beginning of the line. In my case is was in the custom php.ini file. Once I removed the ";" from the beginning of the upload_tmp_dir variable, everything works fine.
Mike D. |
|
|
|
|
#6 |
|
Join Date: Sep 2004
Location: Baltimore, MD
Posts: 40
Reputation: 5
|
Also, what are the kinds of php sites that will be affected by the, I believe, "load balancing" Powweb did?
PHPbb This OSCommerce thing Galleries Anything that uploads or anything php? Will Powweb consider posting an explanation with more detail than the following: "PHP's default upload_tmp_dir was /tmp, which is no longer world writeable . . . " so that administrators can explain the problem easier to their customers? Maybe they could send an email to everyone to let them know when they change things that majorly affect sites? |
|
|
|
|
#7 |
|
Join Date: Sep 2004
Location: Baltimore, MD
Posts: 40
Reputation: 5
|
Thanks, Mike.
|
|
|
|
|
#8 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
Well, the PowWeb admins aren't known for clear explanations, so we moderators try to help translate.
What PowWeb did here had nothing to do with load balancing - not directly. In the past, all users on a server shared a /tmp folder where temporary files could be created and uploaded. The load balancing did affect that in that people on load-balanced servers had to specify a funny syntax to get at the tmp folder. This recent change essentially removed the default ability for PHP to allow uploaded files at all, requiring users to specify their own destination for uploaded files. This affected all servers, not just the load-balanced ones.
__________________
Steve |
|
|
|
|
#9 |
|
Join Date: Sep 2002
Location: Rhode Island
Posts: 82
Reputation: 5
|
How do I fix the following...
Ok, my osCommerce is working fine but I also use phpBB, Gallery, PHPNuke and e107 (CMS). Does this mean I should go to all my domains hosted with powweb and create the same php.ini file for each to assure uploads for each program?
Also I am concerned about a post from JJ that I read. It stated that whenever Powweb makes a change they will replace my custom php.ini with a generic version thus making my programs not work again. I don't want to be constantly following every one of my sites waiting to have to upload my copy of php.ini but don't know enough php to change the programs themself? Any suggestions? Is my concern valid or incorrect? Thanks, Mike D. |
|
|
|
|
#10 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
You need only one php.ini per domain, in the htdocs folder.
PW won't replace your php.ini, but they may make some configuration change that obsoletes it. The auto-updating cron script B&T links to is a solution to that, though I would caution that it is not a guarantee that there will not be a problem in the future.
__________________
Steve |
|
|
|
|
#11 |
|
Join Date: Sep 2002
Location: Rhode Island
Posts: 82
Reputation: 5
|
Thanks stevel. It's something to keep in the back of the brain should problems arrise down the road. I'll have to remember to check my php.ini file before I burn another late night candle in the future. Thanks again! Everyone that contibutes on these forums save us layman time and time again.
Mike D. |
|
|
|
|
#12 | |
|
Join Date: Aug 2004
Location: Birmingham, AL
Posts: 193
Reputation: 15
|
Quote:
Its still nice though , can anybody point me in the right direction. |
|
|
|
|
|
#13 |
|
Join Date: Sep 2002
Location: Rhode Island
Posts: 82
Reputation: 5
|
This helped me...
I got this during my frustrated search earlier today:
1. Go here-> http://support.powweb.com/index.php...SQL&topic_id=57 2. Click on the "Click Here" link (in the text) and click inside of the text box of the popup window that comes up, then select all of the text within (Ctrl+A in Windows). 3. Copy that highlited text (Ctrl+C in Windows), open Note Pad or similar TEXT editor (not Word Pad or a Word processor) and paste the text (Ctrl+V in Windows). 4. Save that file as php.txt (remember where you save it). 5. Find the below block of text within that file: ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ; upload_tmp_dir = ; Maximum allowed size for uploaded files. upload_max_filesize = 2M 6. Change this line-> ; upload_tmp_dir = To-> upload_tmp_dir = www/u/username/temp Note: You HAVE to remove the semicolon ; from the front of the line Note #2: Change the "u" and "username" to your specific intial and username for your account. 7. Save your changes (save as php.txt) 8. FTP into your site and create a temp folder at the same level as your htdocs and cgi-bin folders, make sure it is Chmod to 755 9. Upload the php.txt file into (just inside of) your htdocs folder. 10. Change the name of your php.txt file to php.ini Once you have everything running correctly, you might want to go get B&T's php.ini update script and start using it to keep your php.ini file up to date. _____________________________ (jj) It worked for me (thanks jj) and hopefully it'll help you too.Mike D. |
|
|
|
|
#14 |
|
Join Date: Aug 2004
Location: Birmingham, AL
Posts: 193
Reputation: 15
|
Thanks Orge for the detailed instructions! I followed everything exactly as you say but unfortunately it still does not let me upload an image for a product. I even tried changing the catalog/images directory to 777 but still no luck. Any other suggestions???
|
|
|
|
|
#15 |
|
Join Date: Sep 2002
Location: Rhode Island
Posts: 82
Reputation: 5
|
Well that stinks! Sorry about the bad link... it's getting late!
Did you make sure to put the php.ini file in the root of your htdocs folder? Did you make the correct edits to it? Did you remove the semicolon from upload_tmp_dir = /www/*/****** ? Also make sure when you uploaded the php.ini file that is isn't a .txt file. You may need to rename it once it's on the server to php.ini. Outside of that, I really don't know. Good luck!Mike D. |
|
|
|
|
#16 | |
|
Join Date: Aug 2004
Location: Birmingham, AL
Posts: 193
Reputation: 15
|
Quote:
Yes, I double checked those things you mention and it's right. Still no luck. It is getting late, Ill worry about it tommorow I guess. Thanks for your help!!! |
|
|
|
|
|
#17 |
|
Join Date: Aug 2004
Location: Birmingham, AL
Posts: 193
Reputation: 15
|
Finally!!!! I didn't have the / in front of the www/u/user/temp that was the problem. thanks again!
|
|
|
|
|
#18 |
|
Posts: n/a
|
http://support.powweb.com/index.php?...QL&topic_id=57 is the correct link for step #1. Thanks for the help! I'm on my way to fixing this now. *sigh*
|
|
|
#19 |
|
Posts: n/a
|
dammit... it did it again, sorry. I guess we all have to find it the hard way
|
|
|
#20 |
|
Posts: n/a
|
Thank you for making this simple
I just want to thank you for making this process so clear. I have been trying to figure out how to fix this problem all day, but most of the instructions I've found may as well be in Chinese (which I can't read). Your time and effort is MUCH appreciated. Sincerely, T
![]() |
![]() |
| Thread Tools | Search this Thread |
|
|