After updating to 6.x-3.5 from 3.4 all users but the admin user uid===1 have a javascript http error 0. This only occurred when using AHAH to upload the image files. If the AHAH upload button was not clicked, and save was clicked, the images uploaded properly. I rolled back to 6.x-3.4 and all works again as expected. I could not find the cause. Below are details that may help identify the problem.

  • Only content managers can upload files in the site
  • They all have a roll with cck edit permissions on all the many fileupload fields (all causing the error)
  • Notable exception is the user Admin uid === 1 (for this user everything worked as expected)
  • Apache error log showed no new entry, and access log had a normal as expected entry for /[path]/filefield/ahah/[content type]/field_[field_name]/0
  • I also noticed that if the upload button was clicked, and subsequently I tried to "save" the page without reloading it, I landed at my.domain/user but with the AHAH path in the browser address field. /[path]/filefield/ahah/[content type]/field_[field_name]/0
  • Uploads are only done via the backend using the garland theme. There are some hook_form_alter, triggers and actions and similar used, although none of these could be the cause of the error, since it occurs in all of our 11 node types with cck image upload fields. Some of which are very basic with no extra custom tweaks.

Enabled modules are:

where XXXXXX read my-custom-module

-bash-3.2$ drush sm | awk "/ Enabled /"

  • ACL (acl) Module Enabled 6.x-1.2
  • Administration menu (admin_menu) Module Enabled 6.x-1.5
  • Administer Users by Role (administerusersbyrole) Module Enabled 6.x-1.4
  • Advanced Forum (advanced_forum) Module Enabled 6.x-1.1
  • AHAH helper (ahah_helper) Module Enabled 6.x-2.0
  • AHAH Response (ahah_response) Module Enabled 6.x-1.2
  • Author Pane (author_pane) Module Enabled 6.x-1.1
  • Block (block) Module Enabled 6.17
  • CAPTCHA (captcha) Module Enabled 6.x-2.2
  • Clone module (clone) Module Enabled 6.x-1.0
  • Color (color) Module Enabled 6.17
  • Comment (comment) Module Enabled 6.17
  • Conditional Fields (conditional_fields) Module Enabled 6.x-1.1
  • Content (content) Module Enabled 6.x-3.x-dev
  • Content Access (content_access) Module Enabled 6.x-1.2
  • Content Copy (content_copy) Module Enabled 6.x-3.x-dev
  • Content Multigroup (content_multigroup) Module Enabled 6.x-3.x-dev
  • Content Permissions (content_permissions) Module Enabled 6.x-3.x-dev
  • Corresponding Node References (corresponding_node_references) Module Enabled 6.x-3.3
  • Date (date) Module Enabled 6.x-2.4
  • Date API (date_api) Module Enabled 6.x-2.4
  • Date Locale (date_locale) Module Enabled 6.x-2.4
  • Date Timezone (date_timezone) Module Enabled 6.x-2.4
  • Database logging (dblog) Module Enabled 6.17
  • Elements (elements) Module Enabled 6.x-1.0
  • Fieldgroup (fieldgroup) Module Enabled 6.x-3.x-dev
  • FileField (filefield) Module Enabled 6.x-3.3
  • FileField Paths (filefield_paths) Module Enabled 6.x-1.4
  • Filter (filter) Module Enabled 6.17
  • Flat comments (flatcomments) Module Enabled 6.x-2.0
  • Format Number API (format_number) Module Enabled 6.x-1.6
  • Forum (forum) Module Enabled 6.17
  • Google Analytics (googleanalytics) Module Enabled 6.x-2.2
  • Help (help) Module Enabled 6.17
  • ImageAPI (imageapi) Module Enabled 6.x-1.8
  • ImageAPI GD2 (imageapi_gd) Module Enabled 6.x-1.8
  • ImageCache (imagecache) Module Enabled 6.x-2.0-beta10
  • Imagecache Canvas Actions (imagecache_canvasactions) Module Enabled 6.x-1.7
  • Imagecache Color Actions (imagecache_coloractions) Module Enabled 6.x-1.7
  • ImageCache UI (imagecache_ui) Module Enabled 6.x-2.0-beta10
  • ImageField (imagefield) Module Enabled 6.x-3.3
  • jQuery plugins (XXXXXX) (jquery_plugin) Module Enabled 6.x-1.10
  • jQuery UI (jquery_ui) Module Enabled 6.x-1.3
  • XXXXXX Kontakt form (kontakt) Module Enabled
  • search Level 2 (level2) Module Enabled
  • Link (link) Module Enabled 6.x-2.9
  • Locale (locale) Module Enabled 6.17
  • Menu (menu) Module Enabled 6.17
  • Modal Frame API (modalframe) Module Enabled 6.x-1.7
  • Node (node) Module Enabled 6.17
  • Node Reference (nodereference) Module Enabled 6.x-3.x-dev
  • Node Relationships (noderelationships) Module Enabled 6.x-1.6
  • Number (number) Module Enabled 6.x-3.x-dev
  • Option Widgets (optionwidgets) Module Enabled 6.x-3.x-dev
  • Page Title (page_title) Module Enabled 6.x-2.3
  • Path (path) Module Enabled 6.17
  • Path redirect (path_redirect) Module Enabled 6.x-1.0-beta6
  • Pathauto (pathauto) Module Enabled 6.x-1.3
  • PHP filter (php) Module Enabled 6.17
  • reCAPTCHA (recaptcha) Module Enabled 6.x-1.4
  • Role Delegation (role_delegation) Module Enabled 6.x-1.3
  • Rules (rules) Module Enabled 6.x-1.2
  • Rules Administration UI (rules_admin) Module Enabled 6.x-1.2
  • Rules Forms support (rules_forms) Module Enabled 6.x-1.2
  • XXXXXX affiliates (XXXXXX_affiliate) Module Enabled
  • **REFRACTORED** XXXXXX Tour Booking formular. (XXXXXX_booking) Module Enabled
  • XXXXXX forum (XXXXXX_forum) Module Enabled
  • XXXXXX menu (XXXXXX_menu) Module Enabled
  • XXXXXX tweaks (XXXXXX_tweaks) Module Enabled
  • Syslog (syslog) Module Enabled 6.17
  • System (system) Module Enabled 6.17
  • Tagadelic (tagadelic) Module Enabled 6.x-1.2
  • Taxonomy (taxonomy) Module Enabled 6.17
  • Taxonomy Image (taxonomy_image) Module Enabled 6.x-1.6
  • Text (text) Module Enabled 6.x-3.x-dev
  • Token (token) Module Enabled 6.x-1.13
  • Process tour dates and prices (tour_dates) Module Enabled
  • XXXXXX Tour Booking formular (tourbook) Module Enabled
  • Transliteration (transliteration) Module Enabled 6.x-2.1
  • Update status (update) Module Enabled 6.17
  • Url alter (url_alter) Module Enabled 6.x-1.2
  • User (user) Module Enabled 6.17
  • User Reference (userreference) Module Enabled 6.x-3.x-dev
  • View Unpublished Content (view_unpublished) Module Enabled 6.x-1.0
  • Views (views) Module Enabled 6.x-2.11
  • Views Bulk Operations (views_bulk_operations) Module Enabled 6.x-1.9
  • Views exporter (views_export) Module Enabled 6.x-2.11
  • Views UI (views_ui) Module Enabled 6.x-2.11
  • Garland (garland) Theme Enabled 6.17
  • XXXXXX (XXXXXX) Theme Enabled 6.17

Comments

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

This is too complicated a set up for me to reproduce. I'll need instructions on how to reproduce the problem from a clean Drupal install.

bird-cage’s picture

That would also be beyond me BUT instead, could you let me know what changes between 3.3 and 3.4 would affect the javascript side of things. Its very obviously something in the 3.4 javascript that is probably getting caught by my custom jquery scripts, which (I believe ;-) are all properly contained within their own scopes. That way I could try and find the problem.

Thanks anyway, FileField is still a great must have module !!

quicksketch’s picture

There shouldn't be any JavaScript changes between 3.3 and the current release. If you'd like to find out all the differences, you can check out (or download the zipped archives) of the current version and the one you were using before and do a diff. See http://drupal.org/patch/create.

The JavaScript within FileField hasn't changed in over 2 months. See http://drupalcode.org/viewvc/drupal/contributions/modules/filefield/?pat...

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

CLosing after lack of activity and information to reproduce the problem.