• https://aktivfor.dk/forum does not validate, such as it stands. The problem seems to be with the file template-functions-post.php. It has to do with the form element. The validator says that it is not allowed here – or words to that effect. Does anyone have an idea as to how I might fix this problem? The only solution I can think of now is to remove the link to the validator. Then again, I’m sure that it must be some stupid trick that I have missed.
    TIA.

Viewing 9 replies - 1 through 9 (of 9 total)
  • It looks like you’ve added form code to a post. Neat trick, but that’s probably what’s causing your grief.
    You’ve got an open P tag for the paragraph (which is right) the form tag followed by another opening P tag (with out first closing the first one.) This I think is what’s cauing the problem. With out knowing how exactly you entered your post, I’d say take out any carriage returns you have, and replace them with
    tags instead – see if that helps.
    TG

    Thread Starter hoonnu

    (@hoonnu)

    I haven’t done it as such. My part in it is that I have made a passwordprotected post. It comes out like what you see. I have been playing with the , because I think that is the problem too. The trouble is, that it doesn’t work if you remove them. The php generates a few of them too, and that way you end up with too many. I don’t think they are allowed inside the form element at all, but I don’t know what should go instead. The only thing I have changed is that I have translated the English into Danish.

    Ah, OK. So it sounds like there is something wrong with the part that generates the form for password protected posts….. interesting that no one has come across this before…. I’ll give it a try and see what happens.
    Tg

    I think part of the problem is that you are going for Strict Validation as opposed to the rather more lax transitional. I would guess that is why other errors like this have not been reported, and the workrounds.

    Thread Starter hoonnu

    (@hoonnu)

    I tried putting in the transitional doctype declaration. Unfortunately, it did not make any difference.

    OK, just did a password protected post on my site and here’s my findings. Mine validated…. but I also noticed that my form tag is outside any P tags… it ends up between the div tag and the p tags…. so it would appear that something is out of place. Not sure if it’s something from the translation, or if a file got messed up.
    TG

    Thread Starter hoonnu

    (@hoonnu)

    OK. Thanks. I’ll start up with a clean copy of the template-functions-post.php first thing in the morning.

    Thread Starter hoonnu

    (@hoonnu)

    Well, I couldn’t wait. I found a clean copy and uploaded it – it did not work. Are gremlins at play here, I wonder?

    Thread Starter hoonnu

    (@hoonnu)

    TG, I also have a blog that I write in English. https://hennystewart.com/blog . On it, I also made a test post with password-protection. The result is the same as on https://aktivfor.dk/forum = The page is no longer valid xhtml. So now I am wondering what you did differently from me to make your page validate in the same circumstance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Problem with validation’ is closed to new replies.