Whenever I try to add a File field, and try to submit the addition I get a page not found error in drupal. I'm I missing something, like another module I need or something?

Comments

kpoirier’s picture

I'm experiencing the same problem.

Drupal 4.7.4
Webform-4.7.0

kpoirier’s picture

more information:

The errors that show up in the log file when trying to add the field 'File' are:

Premature end of script headers: /xxxx/public_html/xxx/index.php

and I also recieve a core dump each and every time. Can someone please take a look at this?

using the latest release of webform (4.7.x-1.x-dev) and drupal 4.7.4

I can provide the core dump if needed.

/keith

shriqui’s picture

I have exactly the same problem with the latest release

quicksketch’s picture

I can't reproduce this on either my Drupal installs in PHP 4 or 5. I'm running Drupal 4.7.10 and Drupal 5 RC1 using both PHP 5.1.6 and PHP 4.4.4.

I'm guessing to upgrade your webform and Drupal versions will solve the problem (make sure to make DB backups). Try webform release 4.7.x-1.1 and upgrade your Drupal install.

quicksketch’s picture

Doh, I'm actually on 4.7.4 also. But I still can't reproduce, that's quite weird. Please post any more information you think might be useful and I'll try to break it :D. Thanks.

quicksketch’s picture

http://drupal.org/node/107113 is another instance of this problem (closed for duplicate reason).

Dirty Name’s picture

Using Drupal 4.7.5 and Webform 4.7.x.1-1 and experiencing the same problem. Let me know what I need to do to fix this.

ahneill’s picture

Also experiencing the identical problem on Drupal 4.7.3 with 4.7.1.1(latest official) version of webform... When attempting to add 'file' field, simply gives page not found error... This is a really important feature for our submit forms, any solution would be huge...

Art

nerddesigngroup’s picture

Hi Guys,

Same problem. My client is using godaddy, which I have problems with attachments in php mail as well. Any sparcks from that?

nerddesigngroup’s picture

I installed the module on another site hosted by 1&1 and it worked fine. Thus, there is a server setting somewhere.

ahneill’s picture

I am hosted on Site5 and cannot add a file field to my forms... really frustrating!

quicksketch’s picture

Still no progress on reproducing this error for me. I recognize this is a problem but have no way of finding the cause. Any possible help debugging would be appreciated.

Please post:
- Drupal version (everyone did this already, just for new posts)
- Webform exact CVS version (the $Id: ...$ line at the beginning of webform.module)
- PHP/Apache Versions

And because it seems like this is a server issue: please if possible upload
- PHP.ini file for your server

We'll try to figure this out together :D

quicksketch’s picture

Okay, this looks similar to an issue filed over in the imagecache queue (http://drupal.org/node/99117). A lot of people are having problems with Site5 because the .htaccess file that comes with Drupal isn't allowed to turn off magic_quotes_gpc.

Try the following solution: Make a new text file named php.ini in the root of your Drupal install directory. Then add the following line:

magic_quotes_gpc=off

See if that corrects the problem with the file field.

harrisben’s picture

I'm sorry to say that this doesn't work for me. I really hope someone works the solution out soon as I need this functionality 3 months ago.

harrisben’s picture

Sorry about that, it does actually work. I hadn't finished uploading the modified php.ini.

Thanks for the help in overcoming this problem!

betawavetom’s picture

wow... I bow to the masters... the "magic_quotes_gpc=off" worked like a charm.

fyi: am using "hostgator.com" as my provider.

BioALIEN’s picture

Status: Active » Fixed

Then lets consider this issue resolved :)

Anonymous’s picture

Status: Fixed » Closed (fixed)