Announcement

Collapse
No announcement yet.

Users getting script error in WYSIWYG Interface

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

  • Users getting script error in WYSIWYG Interface

    I just updated to Release Canidate 4 from Gamma and some (not all and not myself) are getting script errors anytime they attempt to choose a clickable Smiley or use the Bold, Italic etc... functions.

    Any help as to what remedies I might have for them? I have also attached a .jpg of the error message that one of my users posted for me.
    Attached Files

  • #2
    They need to perform a hard refresh on the page.... CTRL-F5 does this. They also cannot be identifying their browser as IE6 in either Opera or Mozilla.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      Thank you for the quick feedback, unfortunately that did not resolve the issue with my forum members.

      I just figured out though by manually looking at all of their settings that the people that are having problems are the ones using the Standard Editor Toolbar. Not a single user with the Enhanced toolbar settings has reported a problem.

      Comment


      • #4
        The solution is almost certainly what Wayne posted abouve - they are getting a cached version of the js file. Depending on which browsers they are using they may need to empty their browser cache.
        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


        • #5
          They also need to be identifying their browser properly. If they try to masquerade as Internet Explorer, they will get errors because the javascript relies heavily on a truthful representation of browser.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment


          • #6
            It would also help if you build a new style based on the latest templates rather then use the ones from the previous versions.

            Comment


            • #7
              Thanks for the replies. I'm not positive of the computer literacy of the forum members that are having the problems, but they do claim the CTRL+F5 is having no results. I haven't heard back from them yet on whether or not they also have other browsers running though.

              What would be the significance of the script errors only occurring on the standard toolbar and not the enhanced version? Just for curiosities sake.

              It would also help if you build a new style based on the latest templates rather then use the ones from the previous versions.
              I believe I did do that, I clicked "Add new Style" and did not base it off any parent style. Would that have based it off of the latest templates? I assumed it would, but didn't know for sure.

              Comment


              • #8
                That was done correctly then.

                Goto 'find updated templates' and see if it says any there. If not: then you should be fine.

                Comment


                • #9
                  Originally posted by Steve Machol
                  The solution is almost certainly what Wayne posted abouve - they are getting a cached version of the js file. Depending on which browsers they are using they may need to empty their browser cache.
                  Originally posted by Wayne Luke
                  They also need to be identifying their browser properly. If they try to masquerade as Internet Explorer, they will get errors because the javascript relies heavily on a truthful representation of browser.
                  After another day of asking questions and such and experimenting myself, I'm certain this is not the case.

                  Every member of the forum using the Standard editor can not post a smiley or use any of the WYSIWYG functions without receiving the script error I have attached to this post.

                  I tried it myself, I switched to the Standard editor, used CTRL+F5, cleaned out my temporary internet files and cookies and went back and I too received the script error. I have no other browsers other than IE installed.

                  Again, the problem goes away as soon as any of the users switch to the enhanced editor.

                  Anymore ideas?
                  Attached Files

                  Comment


                  • #10
                    What is the URL to your forums? Are you runing any modifed templates or files?

                    Try this. Run 'Find Updated Templates' and revert all the templates it finds. Then run 'Suspect File Version' in Diagnostics and report back the results.
                    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


                    • #11
                      Originally posted by Steve Machol
                      What is the URL to your forums? Are you runing any modifed templates or files?

                      Try this. Run 'Find Updated Templates' and revert all the templates it finds. Then run 'Suspect File Version' in Diagnostics and report back the results.
                      Here is the link. http://dynamic6.gamespy.com/~ncaautopia/forums/

                      I can give you a temporary ID and password if you would like to check it out more in depth as I have it set to moderate all new members.

                      I did modify the; header, postbit and SHOWTHREAD templates and I did that before making those modified styles live so I haven't troubleshooted to see if the default template still works. I will check that in a minute and report back.

                      Find Updated Templates told me that "All templates are up to date"

                      I have attached the screenshot of the diagnostic report. Nothing on there says Release Canidate 4 so maybe I did mess something up there, but I'll wait for you to tell me anything as far as that goes I've got no idea.

                      Thanks for helping out.

                      Comment


                      • #12
                        Why is your new post form named "theform"? if all the templates are up to date. The default form name for the post entry form is called "vbform" in the default templates.

                        In fact the text "theform" doesn't occur anywhere in the default templates.

                        You need to revert all your newpost templates including showthread.
                        Last edited by Wayne Luke; Tue 9 Mar '04, 7:03pm.
                        Translations provided by Google.

                        Wayne Luke
                        The Rabid Badger - a vBulletin Cloud demonstration site.
                        vBulletin 5 API

                        Comment


                        • #13
                          Ok, I just tried it with the default template (unmodified) and it worked just fine so it is obviously something I've messed up in modifying my styles.

                          Here is the modification I made to the postbit template. I removed post counts and added a custom field #5.

                          Code:
                          
                          <!-- user info -->
                          
                          <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                          
                          <tr>
                          
                          <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
                          
                          <td nowrap="nowrap">
                          
                          
                          
                          <div id="postmenu_$post[postid]">
                          
                          <if condition="$show['profile']">
                          
                          <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                          
                          $post[onlinestatus]
                          
                          <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                          
                          <else />
                          
                          $post[musername]
                          
                          </if>
                          
                          </div>
                          
                          
                          
                          <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                          
                          <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                          
                          
                          
                          </td>
                          
                          <td width="100%">&nbsp;</td>
                          
                          <td valign="top" nowrap="nowrap">
                          
                          
                          
                          <div class="smallfont">
                          
                          <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                          
                          <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                          
                          <if condition="$post['field5']"><div>Favorite Team: $post[field5]</div></if>
                          
                          <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                          
                          <div>
                          
                          <if condition="$show['reputation']">$post[reputationdisplay]</if>
                          
                          </div>
                          
                          <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
                          
                          </div>
                          
                          
                          
                          </td>
                          
                          </tr>
                          
                          </table>
                          
                          <!-- / user info -->

                          I also added the modification in the "how do I" forum that makes signature only appear once per page.

                          I added the following directly above the Quick Reply function to allow quick navigation at the bottom of threads.

                          Code:
                          
                          <!-- / controls below postbits -->
                          
                          <br />
                          
                          <!-- Manual NavBar -->
                          
                          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                          
                          <tr>
                          
                          <td class="alt1" width="100%">
                          
                          <if condition="is_array($navbits)">
                          
                          <table cellpadding="0" cellspacing="0" border="0">
                          
                          <tr valign="bottom">
                          
                          <td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                          
                          <td>&nbsp;</td>
                          
                          <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                          
                          </tr>
                          
                          <tr>
                          
                          <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
                          
                          </tr>
                          
                          </table> 
                          
                          <else />
                          
                          <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                          
                          </if>
                          
                          </td> 
                          
                          </table>
                          
                          <!-- / Manual NavBar -->
                          
                          <div class="smallfont" align="center">
                          
                          <strong>&laquo;</strong>
                          
                          <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest">$vbphrase[prev_thread]</a>
                          
                          |
                          
                          <a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest">$vbphrase[next_thread]</a>
                          
                          <strong>&raquo;</strong>
                          
                          </div>
                          
                          <br />
                          
                          $quickreply

                          Did I make any obvious mistakes in either of those?

                          Comment


                          • #14
                            Originally posted by Wayne Luke
                            Why is your new post form named "theform"? if all the templates are up to date. The default form name for the post entry form is called "vbform" in the default templates.

                            In fact the text "theform" doesn't occur anywhere in the default templates.

                            You need to revert all your newpost templates including showthread.
                            "theform" isn't something I would have knowingly added though because I have know idea what that means or what it is for. Is there any chance I messed something up in the upgarde to Release Canidate 4 and that is something from an older version?

                            I honestly have no idea what that part is for so sorry if this is a strange question.

                            Comment


                            • #15
                              It is what is causing your users to get javascript errors. Each element accessed by javascript needs a valid name.

                              You need to revert all your templates and not apply any hacks or modifications until you can verify that this works for all users.
                              Translations provided by Google.

                              Wayne Luke
                              The Rabid Badger - a vBulletin Cloud demonstration site.
                              vBulletin 5 API

                              Comment

                              Loading...
                              Working...
                              X