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: [Solved]: Another "No file was uploaded"  (Read 3436 times)

0 Members and 1 Guest are viewing this topic.

wanttobefree

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
[Solved]: Another "No file was uploaded"
« on: August 30, 2009, 05:09:06 pm »

Hello,
I have the error "No file was uploaded [...] File: db_input.php - Line: 361" on my gallery when I try to upload a file.

I've already read the troubleshooting and the other posts, but without any result: it isn't a problem of the server, or of the php, because the upload of the same file with another script works fine.

Trying to solve the problem I found out that if I write:
Code: [Select]
echo($_FILES['userpicture']['tmp_name']); in one of the early lines of db_input.php, the script writes the name of tmp directory, so the file has in fact been uploaded.
Instead, If I write this code on line 361, it writes anything, so I guess that the directory has been deleted and the file has gone...

In particular, trying many times I found out that if I write
Code: [Select]
echo($_FILES['userpicture']['tmp_name']); before line 23, that is:

Code: [Select]
23 require('include/init.inc.php');
24 require('include/picmgmt.inc.php');
25 require('include/mailer.inc.php');
26 require('include/smilies.inc.php');

It write the directory name, instead if I write it after line 26, it doesn't write the directory name. So I think that this problem is caused by these scripts that are required in lines 23-24-25-26.

How to solve?

Thanks!
« Last Edit: September 01, 2009, 09:23:31 pm by Phill Luckhurst »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Another "No file was uploaded"
« Reply #1 on: August 30, 2009, 10:53:30 pm »

I've already read the troubleshooting and the other posts
Obviously not. Do exactly as suggested in the docs, section "asking for support on upload issues".
Logged

wanttobefree

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Another "No file was uploaded"
« Reply #2 on: August 31, 2009, 10:54:02 am »

Quote
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested. If you want fast results, you should disable admin approval for the group the test user is in, so supporters can tell instantly what is wrong without needing to double-check.

Oh excuse me, I haven't read that part indeed  ::)
So this is the url of the photogallery on my site: http://www.webdreadlocks.altervista.org/album-foto/
This is the test account:
User: prova
Password: test

Thank you
Logged

Nibbler

  • Guest
Re: Another "No file was uploaded"
« Reply #3 on: August 31, 2009, 11:28:07 am »

Update your gallery. You have the exact problem 1.4.25 was released to fix.
Logged

wanttobefree

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Another "No file was uploaded"
« Reply #4 on: September 01, 2009, 08:37:46 pm »

Oh so easy! Thanks a lot :)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.