I'm using drupal 4.7 and mysql 5.0.22.

When I try to install the subforms module I get 8 errors like this:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /opt/apaches/shsmd/modules/cck/content.module on line 733.

Four for arg 2 at line 733 and four for arg 1 at line 746.

This is a pristine installation with nothing in the db except the initial admin account information.

I'm just starting with subforms so I don't know if this is fatal, but it isn't encouraging and indicates that something unexpected is happening during installation.

Comments

jpsalter’s picture

Ditto for me - clean install, 4.7, mysql 4.1, all contrib modules downloaded today

jpsalter’s picture

The code is loading global_settings from the node_field table. It looks like the serialized global_settings are not in the correct format:

The {} are getting removed. So, I'm guessing the installer isn't working correctly.

a:3:s:3:"min";s:1:"1";s:3:"max";s:0:"";s:14:"allowed_values";s:0:"";

vs.

a:3:{s:3:"min";s:1:"1";s:3:"max";s:0:"";s:14:"allowed_values";s:0:"";}

Using myphpadmin I changed the settings to include the brackets and the error has disappeared. Since this is my first install of subforms - I'm not sure what "proper" behavior should be.

jpsalter’s picture

Last follow up - I then had to add a CCK field to the CCK type "relation type" - this somehow reset the "relation type" so that the pre-configured fields were displayed. I deleted my added field and the module now works as advertised.

Nikkol’s picture

same happened with me. Make sure to add the brackets on the four entries in the database: field_type_one, field_type_two, field_type_one_cardinality, field_type_two_cardinality.

What is the field in CCK relation type with no name? When I click to configure it, it won't let me (just brings up the manage field page again).

casey’s picture

Status: Active » Closed (fixed)