• Resolved the_webscaper

    (@the_webscaper)


    I just created a lengthy volunteer form and clicked save, but there are two errors at the top of the page now saying “Invalid characters in title field.”
    Do I assume the Task/Item is the title field? I have gone through and removed anything that may have been a special character (some parentheses, a slash, some commas… there are still periods, but they need to be there… and there are more than two of them. Suggestions?? I don’t want to lose all of this work…

    Here’s screen shot: https://prntscr.com/8o8fmq

    Thanks in advance.

    Kym

    https://www.ads-software.com/plugins/pta-volunteer-sign-up-sheets/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter the_webscaper

    (@the_webscaper)

    Additional info: I just added a 2nd sheet, testing just to see what character may have tripped it. I now have NO special characters in the task/item field of this test form, and it’s still saying “invalid characters in title field.”
    Help…

    Kym

    Plugin Author DBAR Productions

    (@dbar-productions)

    I can’t see the full text in the screen shot, so hard for me to say what’s tripping that check.

    Make sure there are not any extra spaces, tabs, or line breaks. One space only between characters, no angle brackets “<“.

    Basically, it compares the input against the wordpress sanitize_text_field function, which does this:

    Checks for invalid UTF-8, Convert single < characters to entity, strip all tags, remove line breaks, tabs and extra white space, strip octets.

    Thread Starter the_webscaper

    (@the_webscaper)

    Thanks for the quick reply. I’m actually removing more and more and more of the words in the task/item – and now ending up with MORE of those errors than I had when I started! Just from removing words…

    https://prntscr.com/8o8jy0

    I know you can’t see it all from that, just really showing you that my errors are multiplying…

    At this point I may just start over with a new sheet. Just took a long time to do the first one ??

    Can you tell me this. Can I use parentheses? Dashes? Commas, or periods?
    Is there a character limit?

    I suppose it’s possible I have double spaces somewhere – but I don’t really know where they could be now that I’m deleting so much of the text. But, I’ll try again and see if I have better luck.

    Thread Starter the_webscaper

    (@the_webscaper)

    It was dashes, it seems. Which is unfortunate as many of the tasks needed dashes… (i.e. approximate 2-hour shift, or 1st Grade Monitor – Mrs. Riley).

    But now it seems to be saving at least. Again thank you for the quick reply.

    Kym

    Thread Starter the_webscaper

    (@the_webscaper)

    Correction. It’s not the dashes, dashes are OK. But if there is a space (not a DOUBLE space, just a single space) after the end of the task/item, it breaks.

    Plugin Author DBAR Productions

    (@dbar-productions)

    Yes, dashes should be fine, but it doesn’t like extra spaces at the end. That is part of what is meant by “extra white space” in the description of the function from the WordPress Codex, which I posted in my first reply.

    Also, I would make sure you aren’t copying and pasting from MS Word, since MS Word has all sorts of hidden formatting crap that you can’t see.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Invalid characters in title field’ is closed to new replies.