Whenever I try to configure a field in a content type, it will not save any changes beacause it returns something along the lines of:

The default value PHP code returned an incorrect value
Expected format :

array(
0 => array('value' => value for value),
// You'll usually want to stop here. Provide more values
// if you want your 'default value' to be multi-valued :
1 => array('value' => value for value),
2 => ...
);

Returned value :

The 0 => and 1 => change depending on the field type. The error above is from a simple text box.

I am using Drupal 5.7 on Apache 2.2.6 with PHP 5.2.5.

Note: I'm running this on my Windows box w/ XAMPP. I plan to upload it to a remote host when I complete the site.

Thanks for your help.

Comments

avolve’s picture

i just received a similar error when creating a CCK Link field type (had already defined an imagefield). I have not had a problem before.

This is on a OS X 10.4.11/MAMP Drupal 5.7 install.

avolve’s picture

Category: support » bug

Having removed CCK Link module, i still get this error. When adding a field, the help text is lost. When editing a field, the error is given on save as well (irrespective if changes are made).

Given replication, i have changed to a bug report

prattmic’s picture

I found a workaround: Use Internet Explorer.

avolve’s picture

It would be interesting to locate the source of the problem in other browsers.

[and whilst it may work in IE, what about Mac users]

karens’s picture

Status: Active » Closed (won't fix)

The D5 version is no longer being supported. Sorry.