Hi
Im trying toinsupload Direct package file in Magento Connect Manage but I always geting this error "File upload problem"
Anyone who can helpme?
Solved! Go to Solution.
Hi,
The 6 refers to the error on the PHP website I posted earlier.. the error is:
UPLOAD_ERR_NO_TMP_DIR - Value: 6; Missing a temporary folder
You either need to create a tmp dir (/tmp) or if you don't know how / where too - consult your host and ask them to do it.
Hi,
Its likely to be some setting on your server - possible the max file size variable.
You can check for a more specific error by editing \downloader\Maged\Controller.php - find the line of code that says:
echo "File upload problem";
And change it to
echo "File upload problem " . $info['error'];
That should output a number.. e.g. 'File upload problem 1' - once you have the number - cross reference it against the numeric error codes shown on this page: http://php.net/manual/en/features.file-upload.errors.php and that should help you diagnose where the issue occurs.
If you're unsure once you have the error number - let us know here and we'll try to help.
Hi
I change the file to and now the file look like this
if(0 !== intval($info['error'])) {
echo "File upload problem"; . $info['error'];
return;
}
where can I see the error number?
Hi,
Try the direct package upload once again and the error message will output differently this time.
I tryed that but after I changet the file I can not go in to Magento Connect Manager, when I tray it open http 500 - this website hava a programfail
Hi,
you have copied the code wrong.
You code says:
echo "File upload problem"; . $info['error'];
However it should be:
echo "File upload problem " . $info['error'];
Note -you have a ; after the " where there shouldn't be one.
thanks I did this prosess but still nothing
if(0 !== intval($info['error'])) {
echo "File upload problem " . $info['error'];
return;
Hi,
Are you getting any error now?
Is it still the 500 error? If so - can you view your webserver error logs and see what the error was in there?
If something is output to screen - please paste it here.
no I dont have this 500 error any more an I got a "File upload problem 6" right now
Hi,
The 6 refers to the error on the PHP website I posted earlier.. the error is:
UPLOAD_ERR_NO_TMP_DIR - Value: 6; Missing a temporary folder
You either need to create a tmp dir (/tmp) or if you don't know how / where too - consult your host and ask them to do it.