WordPress.org

Forums

Script Error WP 2.0.5 (12 posts)

  1. jafer
    Member
    Posted 8 years ago #

    Everything seemed to be ok before I upgraded but now on my main page (haven't checked every page) I have the little notification icon that tells me I have a script error.

    It says Script Error on Line 1, Character: 25 Code: 0, Error: Syntax Error, url: http://www.idiotonastick.com/talk.

    When I view the source, this is what it shows me on line 1:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Can anyone tell me what this script error is? The last post I found here about script errors was from 2004, so when I looked up what they were talking about the php files were totally different.

    Thanks.

  2. whooami
    Member
    Posted 8 years ago #

    Ive looked at your site in ie 6 and 7 and dont get any javascript error, if i fact, thats what icon youre referring to -- its the one that will show up in the lower left hand corner of the browser.

    You do have A LOT of other issues though

    http://validator.w3.org/check?uri=http://www.idiotonastick.com/talk/

  3. jafer
    Member
    Posted 8 years ago #

    Unfortunately, most of those errors are happening with the structured blogging plugin - before I added that my site always validated perfectly. I may just take it off, but I like the formats of the structured blogging for movies reviews and such. The other errors are with the radio blog, however, none of those have to do with the script error for line 1.

    I don't see a script error there, do you?

  4. whooami
    Member
    Posted 8 years ago #

    javascript errors arent going to show up in the validator. Thats why I asked (in a roundabout way) if you were seeing it via ie's little error icon that shows up in the lower corner of the browser.

    I dont see ANY js errors on the page you linked, which btw, isnt correct with the . behind it, in ie6 or 7.

  5. jafer
    Member
    Posted 8 years ago #

    Yes, it was the little icon on the bottom left. I reloaded the page and it wasn't showing but then I did something else (clicked on something and there it was again).

    I don't know what you mean by the . behind it - are you talking about the code?

  6. jafer
    Member
    Posted 8 years ago #

    Oh, and I deactivated the structured bloggin plugin and now there are only 36 errors in the validator instead of 99. Now I just have to see if there's anything else I can change in there that won't affect the radio blog and it's strange coding.

  7. whooami
    Member
    Posted 8 years ago #

    im talking about your link in the first post above :) click it :)

    its not a big deal :P

  8. jafer
    Member
    Posted 8 years ago #

    Oh, I didn't put the link on, I typed the URL on there and ended up putting a period at the end of the sentence. It obviously created the link itself from the post. No it shouldn't be a part of the link.

    And the script error I'm talking about showed up in the view source - which of course is not in any of the php files but the source code it shows me when I click on the error message icon.

  9. jafer
    Member
    Posted 8 years ago #

    So now that we've got all the validation issues discussed, which I have now changed and the only validation problems are with the YouTube code and the Radio Blog code, any ideas on what the error icon is for and how to fix it?

    I'd really like to have that off there.

  10. whooami
    Member
    Posted 8 years ago #

    Like I said, I dont see an error in ie6 or 7, so I cannot help you. I dont see 1.

  11. jafer
    Member
    Posted 8 years ago #

    Well perhaps there's someone else who knows what is causing this? I don't see an error there either, but something's going on to cause this and somebody must have a better clue than I do, since I have none. While I know html, I don't have any idea about php and what could be causing this to give a script error on the very first line in the source unless it's to do with something in the code and not the source page.

    Oh, something else interesting... when I clicked on the previous entries, it doesn't give me the script error icon - it only seems to be on the main page.

  12. jafer
    Member
    Posted 8 years ago #

    Something else I'm seeing in the validator is this:

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

    As far as I know, I'm not using Strict but transitional - that's also what the code in Line 1 says too, transitional.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags