IE throwing 'Invalid Argument' in webfont.js

  • Keith

    #6736

    Using a child theme, home page not loading correctly. Site is here:

    http://www.bio-community.org

    Same issue here:

    CALBIO2013: Success Redefined

    According to Developer Tools, Invalid Argument occurs at line 17, character 604

    Is this due to last Graphene update? (I’m just guessing.)

    Any assistance would be greatly appreciated. Thanks!

    Keith

    IndeComp

    #35401

    Hi Keith!

    Same issue here and i have resolved mine! (kinda of) 🙂

    Although the “

    IndeComp

    #35402

    Hi Keith!

    Same issue here and i have resolved mine! (kinda of) 🙂

    Although the “webfont.js'” is valid and i can see it on Googles site… if you Comment out the “wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) + ‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’;” line it stops the error.

    (Considering it was erroring in the first place, i havnt lost anything. and it appears to only be a doorway to Googles Web Fonts… not much missed on my little sites. 🙂 )

    How to: (Step by step as i dont know how familiar you are with WordPress)

    1. In the WordPress Dashboard go to: “Appearance” on the left

    2. Select “Editor”

    3. Click “theme-webfonts.php, about halfway down on the files panel on the right side of screen

    4. 25th line down is the “ajax.googleapis” line (CTRL + F – and type “ajax.” will take you straight there

    5. Add a “<!– ” without quotes at the start of the line, and ” –>” at the end of that line.

    And you’re done.

    Mod

    Kenneth John Odle

    #35403

    Keep in mind that by editing theme files, you will lose your changes at the next theme update.

    Ugh…yet another reason to detest IE.

    Which version of IE are you seeing this on? I haven’t seen it on any of my half-dozen or so sites using IE7 or above.

    IndeComp

    #35404

    Yes true, with any luck an update will fix it anyways 😉

    Not sure about Keith, but i had the same issue in IE8.

    cleevewebby

    #35405

    Hi Indecomp

    re:

    How to: (Step by step as i dont know how familiar you are with WordPress)

    1. In the WordPress Dashboard go to: “Appearance” on the left

    2. Select “Editor”

    3. Click “theme-webfonts.php, about halfway down on the files panel on the right side of screen

    4. 25th line down is the “ajax.googleapis” line (CTRL + F – and type “ajax.” will take you straight there

    5. Add a “<!– ” without quotes at the start of the line, and ” –>” at the end of that line.

    Careful with this

    in one browser the two lines are

    wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) +

    ‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’;

    obviously its easy to use your instructions to modify the second line to

    <!–‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’;–>

    and this seems to work

    However in another browser the + moves

    wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’)

    + ‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’;

    Which is the recommended solution ?

    Include the + or not?

    IndeComp

    #35406

    Thanks cleevewebby.

    Ahhhhhhhhh…… 🙂 i was not specific enough…

    The entire two lines…. (Which on my HUGE monitor is only one line) should be Commented out.

    So both lines have the “<!–” “–> on either side of it… ie below…

    wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’)

    + ‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’;

    Becomes….

    <!– wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’)

    + ‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’; –>

    As long as the “<!– is before the first line beginning with “wf.src = (‘https:’ == d) which is actually the line above the “Ajax linE” and the “Ajax line” ends with “–>”

    *Note* the quotation marks ” ” in my notes are only to define things better.

    In summary…

    Where i said “Comment out the AJAX line of code” you actually need to “comment out the line prior to the ajax line as well as the ajax line”

    Confused yet?

    And as for where the “+” sits on either line? Doesnt matter as both lines need to be commented out.

    I hope this helps 🙂

    cleevewebby

    #35407

    It does 😉

    I added your arrows in a line before and a line after to save confusion

    <!–

    wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) + ‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’;

    –>

    Why isnt this under bug report?!

    I guess it will be fixed with the next update

    Thanks

    cleevewebby

    #35408

    Just an update

    The arrows and hyphens should be on the same line as the code

    <!-- wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; -->

    otherwise they create their own error

    Mod

    Kenneth John Odle

    #35409

    The <!-- and --> are html comment codes. Technically speaking, they can occur anywhere, either within a line or on their own line. If they are generating an error, it is either an issue with the browser or something else, but they are valid either way.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.