Support » Plugin: Custom Field Template » [Plugin: Custom Field Template] Textareas keep changing to "array" and new meta keys calle

  • Resolved kyleduncan

    (@kyleduncan)


    Hi,

    First, thanks for the great Custom Field Update plugin, it has made WordPress so much more powerful and user friendly!

    Right now I am pulling my hair out with 2 problems. I am using 1.8.3 and wordpress 3.1, and have pages which have lots of custom fields, e.g.:

    [Team1 Name]
    type=text
    class = text

    [Team1 Job]
    type=text
    class = text

    [Team1 Photo]
    type = file

    [Team1 Bio]
    type = textarea
    tinyMCE = true
    rows = 15

    [Team2 Name]
    type=text
    class = text

    [Team2 Job]
    type=text
    class = text

    [Team2 Photo]
    type = file

    [Team2 Bio]
    type = textarea
    tinyMCE = true
    rows = 15

    [Team3 Name]
    type=text
    class = text

    [Team3 Job]
    type=text
    class = text

    [Team3 Photo]
    type = file

    [Team3 Bio]
    type = textarea
    tinyMCE = true
    rows = 15

    [First Module Title]
    type=text
    class = text

    [First Module Content]
    type = textarea
    tinyMCE = true
    rows = 15

    [Second Module Title]
    type=text
    class = text

    [Second Module Content]
    type = textarea
    tinyMCE = true
    rows = 15

    In the global settings i have chosen to check the following options:

    1. use wpautop
    2. disable initialize button
    3. disable save button
    4. disable default custom fields
    5. disable quick edit
    6. disable custom field column
    7. replace the box title

    PROBLEM 1:
    I looked at the efault custom fields to see what was actually being created (by temporarily enabling them in Global Settings) and i see LOADS of meta keys called “Array” with values taken from various other keys. E.g. the above page shows something like
    this for teh default custom fields:

    Meta Key: Array
    Meta Value: John Doe

    Meta Key: Array
    Meta Value = Jane Doe

    sometimes there are 50 of these (more getting created every time i hit the “Update” button on the page).

    PROBLEM 2:
    Sometimes(and i can’t see a pattern yet) when i Update a page, some textareas from the custom field template change to just:

    <p>Array</p>

    this only happens in textareas i think, and it happens whether tinyMCE is enabled or disabled (e.g. the “Team3 Bio” meta key is doing this currently on my site).

    if i change the name of the meta key to something else, th eproblem goes away, but when i change back it returns, and when i create new pages with new CFT template sets, it continues to happen randomly.

    Can anybody help?

    Kyle

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • kyleduncan

    (@kyleduncan)

    I think i have determined that a custom field value gets set as “Array” if you click on the “Update” button for a page without entering any value into the custom field. E.g. i just created a new CFT with:

    [Maplink 1]
    type = text
    class = text

    [Maplink 2]
    type = text
    class = text

    [Maplink 3]
    type = text
    class = text

    then i filled out Maplink1 but NOT 2 and 3, and after Updating, both fields had “Array” in them. no matter what i do from there, including deleting and re-adding the field manually using the default custom fields, i cannot get rid of array. the only solution is to change the CFT to use a completely different meta_key name.

    If anybody could help with the other problem that would be great.

    kyleduncan

    (@kyleduncan)

    Hi,

    I have established all of the above problems were caused by using PHP ersion 5.1.3 on a Windows server (not my choice!). having moved the site elsewhere now, everything works beautifully.

    hope this helps somebody else one day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Custom Field Template] Textareas keep changing to "array" and new meta keys calle’ is closed to new replies.