• I have a single custom field that I use with this plugin, which updates fine, but as soon as I hit update on the page itself, I get a database error:
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /usr/www/users/onlinepw/wp-includes/wp-db.php on line 785

    I have deactivated all other plugins, and it’s definitely this one that’s causing it. Any ideas?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hiroaki Miyashita

    (@hiroaki-miyashita)

    Please show me the template content. I will try it on my server. Thanks.

    Thread Starter sparrows

    (@sparrows)

    Hi Hiroaki,
    The problem was a poorly chosen custom field name (I named it ‘Content’ out of laziness). Not sure why that would cause a problem, but I changed the name, and it works now. FYI, here’s the template:

    [Content]
    type = textarea
    rows = 10
    cols = 40
    tinyMCE = true
    htmlEditor = true
    mediaButton = true
    Plugin Author Hiroaki Miyashita

    (@hiroaki-miyashita)

    It is sometimes reported. content and post_title are already used by WordPress core. So you can not use them for the key. I should fix this some time in the future. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Custom Field Template] Database error when updating posts’ is closed to new replies.