coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Fly Fort on July 11, 2004, 02:13:20 PM

Title: Error in line1241 on upload.php
Post by: Fly Fort on July 11, 2004, 02:13:20 PM
Hi,

Tried to upload a picture today.
Received following errro

QuoteWarning: move_uploaded_file(./albums/edit/mHTTP_temp_2fcb8d1e.jpg): failed to open stream: Permission denied in /home/military/public_html/visualdbase/upload.php on line 1241

Warning: move_uploaded_file(): Unable to move '/tmp/phpCR6xL6' to './albums/edit/mHTTP_temp_2fcb8d1e.jpg' in /home/military/public_html/visualdbase/upload.php on line 1241

With the message that there was no picture uploaded
And this was in the errorreport

QuoteFile Name/URL Error Message
1. 51-52.jpg Impossible to move

This is line 1241

Quoteif (!(move_uploaded_file($_FILES['file_upload_array']['tmp_name'][$counter], $path_to_image))) {

yesterday it was al ok with no prblems.  A friend of mine had uploaded a picture and after that the problem begun.

Can someone help me???
Title: Re: Error in line1241 on upload.php
Post by: Casper on July 11, 2004, 02:54:45 PM
Did it work at all after you did the changes to add the extra fields?

Line 1241 is refering to this area of code in flyforts file, which is modified;
           //Now we upload the file.
            if (!(move_uploaded_file($_FILES['file_upload_array']['tmp_name'][$counter], $path_to_image))) {

                // The file upload has failed.

                $file_failure_array[] = array( 'failure_ordinal'=>$failure_ordinal, 'file_name'=> $file_name, 'error_code'=>$lang_upload_php['impossible']);
Title: Re: Error in line1241 on upload.php
Post by: Fly Fort on July 11, 2004, 03:32:53 PM
Yes, indeed

It worked very good yesterday after I made the changes. (I've copied it directly from your txt-file)

But today I received this problems

And also a new error, didn't know if that was present before

QuoteWarning: opendir(./albums/edit): failed to open dir: No such file or directory in /home/military/public_html/visualdbase/upload.php on line 406
Title: Re: Error in line1241 on upload.php
Post by: Joachim Müller on July 11, 2004, 04:13:30 PM
check if a folder named "edit" exists in your "albums" folder on your webserver. If it doesn't exist, create it and CHMOD similar to the albums folder.

GauGau
Title: Re: Error in line1241 on upload.php
Post by: Fly Fort on July 11, 2004, 04:21:13 PM
Ok thanks,

problems saulved

for upload.php als for the editfolder in albums folder

But my server is acting very strange, because I did upload the edit folder for asome time and now it was gone  ???
Title: Re: Error in line1241 on upload.php
Post by: Casper on July 11, 2004, 08:51:49 PM
Yes, this is a known issue, which is fixed in the latest cvs version, and in the bugfix version 1.3.1 being released soon.

You will need to do this update, and re-apply your mods again then, I'm afraid.