• On my development server, using the latest versions of WordPress and the Plugin, everything works well.

    However, on the production server, using the same versions, whenever I try to save a page that uses the Custom Fields template, I get the following error:

    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/account/public_html/wordpress/wp-includes/wp-db.php on line 478

    Warning: Cannot modify header information – headers already sent by (output started at /home/account/public_html/wordpress/wp-includes/wp-db.php:478) in /home/account/public_html/wordpress/wp-includes/pluggable.php on line 868

    Any advice greatly appreciated!

    https://www.ads-software.com/extend/plugins/custom-field-template/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Could you show me the template content you are using? I will try it in my server. Thanks.

    Thread Starter begtodiffer

    (@begtodiffer)

    Following further investigation, it seems to be related to the use of the word “content”. Is this a reserved word?

    [content]
    type = textarea
    rows = 4
    cols = 40
    tinyMCE = true
    htmlEditor = true
    mediaButton = true

    When replacing the word “content” above, the error goes away.

    Currently, you can not use the following words as field keys: content, post_title, and excerpt. These words are already used in the default input fields in the post edit page. So please change the field key name. Thanks.

    Thread Starter begtodiffer

    (@begtodiffer)

    Got it!

    Thanks for a great plug-in.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Custom Field Template] mysql_real_escape_string error?’ is closed to new replies.