WordPress.org

Ready to get started?Download WordPress

Forums

What is this Error Message? (3 posts)

  1. jafer
    Member
    Posted 8 years ago #

    When surfing my site in Firefox, I got the following error message from the console:

    Warning: function showHide does not always return a value
    Source File: http://www.idiotonastick.com/talk/
    Line: 40, Column: 210
    Source Code:
    .getElementById(extTextDivID).style.display = "none";document.getElementById(extLinkDivID).style.display = "block";}} else {location.href = entryLink;return true;}} else {location.href = entryLink;return true;}}

    Does anybody know what this means and what I should do to fix it?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    I'm not seeing errors - could be plugin related ?

  3. jafer
    Member
    Posted 8 years ago #

    Yes, I'm sure it's related to the showHide plugin, but I have no idea what the error message means or how to correct it.

    Here's what it shows me in the firefox javascript console with the error:

    <script type="text/javascript">function showHide(entryID, entryLink, htmlObj, type) {if (type == "comments") {extTextDivID = ('comText' + (entryID));extLinkDivID = ('comLink' + (entryID));} else {extTextDivID = ('extText' + (entryID));extLinkDivID = ('extLink' + (entryID));}if( document.getElementById ) {if( document.getElementById(extTextDivID).style.display ) {if( entryLink != 0 ) {document.getElementById(extTextDivID).style.display = "block";document.getElementById(extLinkDivID).style.display = "none";htmlObj.blur();} else {document.getElementById(extTextDivID).style.display = "none";document.getElementById(extLinkDivID).style.display = "block";}} else {location.href = entryLink;return true;}} else {location.href = entryLink;return true;}}</script>

    It says function showHide does not always return a value, Line 40.

    I have no idea what that means.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags