When using field_link in content-type with option link target: Allow the user to choose selected i get the nexts sql warnings and cannot keep the data entered.

warning: mysql_real_escape_string() expects parameter 1 to be string, array   given in /home/provesweb/www/alturgell/docs/includes/database.mysql.inc on line   349. 

user warning: Duplicate entry '0' for key 1 query: INSERT INTO   node_content_test (field_link_url, field_link_title, field_link_attributes, vid,   nid) VALUES ('www.drupal.org', 'drupal link title', '', 0, 0) in   /home/provesweb/www/alturgell/docs/includes/database.mysql.inc on line 120.
CommentFileSizeAuthor
cck_link_error_screenshot.jpg43.2 KBjpeiro
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

If you are indeed using the development version, did you update from a previous install? The database schema has changed and needs update.php run.

bradsw57’s picture

Version: 4.7.x-1.x-dev » 5.x-1.3

I get the same error in 5.0rc2.

Initially upgraded from 4.7.5, then on a fresh install. MySQL 5.0.22, PHP 5.1.6, Apache 2.0.22.

quicksketch’s picture

Thanks guys, I didn't read the post correctly the first time through. I've got the same error and I'll post a fix shortly.

quicksketch’s picture

Status: Active » Fixed

This problem has been corrected and posted as version 1.4. Please reopen if the problem persists.

Anonymous’s picture

Status: Fixed » Closed (fixed)