|
| 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 |
|
Posts: n/a
|
no file uploaded
Hi!
I installed oscommerce last week and everything was fine until this afternoon. I added 50 products and suddenly started getting an error "file not uploaded" for any product that I add now. No changes have been made to the configuration. I am very new to oscommerce. would appreciate any help. |
|
|
#2 |
|
SEO For Hire!
Join Date: Jul 2003
Location: Chicago, IL
Posts: 694
Reputation: 61
|
If you don't add a picture then you will get that error. You will also see that error if you update any part of an existing product without also updating the picture. Hope that helps!
|
|
|
|
|
#3 |
|
Join Date: Jul 2003
Location: Pittsburgh
Posts: 55
Reputation: 5
|
Same Problem?
I am having the same problem with an OScommerce site that I am making. I am not able to upload Image files. This seem to coincide with an error-warning on powwebs public notice-board about PHP-Uploading....See thread
http://forum.powweb.com/showthread.php?threadid=44687 Anyhelp to resolve this problem will be highly appreciated. Thank you. Song. Last edited by Song : 12-28-04 at 09:16 AM. |
|
|
|
|
#4 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
See this announcement about the disabling of file uploads by default. To fix this, you need to get a copy of PowWeb's default php.ini, edit it as shown in the announcement, and upload it to your htdocs folder.
__________________
Steve |
|
|
|
|
#5 |
|
Join Date: Jul 2003
Location: Pittsburgh
Posts: 55
Reputation: 5
|
Thank You very Much.
Thank you Steve for helping out again. By now you should know that you are the Crowned Prince of the United States!!!.
![]() |
|
|
|
|
#6 |
|
Join Date: Dec 2003
Location: NC
Posts: 94
Reputation: 5
|
Still not sure what I'm doing
I've copied the text into a plain text file.
I've changed this part: _____________________ ;;;;;;;;;;;;;;;; ; 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 = /www/u/username ; Maximum allowed size for uploaded files. upload_max_filesize = 2M Please note that if you are uploading files larger than 2MB's you will also need to change upload_max_filesize. ________________________ and uploaded it to htdocs, but I think I have the username wrong. I still get the same error message when I try to upload a file. In all my notes from setting up this site, I don't have anything that goes /www/u/username. All I have goes /www/m/y/mysite.com. Is there a particular line in the admin/includes/configure.php file that has the username I need to use? Is there more that I need to change or just /www/u/username? Thanks for your help. |
|
|
|
|
#7 |
|
Join Date: Dec 2003
Location: NC
Posts: 94
Reputation: 5
|
And in this line from the thread by James:
"You need to uncomment and edit the upload_tmp_dir variable to point to a directory that is writeable by you ... ." What does "uncomment" mean? |
|
|
|
|
#8 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
If your path is of the form /www/m/y/mysite.com, then use that. Older sites use the other format.
Uncomment means to remove the semicolon at the begiinning of the line.
__________________
Steve |
|
|
|
|
#9 |
|
Join Date: Dec 2003
Location: NC
Posts: 94
Reputation: 5
|
Hey, it works now! I now have my "coming soon" image in all the right places.
Thanks for the help. Now all I need to do is get some photos of the products and learn how to make a Flash movie to demonstrate the products. |
|
|
|
|
#10 |
|
Join Date: Nov 2001
Location: Williamsburg, VA
Posts: 229
Reputation: 5
|
The php.ini sample file contain stuff that I have no idea what the heck it is. I have a photo gallery as well as my OSCommerce catalog that I need to be able to upload photos to.
If the php.ini needs the path to the upload_tmp_dir how do I include both directories? Please help! Annette PHP Stupid ![]() |
|
|
|
|
#11 |
|
Join Date: Feb 2002
Location: n/a
Posts: 7,279
Reputation: 202
|
You create a new "temp" folder just for the php.ini file and point the correct path to it in the "upload_tmp_dir =/www/u/user/temp" line.
|
|
|
|
|
#12 |
|
Join Date: Nov 2001
Location: Williamsburg, VA
Posts: 229
Reputation: 5
|
Can I just use that peice of the code or do I need to upload the enitre php.ini file with my changes? And where does the file get uploaded to?
|
|
|
|
|
#13 |
|
Join Date: Feb 2002
Location: n/a
Posts: 7,279
Reputation: 202
|
You need to use the full php.ini file and it should be uploaded into your htdocs directory (folder). Just insided of your htdocs directory, not inside any other directory.
|
|
|
|
|
#14 |
|
Join Date: Nov 2001
Location: Williamsburg, VA
Posts: 229
Reputation: 5
|
all I get is this error
FATAL ERROR: register_globals is disabled in php.ini, please enable it! I made sure all the references to register_globals were set at on - still have the error. FIXED I had to save the php.ini file with a PHP Editor instead of notepad. Last edited by Deskdirect : 12-31-04 at 12:56 PM. |
|
|
|
|
#15 |
|
Join Date: May 2004
Location: CA
Posts: 98
Reputation: 5
|
osCom + phpBB
I have osCommerce and phpBB which both require image uploading. I have changed the php.ini file so that I can upload my products images to my images folder, but how do I allow phpBB to upload images to their designated folder?
|
|
|
|
|
#16 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
You misunderstand the php.ini setting. Thiis is to be a "temporary holding area" into which the files are initially uploaded. PHP will then move the file to wherever you told it to go. You probably would NOT want the tmp_upload_dir to be your images folder.
__________________
Steve |
|
|
|
|
#17 |
|
Join Date: May 2004
Location: CA
Posts: 98
Reputation: 5
|
awesome thnx i got it now
|
|
|
|
|
#18 |
|
Posts: n/a
|
Can some one tell me what part I am doing wrong.
;;;;;;;;;;;;;;;; ; 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 = /www/p/r/mysite.com/temp ; Maximum allowed size for uploaded files. upload_max_filesize = 2M I didnt change anything besides the upload_tmp_dir line and now it wont even upload the file at all. Before it uploaded most of them but didnt upload others... ![]() PS - I am using notepad as my editor. |
|
|
#19 |
|
Join Date: May 2004
Location: CA
Posts: 98
Reputation: 5
|
do u not have an htdocs folder? if you do make it /www/p/r/mysite.com/htdocs/temp
|
|
|
|
|
#20 |
|
XPW
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
|
The recommendation is to NOT put the temp folder under htdocs. You really can get away with just making it your package folder, eg. /www/p/r/mysite.com
BTW, PowWeb made a recent change that eliminates the requirement for this php.ini change, but it is still recommended.
__________________
Steve |
|
|
|
|
#21 |
|
Posts: n/a
|
Here is what was in the original 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 = /www/p/r/mysite.com ; Maximum allowed size for uploaded files. upload_max_filesize = 2M Which is why I changed it and added a /temp ...... You can go to http://store.pricetrim.com to see exactly what I mean about the images not uploading correctly. Every time I upload a image it shows it first, in the part where I can hit insert, and then when I click that and go to the products actual page there is no image there. So I am highly confused. Its like its uploading to the temp folder, but not moving it to where it needs to be afterwards? Does that make any sense to any of you? Thanks for the help, I really appreciate it. I am not very .php or .mysql savy, so I am learning as I go. I also have the gallery that pow web offers installed. If tha makes any difference. The images dont upload onto that either. |
|
|
#22 | |
|
Older not wiser
Join Date: Nov 2003
Location: Calgary, AB
Posts: 2,473
Reputation: 205
|
Try it now - without a custom php.ini
They just removed that requirement early this morning. Quote:
|
|
|
|
|
|
#23 |
|
Join Date: Jul 2003
Location: Pittsburgh
Posts: 55
Reputation: 5
|
Try:
1) /www/i/yoursite/htdocs 2) Secondly, try increasing the file upload or image upload size. I had to increase mine from 2MB to 10MB range and it worked. Good luck. 2MB ----> upto 10MB |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|