Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
cck_link_error_screenshot.jpg | 43.2 KB | jpeiro |
Comments
Comment #1
quicksketchIf you are indeed using the development version, did you update from a previous install? The database schema has changed and needs update.php run.
Comment #2
bradsw57 CreditAttribution: bradsw57 commentedI 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.
Comment #3
quicksketchThanks 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.
Comment #4
quicksketchThis problem has been corrected and posted as version 1.4. Please reopen if the problem persists.
Comment #5
(not verified) CreditAttribution: commented