If you add a new content type (A) and place a filefield/imagefield within it, then pull that content type as a flexifield into another content type (B) setting it to unlimited then the ahah calls will timeout.

Please let me know if I am unclear.

Comments

nicholas.alipaz’s picture

Title: Filefield/Imagefield broken when using AHAH Add more » Filefield/Imagefield breaks AHAH callbacks in flexifield

Correcting title.

effulgentsia’s picture

I'm not seeing this on my end. Can you confirm the following:

1) You're using alpha5 or later of flexifield.
2) You're using 2.3 or later of CCK.
3) You're using 3.1 or later of FileField.
4) You're using 1.1 or later of ahah_response.
5) You have the "Flexifield Filefield Integration" module enabled (part of the flexifield download, but a separate module that needs to be enabled).
6) That you ran update.php after you last upgraded any of these modules (if you run update.php again, that all of the module versions listed are up-to-date).
7) If you're not using garland, then as a test only, set the theme to garland, and see if that fixes it. If it does, let me know what theme you're using, so I can troubleshoot if there's a theme-related glitch.

If all of this is true and you're still having problems, can you describe all of the fields and their settings on Content Types A and B (or do a "export" of those content types and either attach them to a comment on this issue or send them to me via a personal message if you're concerned about security/privacy of that information).

tashicoder’s picture

When i use cck image as flexifield. The upload and remove button gives an error saying something like "An HTTP error 403 occurred.
/styleshop247/flexifield-filefield/ahah/color/field_color_image/0/field_product_color%3A0%3Avalue%3Agroup_color_image"

I am testing as user 1.

nicoloye’s picture

StatusFileSize
new4.08 KB

Same problem here. Using alpha5 (same with dev version), CCK 2.9, Filefield 3.10, ahah_response 1.2, FlexiField FileField Integration enabled, website correctly updated, bug seen on garland theme.

An HTTP error 403 occurred.
/[base_path]/flexifield-filefield/ahah/[content_type_name]/[image_field_name]/0/[flexifield_field_name]%3A0%3Avalue

Here are my content types definitions.

WoozyDuck’s picture

Priority: Normal » Major

Same problem here

christophe.klein’s picture

Here is a quick and dirty fix:

in sites/all/modules/flexifield/modules/filefield/flexifield_filefield.module,
replace

/**
 * Implementation of hook_menu().
 */
function flexifield_filefield_menu() {
  $aItems = array();
  $aItems['flexifield-filefield/ahah/%/%/%/%'] = array(
    'page callback' => 'flexifield_filefield_js',
    'page arguments' => array(2, 3, 4, 5),
    'access callback' => 'filefield_edit_access',
    'access arguments' => array(3),
    'type' => MENU_CALLBACK,
  );
  return $aItems;
}

with

/**
 * Implementation of hook_menu().
 */
function flexifield_filefield_menu() {
  $aItems = array();
  $aItems['flexifield-filefield/ahah/%/%/%/%'] = array(
    'page callback' => 'flexifield_filefield_js',
    'page arguments' => array(2, 3, 4, 5),
    'type' => MENU_CALLBACK,
    'access arguments' => array('access content'),
  );
  return $aItems;
}

and clear cache.

vijayan08’s picture

Thanks Issue fixed

truyenle’s picture

Issue summary: View changes
StatusFileSize
new547 bytes

Here is the patch. It works for me.