Announcement

Collapse
No announcement yet.

document.forms.dstform

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • document.forms.dstform

    I just recently upgraded to vb3.0.1 from 2.3.0 just about 4-5 days ago and so far everything is going smoothly though one member said he's getting this error:

    A Runtime Error has occurred.
    Do you wish to Debug?

    Line 3531
    Error: 'document.forms.dstform' is null or not an object


    Any ideas what would cause this?


    -Michael
    Debt-Made-Easy.com: Get out and stay out of debt.

  • #2
    Have him clear his temporary internet files and do a hard refresh ctrl+f5

    Otherwise, have you modifed any of the templates or the language?

    Comment


    • #3
      Ok I'll have him do that. As far as languages and templates I have not modified the lang's but I have edited a some templates.


      -Michael
      Debt-Made-Easy.com: Get out and stay out of debt.

      Comment


      • #4
        Ok I've had the member clear his cookies and temp files still no go, in fact another member has also stated they too are having the same problem. The second member said he as debugged the site and the debugger stops on the submit statement:

        if (Math.abs(tzOffset + utcOffset) == 1)
        { // Dst offset is 1 so its changed
        document.forms.dstform.submit();
        }


        I've done a search for document.forms.dstform.submit and the only place I find that is in the footer below everything else. It's one of the last things in the footer before the html code comes to an end. (www.rcnitrotalk.com/forum) Any suggestions as to how to fix this, and what does this javascript code do?


        -Michael
        Debt-Made-Easy.com: Get out and stay out of debt.

        Comment


        • #5
          bump.
          Debt-Made-Easy.com: Get out and stay out of debt.

          Comment


          • #6
            Since you do mentioning modifying templates double check your footer template to make sure that the following code is there.
            Code:
            <if condition="$show['dst_correction']">
            <!-- auto DST correction code -->
            <form action="profile.php" method="post" name="dstform">
             <input type="hidden" name="s" value="$session[sessionhash]" />
             <input type="hidden" name="do" value="dst" />
            </form>
            <script type="text/javascript">
            <!--
             var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
             var utcOffset = new Date().getTimezoneOffset() / 60;
             if (Math.abs(tzOffset + utcOffset) == 1)
             { // Dst offset is 1 so its changed
              document.forms.dstform.submit();
             }
            //-->
            </script>
            <!-- / auto DST correction code -->
            </if>

            Comment


            • #7
              I bet that's the problem as I only had this in my footer:

              Code:
               
              <script type="text/javascript">
              <!--
              var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
              var utcOffset = new Date().getTimezoneOffset() / 60;
              if (Math.abs(tzOffset + utcOffset) == 1)
              { // Dst offset is 1 so its changed
                document.forms.dstform.submit();
              }
              //-->
              </script>
              <!-- / auto DST correction code -->
              </if>
              I've added everything you've listed above - we'll see if that helps any.

              Thanks,

              -Michael
              Debt-Made-Easy.com: Get out and stay out of debt.

              Comment


              • #8
                Hey.

                I am using version 3.7.0 from a clean install and I am getting this same error.

                I haven't done any template mods and I have all that correct data in the footer.

                What else could be causing this?!?!

                It doesnt seem to show up every time the page loads but its close to 70% of the time.

                Comment


                • #9
                  Please start your own thread in the correct forum.
                  Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                  Change CKEditor Colors to Match Style (for 4.1.4 and above)

                  Steve Machol Photography


                  Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...
                  X