As a last resort, I am submitting this support request. I have tried absolutely everything to get this module to work.
I'm using the FileField CCK module so I'm pretty sure that is an AJAX upload.
I tried both the APC and uploadprogress extensions under Apache 2.02 and 2.2 with PHP 5.2.5 running on XP. I've tried it on two different machines as well.
I also tried the YUI demo with no success that is referenced at:
http://www.whenpenguinsattack.com/2006/12/12/how-to-create-a-php-upload-...
I've added the APC rfc entry into the PHP.ini file. I even tried adding extra APC entries found elsewhere on the net.
Both extensions definitely write temp files that seem valid.
With the upload progress extension I usually get,
{"status":1,"percentage":-1,"message":"00:00 left (at \/sec) "}
With APC the error is similar, but I don't think it has the 00:00 left..
And I even tried adding the javascript patch mentioned as well.
Is there anything else you could possibly recommend me to look at?
Thanks,
-- Jason
Comments
Comment #1
panis commentedAre you saying that you can get the demos to work but not the drupal module? i.e. the demos do return valid progress information but drupal module only shows the the 0% message?
Comment #2
jsm174 commentedHello. Thanks for responding. I'm sorry for being unclear.
I've tried the demo that uses YUI and I couldn't get that to work either. So there isn't an issue with the module.
Since I've tried "absolutely" everything, I was just hoping someone could point me in the right direction. Maybe I'm just overlooking something.
Anyway, the only thing that was unclear:
Once APC is installed and configured, the following needs to be added to your php.ini:
apc.rfc1867 = on
Does "configured" mean enabled in the php.ini? or enabled with apc settings in the php.ini.
If there needs to be additional apc settings, what should they be?
Thanks,
-- Jason
Comment #3
panis commentedWhat version of PHP do you have? This feature is only available if compiled into PHP 5.2.5 and above. You may have an earlier version of PHP or one without this feature complied into it.
configured means enabled.. if you can see your phpinfo output you should see these flags set. Important ones are. you need the first two.. if the name is not APC_UPLOAD_PROGRESS then you may need to change that in the php.ini file or change the sample code to use the other name.
apc.rfc1867 = on
apc.rfc1867_name = APC_UPLOAD_PROGRESS
apc.rfc1867_prefix = upload_
apc.rfc1867_freq = 0
Comment #4
jsm174 commentedI am using PHP 5.2.5 / Apache 2.2 / XP.
All those settings are there. I added them just incase. Still no go.
Here is the phpinfo:
Using Firebug, I'm getting the XHR requests:
I am so baffled!
But again, I appreciate you trying to help me out!
-- Jason
Comment #5
panis commentedYou will get that message if the module does not get any information back from APC
{"status":1,"percentage":-1,"message":"Uploading"}
The YUI test should also generated a similar message - what do you get in that case?
Comment #6
jsm174 commentedI've run the YUI test as well, and it always comes back as {"done":1}
I only get one XHR request and by that time {"done":1} comes up so I can't get back to it in firebug.
-- Jason
Comment #7
panis commentedis this on a local machine - i.e. your server and your browser both running on the same machine? I have had similar problems when I had both running on my local machine.
Comment #8
jsm174 commentedI've tried on both local and remote machines.
The only thing different is that the remote machine is running Apache 2.0.2 instead of 2.2.
I have a bunch of virtual server settings and awstats, so I haven't got around upgrading to 2.2.
I wonder if it's an Apache setting?
-- Jason
Comment #9
panis commentedthis doesn't happen to be in FastCGI or CGI mode is it?
Comment #10
jsm174 commentedI'm sorry, but I'm not 100% sure I know the answer to that. If pointed in
the right direction...
I'm pretty sure it's not set up as FastCGI or CGI. PHP is integrated
into Apache as a module:
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
It's pretty much a stock setup.
It does look like my Apache does have a CGI module installed:
LoadModule cgi_module modules/mod_cgi.so
But again, everything is pretty much stock. I did set up the mod_rewrite.
-- Jason
Comment #11
panis commentedcan you try using the PHP uploadprogress extension from PECL instead?
I have been finding that to be more reliable on the several projects I am using this module on.
Comment #12
paulhudson commentedIs this module compatible with php 5.0 if using the uploadprogress extension from PECL?
The status alert on my Drupal site says 'PHP 5.2.1 with APC enabled or the PECL uploadprogress extension'
Thanks,
Paul
Comment #13
panis commenteduploadprogress extension in PECL is supposed to work with PHP 5.2 and above. If you have PHP 5.0 that is patched to support the file upload status it should work.
Comment #14
trogie commentedI also had major problems getting this module to work. APC was working perfectly but php also needs 'json' support for this module to work! And my php didn't have this!