error on "Upload Multiple Files" option

Permalink
i get the following error when i try upload multiple files

"An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables. File Uploads: 1 Max Upload File Size: 32M Post Max Size: 32M"

this issue is happening on 5 of my sites since i updated them from 3.1.1 i think to 3.2 anyone have any ideas?
on one of the sites i fixed the issue by just creating a new admin account but thats not working on the other sites where im having the problem.

iv emptied cache tried putting the site into maintenance mode

iv made sure that the permissions is correct in site map view for the file manager allowing admin access???

i have created a test login if anyone would like to try and help me solve this issue

interestingly you can upload the files one at a time?
could it be something on a my server that changed? and not actually have anything to do with the individual concrete5 installs?

ecomatt
 
frz replied on at Permalink Reply
frz
looks like your php setup is limiting uploads to 32 megs.. if you're picking a bunch of files, they might easily add up to more than that.. ask you host if this max upload size can be bumped up.
ecomatt replied on at Permalink Reply
ecomatt
this is the content of the error log after this issue
[17-Sep-2009 15:34:42] PHP Warning:  join() [<a href='function.join'>function.join</a>]: Invalid arguments passed in /home/whitedes/public_html/SUBSITES/johnferneley/concrete/tools/files/importers/uploaded.php on line 13
[17-Sep-2009 15:34:42] PHP Warning:  join() [<a href='function.join'>function.join</a>]: Invalid arguments passed in /home/whitedes/public_html/SUBSITES/johnferneley/concrete/tools/files/importers/uploaded.php on line 15


and these are the two lines in question from the php file?

<a onClick="ccm_filesApplySetsToUploaded([<?php echo join(',',$_REQUEST['fID'])?>]);">Assign File Sets</a> 
         &nbsp;|&nbsp; 
      <a onClick="ccm_filesApplyPropertiesToUploaded([<?php echo join(',',$_REQUEST['fID'])?>]);">Edit Properties</a>


any thoughts anyone?
ecomatt replied on at Permalink Reply
ecomatt
the total file size is way way less then 32mb
all the file im uploading are 60kb or so and even if i just try upload two of them i get the same issue.
ecomatt replied on at Permalink Reply
ecomatt
i could give someone access if they wanted to see if they could fix it? could it have something to do with upgrading? concrete5
Remo replied on at Permalink Reply
Remo
did you echo all the variables?

print_r($_REQUEST);


might help to see whether there's anything useful in it or not..
ecomatt replied on at Permalink Reply
ecomatt
sorry can you tell me where to put this line of code?
i know some stuff but when it comes to php i'm still learning.

thanks for your help
ecomatt replied on at Permalink Reply
ecomatt
So i know it must be something with the server that was changed from one day to the next??? my host is stumped and cant figure it out, it was working and then one day it wasnt. even a fresh install fresh database and it doest do multiple uploads?

does anyone have any ideas what it could be... where to start looking?

thanks
ciscophoneguy replied on at Permalink Reply
ciscophoneguy
That It just gets stuck. I upgraded from 5.3.1 to 5.3.2. It's not the size either it was only 4 35kb files. This was working before upgrade, now when I attempt to upload more than one file my browser becomes unresponsive. I have to close out of the upload batch window thing with multiple clicks, once it's closed the browser goes back to normal speed. I had to upload all the files individually.

