I recently switched servers with a Drupal 5 site. Everything appeared to work OK, but I'm not 100% sure if I tested the file attachments (got a little overconfident when everything was working so much faster on the new server). Then I upgraded to Drupal 6. After working through a bunch of minor issues, I have three outstanding problems. First, I can not install the gallery module. I am not posting about the gallery problem but mention it for completeness in case anyone thinks the problem might be related. Page rendering loading time is much slower in my D6 version (appears to be a core issue; again, only mentioned in case there is some relevance to the issue I am posting about).

Finally [the issue I am posting about], whenever I attempt to attach a file to a node, I get the following error...

"Validation error, please try again. If this error persists, please contact the site administrator."

I googled around a bit and found several threads where this error occurred for folks... but the circumstances in which this error was produced did not seem to be related to my problem. One promising thread suggested that this was a Form API issue where some kind of "token" or ID was not getting passed through the form process properly. I also thought this might explain some odd behavior I was seeing while attempting to setup my embedded gallery. However, after a lot of time spent hacking away, I still do not have a solution. (I still suspect this might be the problem but I'm not sure the best way to go about debugging/resolving).

Here's some possibly relevant info I pulled from the status report...

Web server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b DAV/2 mod_bwlimited/1.4 PHP/5.2.8
MySQL database: 5.0.67
PHP memory limit: 64M
Drupal 6.8
Cron maintenance tasks: Last run 43 min 42 sec ago
Database updates: Up to date
File system: Writable (public download method)

Here are the modules I have enabled...

Drupal 6.8: Block, Blog, Comment, Contact, Filter, Forum, Menu, Node, PHP filter, Path, Poll, Profile, Search, System, Taxonomy, Tracker, Update status, Upload, User
CAPTCHA 6.x-1.x-dev (2009-Jan-09): CAPTCHA, Image CAPTCHA
Checkbox Validate 6.x-1.1: Checkbox Validate
Content Construction Kit (CCK) 6.x-2.1: Content, Content Copy, Content Permissions, Fieldgroup, Node Reference, Number, Option Widgets, Text, User Reference
Content Profile 6.x-1.0-beta3: Content Profile, Content Profile User Registration
Date 6.x-2.0-rc6: Date, Date API, Date Copy, Date Popup, Date Repeat API, Date Timezone
Read More Tweak 6.x-3.x-dev (2008-Aug-13): Read More Tweak
Event 6.x-2.x-dev (2009-Jan-01): Event
Gallery 6.x-1.0: Gallery, Gallery G2Image, Gallery Profile
Job queue 6.x-3.0: Job queue
Link 6.x-2.5: Link
LoginToboggan 6.x-1.3: LoginToboggan
Masquerade 6.x-1.0: Masquerade
'me' aliases 6.x-1.x-dev (2008-Dec-25): 'me' Aliases
Nodeaccess 6.x-1.2: Nodeaccess
Meta tags 6.x-1.0-rc1: Meta tags
Notify 6.x-1.0: Notify
Organic groups 6.x-1.1: Organic groups, Organic groups Views integration, Organic groups access control
OG Calendar 6.x-1.0: OG Calendar
Content Type Administration by Organic Group 6.x-1.0-beta1: OG Content Type Admin
OG Forum 6.x-1.0-beta1: OG forum
Page Title 6.x-2.0: Page Title
PNG Fix 6.x-1.0: PNG Fix
Simplenews 6.x-1.0-rc2: Simplenews
TinyMCE WYSIWYG Editor 6.x-1.1-dev (2008-Mar-31): TinyMCE
Token 6.x-1.11: Token, Token actions
userplus 6.x-2.1: Userplus
Views 6.x-2.2: Views, Views UI, Views exporter
XML Sitemap 6.x-1.x-dev (2009-Jan-01): XML Sitemap, XML Sitemap: Engines, XML Sitemap: Node

I thought I'd post here on the offchance someone else has come across this problem and/or might have some suggestions. Any help getting pointed in the right direction would be greatly appreciated.

Thank You,

-- cj --

Comments

kenblackwell’s picture

I'm seeing this exact same problem. Using pretty much the same config.

I can attach a small file (i.e. 1MB), but at about 7MB is craps out with this error.
Makes me think it is a session timeout issue or similar.

Ideas anyone?

geomojo’s picture

Actually, this happens with even small files for me. My limit is set to 4MB.

-- cj --

geomojo’s picture

Another thing that interesting. I several drupal 6.8 sites running on the same server and only one of them has this error condition. I'm trying to go over the site with the error condition and compare it to a site that is OK. What would you look for to compare?

geomojo’s picture

.

geomojo’s picture

Changed PHP handler to suphp (thought this might be an issue). Still get...

"Validation error, please try again. If this error persists, please contact the site administrator."

Upgraded to Drupal 6.9. Still get...

"Validation error, please try again. If this error persists, please contact the site administrator."

Any ideas? :(

geomojo’s picture

The file attachments work when I disable OG Content Type Admin 6.x-1.0-beta1. I'm going to investigate further and see if this has any impact on my other issues.

I reported this issue here... http://drupal.org/node/360378

geomojo’s picture

I confirmed on my production site that after disabling OG Content Type Admin 6.x-1.0-beta1 my site sped up, I was able to upload attachments, and I was able to configure my embedded gallery. I also figured out I can get away without having OG Content Type Admin 6.x-1.0-beta1 enabled (for my particular needs).

Hope this ends up helping someone that was as frustrated as I was.

-- cj --

kenorb’s picture

I've got similar problem when trying to upload the file on forum post, but I'm not using any of OG module.

sourabh.iitm’s picture

I have also upgraded from drupal 5.15 to drupal 6.9 and i am facing the same problem. In my case different thing is that the problem is not in all nodes. Problem is only in nodes which are using CCK fields and body is disabled.

An interesting thing is there is

no watchdog entry

corresponding to this

sourabh.iitm’s picture

I had this error and i created exact same copy of the website in my localhost. After that i disabled module one by one and finally i saw after disabling CCK fieldgroup tabs the error got fixed.

As i have mentioned before that file uploading error was only in pages where i am using CCK related components.

If this is not your fix then one can try disabling components which are appearing at node/*/edit

Hope it helps.

Fr0s7’s picture

It is also possible to get this error if your attached file is too big, and some of the default parameters in your php.ini are set too low.

Here are some new values for your php.ini file that fixed the problem for me:

  • post_max_size=100M
  • upload_max_filesize=100M
  • max_execution_time=1000
  • max_input_time=1000

This is especially helpful for large attachments like video files or audio files.

sourabh.iitm’s picture

In my case it was even small files. I have a ph.ini with high limits all these 4 variables. In my case the problem was with CCK_field_tabs only.

Harim G.A.’s picture

Making the necessary changes to my php.ini file posted by Fr0s7 and restarting apache afterwards fixed this issue for me using Open Atrium.

hunt112’s picture

if you're using cache. try to check if ""minimum lifetime" was enable and if was, try to select it to "none". this works for me when i use image Fupload.

Source: http://drupal.org/node/353915

mrowell’s picture

I have a similar problem with polls. After disabling the Checkbox Validate module, it worked. I still haven't been able to work around the issue so that both can work together.