Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Error in line1241 on upload.php  (Read 4200 times)

0 Members and 1 Guest are viewing this topic.

Fly Fort

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
    • http://www.militaryaircraftcollection.info
Error in line1241 on upload.php
« on: July 11, 2004, 02:13:20 pm »

Hi,

Tried to upload a picture today.
Received following errro

Quote
Warning: 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

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

This is line 1241

Quote
if (!(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???
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Error in line1241 on upload.php
« Reply #1 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;
Code: [Select]
           //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']);
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Fly Fort

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
    • http://www.militaryaircraftcollection.info
Re: Error in line1241 on upload.php
« Reply #2 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

Quote
Warning: opendir(./albums/edit): failed to open dir: No such file or directory in /home/military/public_html/visualdbase/upload.php on line 406
« Last Edit: July 11, 2004, 03:48:54 pm by Fly Fort »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Error in line1241 on upload.php
« Reply #3 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
Logged

Fly Fort

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
    • http://www.militaryaircraftcollection.info
Re: Error in line1241 on upload.php
« Reply #4 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  ???
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Error in line1241 on upload.php
« Reply #5 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.