Just adding my two cents...
DavidMIRV replied on at Permalink Reply
DavidMIRV
Have you tried watching what is happening via Firebug or Safari (resource tracker) as far as each upload and the response header from c5? this may show further information as to what is happening at least client side? There's heavy javascript involved here and I've experienced some problems with the mulitple file uploader myself at times..
DavidMIRV replied on at Permalink Reply
DavidMIRV
if you have the time maybe you could join us on irc sometime so we could help you get this fixed asap. (irc.efnet.org #concrete5)
ecomatt replied on at Permalink Reply
ecomatt
ecomatt is my name on irc...
dsdev replied on at Permalink Reply
An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables. File Uploads: 1 Max Upload File Size: 2M Post Max Size:

It will sometimes upload the first image, but then the error will come up. I am only uploading 100 KB files, and have ranged from trying to upload 20, all the way down to 2 or 3 at a time and it just won't work.

I updated the htaccess file with an updated post_max_filesize and upload_max_filesize and now this is the error that I got now:

An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables. File Uploads: 1 Max Upload File Size: 100M Post Max Size: 100M
DavidMIRV replied on at Permalink Reply
DavidMIRV
5.3.3 features a completely new multiple file uploader, are you still getting this error with it?


David
DavidMIRV replied on at Permalink Reply
DavidMIRV
additionally you always have the option of creating files/incoming and FTPing multiple files to that directory in which case you choose from other location in the uploader, I've found this often works well when uploading a large amount of files.

David
dsdev replied on at Permalink Reply
[22-Oct-2009 22:39:32] PHP Warning: join() [<a href='function.join'>function.join</a>]: Invalid arguments passed in /mnt/stor1-wc2-dfw1/424145/436046/www.ywamassociates.com/web/content/concrete/tools/files/add_to_complete.php on line 13
[22-Oct-2009 22:39:32] PHP Warning: join() [<a href='function.join'>function.join</a>]: Invalid arguments passed in /mnt/stor1-wc2-dfw1/424145/436046/www.ywamassociates.com/web/content/concrete/tools/files/add_to_complete.php on line 15
dsdev replied on at Permalink Reply
Yes I am using the most current version of Concrete5
frz replied on at Permalink Reply
frz
you mean 5.3.3.1, not 5.3.3 - right?

might be worth reupdating everything in /concrete directory.. sounds like something might be off in your install.

Can you recreate the problem on our demo servers athttp://getconcrete5.com/demo
?
dsdev replied on at Permalink Reply
Hi there,

I have upgraded and it is still happening.

I initially thought that it was the htaccess file issue, so I created the htaccess with the settings of 20 MB

Here is the error:
An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables. File Uploads: 1 Max Upload File Size: 20M Post Max Size: 20M

I am uploading 5 files that are about 50KB each

You have seen my error logs above.

I just tried on your demo servers and it works fine.
glockops replied on at Permalink Reply
glockops
I tracked the log file errors down to the links in the overlay that appears after you upload files (assign file sets & edit properties).

I am also experiencing this same problem. It doesn't matter if you only upload a single 10kb file using the multiple upload function, it still fails with the default error message.

Multiple upload had previously worked my this server. It failed at some point in the recent past (not sure when).

Poking around I found the following:
importer.php has the following (line 7-13):
<?php   
$fp = FilePermissions::getGlobal(); 
if (!$fp->canAddFiles()) { 
    $error = FileImporter::getErrorMessage(FileImporter::E_PHP_FILE_ERROR_DEFAULT); 
    $info = array('message'=>$error, 'error' => true); 
    print $jsh->encode($info); 
    exit; 
} 
 ?>

If you change E_PHP_FILE_ERROR_DEFAULT to another error type such as E_PHP_NO_FILE then when you're uploading multiple files, you'll get "Invalid File" rather than the default error message ("An unknown error occurred...")
DarthProphet replied on at Permalink Reply
Ok where do you check to see if it's enabled and why in the world wouldn't it be out of the box?
dsdev replied on at Permalink Reply
1
dom replied on at Permalink Reply
dom
Hey guys,

does the multi uploader work again for you?

I still got the same error..

An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables.


The problem occurs on two different servers, on 6 concrete installations. All of them C5 version 5.3.3.1. Some of them where updated, others are fresh installed with this version.

I checked the servers upload maximum and the filesizes, everything looks fine. Uploading large files with the single file uploader works fine.

If you solved the problem, i would appreciate your help..

greetz

dom
dsdev replied on at Permalink Reply
I ended up moving servers that it worked on. I gave up on trying to use the Rackspace Cloud Servers as it just wasn't working on it.
dom replied on at Permalink Reply
dom
..k.. but we are running our own servers.. so if we would know why this problem appears, we could fix the server configuration..
Remo replied on at Permalink Reply
Remo
got a link to a phpinfo page and maybe an account to one of your c5 site?
Tony replied on at Permalink Reply
Tony
if you've check the file size limits, and it's not working, then i'd guess that it's related to some kind of time limit.

look into max_execution_time and max_input_time, and try extending both of those to something really high.
glockops replied on at Permalink Reply
glockops
I just checked my multi-upload function from my home connection and it appears that my multiple-upload problem "went away".

I have no idea why, in fact I thought I still had the problem (I just stopped using the multiple-upload function when it didn't work for me previously).

So now I'm curious to why it works. I'm unsure whether or not I tested the problem from my home connection previously. I don't think any server configurations where changed.

I'll check my work connection on Monday and see if I can once again get the problem - (could it have something to do with a network location?)
Remo replied on at Permalink Reply
Remo
that's very unlikely.. You could have run into some connection problems but you would have seen that in other areas of c5 as well.

The multi file uploader doesn't do a lot of magic, it's just a flash calling a php script to receive and save the file.

Well, if you have a firewall or a wired flash version which blocks cookies it might be possible that this is computer related.. But that's hard to tell without being able to work on the computer, should be easy to find though. Disable firewall, use a different browser and you quickly know what causes the problem
glockops replied on at Permalink Reply
glockops
We're connected to iLight fiber at work (100Mbps / 1000Mbps) depending on how the packets are routed. Previously we were connected to Time Warner cable modems.

Server is located in an off-site datacenter.

Multiple uploads worked on this server at one time.
Stop working a few months ago (not sure when / no clear cause - although thinking back, it was around the time of the Time Warner -> iLight connection shift).
Now appear to work again from at least my home connection (Verizon DSL)

I'm unsure if anyone else is in the situation of having multiple-file uploads working and then suddenly stop working... with nothing else in C5 being affected. Anyone care to comment?

I abandoned this issue a while ago and now I'm really surprised multiple uploads work for me.
glockops replied on at Permalink Reply
glockops
My webhost remembers watching me duplicate this problem from my home connection - so my network connection theory is out the window.

He says no php changes have been modified - but nightly patches and updates have been applied.

Here's what we're running at the moment:
Apache version 2.2.10
PHP version 5.2.6
cPanel Pro 1.0 (RC1)
glockops replied on at Permalink Reply
glockops
FYI: Another discussion on this topic is located here:http://www.concrete5.org/community/forums/usage/error_trying_to_upl...