Announcement

Collapse
No announcement yet.

Runtime Error

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

  • Runtime Error

    Some of my members are getting this message:

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

    Line: 58
    Error: Expected '}'

    How do I fix this?


  • #2
    I don't get this error. It's either caused by their browsers or browser settings.
    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


    • #3
      Originally posted by Steve Machol
      I don't get this error. It's either caused by their browsers or browser settings.
      So it's not my forum or site at all?

      I don't get the errors either

      Comment


      • #4
        Did you add any script code to your header, headinclude or phpinclude templates?
        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
          Originally posted by Steve Machol
          Did you add any script code to your header, headinclude or phpinclude templates?
          If this is a script:

          if (strpos($_SERVER['PHP_SELF'], "index.php") != false)

          {

          function cutit($s, $threshold)

          {

          if (strlen($s) > $threshhold)

          {

          return substr($s, 0, $threshold) . "...";

          }

          else return $s;

          }



          $result = $DB_site->query("SELECT forum.forumid AS forumid, thread.threadid AS threadid, thread.title AS title

          FROM forum

          LEFT JOIN thread ON (thread.forumid = forum.forumid AND thread.lastpost = forum.lastpost)

          WHERE displayorder <> 0 AND active = 1 AND thread.title <> \"\"");



          $shash = $session['sessionhash'];

          define("LASTPOST_ARRAYBIT", "if (document.all['lasttitle[forumid]'])

          lasttitle[forumid].innerHTML = \"<a href=\\\"showthread.php?s=$shash&threadid=[threadid]\\\">[title]</a><br>\";");

          $findbits = array("[forumid]", "[threadid]", "[title]");



          $jslines = array();

          while ($bits = $DB_site->fetch_array($result)) // single equals sign intended

          {

          $lastthreadid = $bits['threadid'];

          $lasttitle = addslashes(cutit($bits['title'], 20));

          $lastforumid = $bits['forumid'];



          $replacebits = array($lastforumid, $lastthreadid, $lasttitle);

          array_push($jslines, str_replace($findbits, $replacebits, LASTPOST_ARRAYBIT));

          }

          $jslines = implode("\n", $jslines);



          Then yes I did, this was added to phpinclude for the latest thread title on forumhome.

          Comment


          • #6
            Take out the added script and see if these users still get the error.
            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


            • #7
              Originally posted by Steve Machol
              Take out the added script and see if these users still get the error.
              Just a question before I take this out- is there any way besides that hack(filburt1's) to get latest thread title on the main index? (how did vB.com/forum do it?)

              Comment


              • #8
                I don't know. It's a standard feature in vB3 (which is running here).
                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


                • #9
                  Originally posted by Steve Machol
                  I don't know. It's a standard feature in vB3 (which is running here).
                  I guess I'll have to look then.

                  Comment


                  • #10
                    I un-installed that hack and they still get the error:


                    Comment


                    • #11
                      whats the exact url so I can check it?
                      Scott MacVicar

                      My Blog | Twitter

                      Comment


                      • #13
                        Originally posted by Stadler
                        I'm trying to fix it Nobody informed me until today they are getting them until today, but they said they've been getting them for weeks.

                        http://www.teenadvicecenter.com/foru...=&pagenumber=2 One url.

                        Only some peolpe are getting them... as I'm not, and some of my other users aren't.

                        Comment


                        • #14
                          The exact URL in your picture is to showthread, not your forum home page.
                          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


                          • #15
                            looks like you had my signature editor hack and never fully removed it.

                            delete
                            Code:
                            function openeditsigwindow(x,y,sessionhash,userid) {
                            from your header template.
                            Scott MacVicar

                            My Blog | Twitter

                            Comment

                            Related Topics

                            Collapse

                            Working...
                            X