I installed eyedrop, activated both modules, got no errors. Went to admin and created a content type. Added the eyedrop field and this was the result on the next page.

    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a:4:s:1:"x";i:0;s:1:"y";i:0;s:1:"w";i:0;s:1:"h";i:0' at line 1 query: ALTER TABLE content_type_edtest ADD COLUMN field_eyedrop_params varchar(255) NOT NULL default a:4:s:1:"x";i:0;s:1:"y";i:0;s:1:"w";i:0;s:1:"h";i:0; in /var/www/includes/database.mysql.inc on line 172.
    * warning: Invalid argument supplied for foreach() in /var/www/sites/all/modules/eyedrop/eyedrop_field/eyedrop_field.module on line 60.
    * warning: Invalid argument supplied for foreach() in /var/www/includes/form.inc on line 945.

I set the field to required, hit save, and got the following error

warning: Invalid argument supplied for foreach() in /var/www/sites/all/modules/eyedrop/eyedrop_field/eyedrop_field.module on line 60.

Tried to create a new instance of my test content type, and eyedrop was just a text field in the node.

Attached is an export. (the export caused the same error as above also.)

CommentFileSizeAuthor
eyedrop.content.txt1.66 KBhyperlogos

Comments

hyperlogos’s picture

Got the following error deleting the content type:

user warning: Can't DROP 'field_eyedrop_params'; check that column/key exists query: ALTER TABLE content_type_edtest DROP field_eyedrop_params in /var/www/includes/database.mysql.inc on line 172.

But it appeared to work:

    * The content fields table content_type_edtest has been deleted.
    * The content type Eyedrop Test has been deleted.

Modules disabled okay.

sime’s picture

Status: Active » Closed (won't fix)

Hey, welcome!

Yes, I got this using computed_field and because cck handles the table creation I've assumed it's a cck problem. I manually correct the SQL and created the table.

I should log this with cck but haven't got round to it. cck is changing quite quickly (they're changed their whole table naming scheme) so part of me assumes this is just teething with cck.

sime’s picture

Component: Module » Eyedrop Field
Status: Closed (won't fix) » Closed (duplicate)
sime’s picture

Status: Closed (duplicate) » Fixed

Actually, I've decided to manually add the quotemarks to the default and assume that's needed.
http://drupal.org/cvs?commit=56685

sime’s picture

drinkypoo. just looking at your other errors, I'm not sure. Setting up the field has a couple of dependencies and I'm writing some decent install docs at the moment, maybe you can have another look later.
http://drupal.org/node/119625

hyperlogos’s picture

I will try to remember to reinstall and retest this in a sandbox on Tuesday (Monday's a holiday, thank goodness.)

sime’s picture

Version: 5.x-1.x-dev » 5.x-1.0

Changing version (1.0 is now released)

Anonymous’s picture

Status: Fixed » Closed (fixed)
mokargas’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
Category: bug » feature

Where is 5.x-1.0? I have the blank field issue on 5.x-1.x-dev