WordPress.org

Forums

Validation problem, ' in title turns into ? (23 posts)

  1. Michael Heilemann
    Member
    Posted 11 years ago #

    Check out my validation. That ? turns out as a ' (as it should) on the page...

  2. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    Try editing that post and replacing the apostrophe with a plain one from your keyboard. Somehow a higher level ASCII character snuck in there.

  3. Michael Heilemann
    Member
    Posted 11 years ago #

    I tried removing it directly in the SQL db, but to no avail. I ended up deleting the title for it.
    But it seems to be a general problem.

  4. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    Whoa! It looks like something happened and your comments are not going in the title attribute for those links, I would check your template. That's about 98% of those errors.

  5. Kelson
    Member
    Posted 11 years ago #

    I'm seeing this same problem on all posts with an apostrophe in the title.
    I've confirmed by commenting out the texturize line in b2vars.php that the actual posts contain plain old ordinary ASCII apostrophes. Somehow the_title (or more likely, convert_chars) is converting it to the actual character instead of the entity.

  6. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    Found it! Comment out line 227 of b2functions.php, and it will fix the problem. A *much better* fix will be in the next release.

  7. Kelson
    Member
    Posted 11 years ago #

    Thanks! At first I was worried that this might break HTML in titles (I've used italics from time to time), but it looks OK - and now it both validates and shows up in Netscape 4! (Don't laugh, I have friends who are still stuck on it because their computers are too old to run anything newer.)

  8. Michael Heilemann
    Member
    Posted 11 years ago #

    Try taking a look at my validation results.
    Not pretty :(

  9. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    First, you can't have nested anchors, so move the named anchor outside of the title link. For the rest, do you copy and paste from another program or type it in the browser?

  10. Anonymous
    Unregistered
    Posted 11 years ago #

    I copy and paste from another program too, and I get realy awufl validation results (lots of non-SGML character errors). Could it be something in the way windows copies and pastes characters?

  11. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    Yes, especially if you copy and paste from Word.

  12. Anonymous
    Unregistered
    Posted 11 years ago #

    I do some of both :)

  13. Michael Heilemann
    Member
    Posted 11 years ago #

    Sorry, that was me. (BTW, your tabstops from the password textbox are a bit strange).

  14. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    Yes they were, that's fixed now.

  15. Michael Heilemann
    Member
    Posted 11 years ago #

    I still have this problem. In all of my post, not just the title.

  16. Mike Little
    Member
    Posted 11 years ago #

    Hi Eudaimic,
    did you comment out the call to
    $content = strtr($content, $b2_htmltrans);
    on line 227 of b2functions.php?
    Mike

  17. Anonymous
    Unregistered
    Posted 11 years ago #

    There's one more thing I noticed! Ever been in the habit of copying and pasting from your favortie news sources like MSNBC (especially that)? Their ellipses, em and en dashes, and sexy quotes are copied as is, and though they are displayed in the browser, this may cause non-SGML character errors. You'll have to go in the quote and change these characters either to the ones with the amps or the texturize comversions.

  18. Anonymous
    Unregistered
    Posted 11 years ago #

    Mike: Yes I've commented it out. till a problem.

  19. Mike Little
    Member
    Posted 11 years ago #

    Hi Michael,
    The first error showing at the moment is caused by using blockquote inside a paragraph tag. They are both block elements and cannot be nested.
    You have paragraph tags around your call to <?php the_content() ?> This will mean that if you include paragraph tags or blockquote tags in your story it will always be invalid.
    Which filters do you have turned on? (At the bottom of b2vars.php)
    Mike

  20. Michael Heilemann
    Member
    Posted 11 years ago #

    There are no P elements in my index.php!
    Here's the end of my b2vars.php, as you can see I've had to make some costumization due to problems when I switched to an Apache server:
    add_filter('all', 'wptexturize');
    // add_filter('the_content', 'wpautop');
    add_filter('comment_text', 'wpautop');
    // Uncomment the following for Textile support
    // include_once('textile.php');
    $res = include_once('/STORE/binarybonsai_com/public_html/b2-include/textile.php');
    if(!res) {
    if( !in_array('/STORE/binarybonsai_com/public_html/b2-include/textile.php', get_included_files()) ) {
    echo "The file '/STORE/binarybonsai_com/public_html/b2-include/textile.php' does not exists";
    exit(1);
    }
    }
    add_filter('the_content', 'textile');
    // There is some duplication of effore so textile.php really should be tweaked to eliminate that.
    ?>

  21. Mike Little
    Member
    Posted 11 years ago #

    Hmmm.
    I have exactly the same settings as you (just a plain include_once('textile.php')), and where ever I use a bq. or quotes of any kind, I don't get the same validation issues you have.
    I notice that your current blog page does validate correctly, even though some of the titles and posts have quotes in them.
    But if you go back to http://binarybonsai.com/index.php?m=20030621 then this doesn't validate.
    I even tried copying nad pasting your "WISH 52: What kind of gamer am I?" story into my wordpress reformatting it back to textile and ist doesn't produce the

    that you have.
    I'm a little confused. Are you using textile syntax for that post? Or do you have the html tags in the post?
    Mike

  22. Michael Heilemann
    Member
    Posted 11 years ago #

    I use the blockquote tag rather than bq. -- Will that make a difference?

  23. Anonymous
    Unregistered
    Posted 11 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.