cancel
Showing results for 
Search instead for 
Did you mean: 

Direct package file upload - File upload problem

SOLVED

Direct package file upload - File upload problem

Hi

Im trying toinsupload Direct package file in Magento Connect Manage but I always geting this error "File upload problem"

Anyone who can helpme?

11 REPLIES

Re: Direct package file upload - File upload problem

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.

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner

Re: Direct package file upload - File upload problem

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?

Re: Direct package file upload - File upload problem

Hi,

Try the direct package upload once again and the error message will output differently this time.

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner

Re: Direct package file upload - File upload problem

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

 

Re: Direct package file upload - File upload problem

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.

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner

Re: Direct package file upload - File upload problem

thanks I did this prosess but still nothing Smiley Sad


        if(0 !== intval($info['error'])) {
            echo "File upload problem " . $info['error'];
            return;

 

 

Re: Direct package file upload - File upload problem

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.

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner

Re: Direct package file upload - File upload problem

no I dont have this 500 error any more an I got a "File upload problem 6" right now

 

 

Re: Direct package file upload - File upload problem

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.

 

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner