terrylove Posted January 6, 2010 Posted January 6, 2010 Hello, I recently moved an oscommerce site between hostings. Since then upload fails to work. Upload fails in all circumstances - catalog, images, file manager. It shows the browse for files and a blue activity line appears but nothing is uploaded. No errors appear in the hosting logs. Everything else appears to work fine. Both configure.php files look sensible. The hosting is set up so that all files and directories are writable to php while being 644 and 755. The only thing I can see that is different is the tmp file in the global php.ini is outside the document root. It works fine like this with Joomla so I'm presuming that is not the problem. I welcome anyone's advice!! I appreciate I might be being totally dozy in this as there doesn't seem to be any info about it anywhere in the forum. Best regards and thanks in advance, Terry
♥mdtaylorlrim Posted January 6, 2010 Posted January 6, 2010 Is file_uploads set to 'on' in the php.ini file as seen in your Server Info in Admin section? Also look at upload_tmp_dir. You need to be able to write to it, or it needs to have no value, when your configuration.php file then rules. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
terrylove Posted January 6, 2010 Author Posted January 6, 2010 Is file_uploads set to 'on' in the php.ini file as seen in your Server Info in Admin section? Also look at upload_tmp_dir. You need to be able to write to it, or it needs to have no value, when your configuration.php file then rules.
terrylove Posted January 6, 2010 Author Posted January 6, 2010 Dear Mark, Many thanks for your suggestions. I checked again as you suggested. Uploads was on and upload_tmp_dir was defined as /tmp I then created the php.ini file (below) and installed it in web root, /catalog/ and /catalog/admin/ and after that the uploads worked fine. I then removed one php.ini at a time and tested uploads. After all were removed, the upload process still worked. Weird. I cleared browser cache etc - still worked. Puzzling. Thanks again, Terry ======= php.ini ; 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/tmp ; Maximum allowed size for uploaded files. upload_max_filesize = 2M
Recommended Posts
Archived
This topic is now archived and is closed to further replies.