• Resolved ga-uk

    (@ga-uk)


    I have a live site using cft without problem

    But using a clone of the site on a local copy of instantWP ( http://www.instantwp.com ) when I save a post, page or custom post that is susing a cf template I get two errors:

    Warning: strip_tags() expects parameter 1 to be string, array given in …
    wp-includes/formatting.php line 2911

    and

    Warning: strtolower() expects parameter 1 to be string, array given in… wp-includes/formatting.php line 805

    I think this is to do with defining an array. But I can’t track the problem.

    The strange thing is that when cft is first installed with the default information it works. But as soon as I change that information and save those changes the errors occur when I save a post or page, and it seems regardless of what the changes are.

    Anyone else faced this? Any ideas how to solve it?

    Thanks.

    http://wordpress.org/extend/plugins/custom-field-template/

Viewing 1 replies (of 1 total)
  • Thread Starter ga-uk

    (@ga-uk)

    Ok…

    So, much testing and the problem comes down to something very simple.

    CFT has some reserved words that cannot be used as field names.

    For example if you use the field name [type] updating posts/pages using that cft will give the php warning.

    I don’t know how many reserved words there are but it might be safe to assume that all ‘option’ words, e.g. “type =” are reserved.

    I hope this info saves someone some time…..

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Custom Field Template] Using InstantWP strip_tags and strtolower errors’ is closed to new replies.