Step to reproduce:

  • Environment: Drupal 6.22, MySQL 5.5.16, PHP 5.3.8 (developement box on Windows XP)
    • Contrib modules: Administration menu 6.x-1.8
    • Token 6.x-1.18
    • Ubercart 6.x-2.x-dev
    • Views 6.x-3.0
  • Enable @font-your-face
  • Then enabling "Google Fonts API" raises the issue (after few minutes)

Errors are multiple but mainly the following:

warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in ...\includes\database.mysqli.inc on line 329.

user warning: Duplicate entry '2-1' for key 'PRIMARY' query: INSERT INTO fontyourface_tag_font (fid, tid) VALUES (2, 1) in ...\includes\common.inc on line 3538.

Comments

BarisW’s picture

Status: Active » Fixed

Thanks for reporting this issue and providing the steps to reproduce this. I've tracked down the issue. It seemed I made a mistake while backporting the D7 code. Fixed in 6.x-2.x-dev

mandreato’s picture

Latest dev resolved the issue. Thanks !

BarisW’s picture

Thanks again for reporting. Scott created a new release so you don't have to use the dev in production sites.

BarisW’s picture

Title: warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in ...\includes\database.mysqli.inc line 329 » mysqli_real_escape_string() error while importing Google Fonts

Just changing title for better readability

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.