Announcement

Collapse
No announcement yet.

Odd problem, theard view count stopped working overnight

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

  • Odd problem, theard view count stopped working overnight

    Yesterday it was just working fine, it always has been. And now all of a sudden the page count numbers stay on zero, no code modifications made to forumdisplay what so ever.
    Last edited by Castel; Sun 12th Aug '01, 11:55am.

  • #2
    just bumping his up

    Comment


    • #3
      showthread.php, replace:

      Code:
      if ($noshutdownfunc) {
        $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
      } else {
        $shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
      }
      with:

      Code:
        $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");

      Comment


      • #4
        Excellent service as usual Thanks Ed

        Comment


        • #5
          I had this problem also, fix worked... Thanx

          BTW: what caused this failure? Will this mod have to be made manually if I upgrade from 2.2.4 to 2.2.6 ?
          community:
          http://www.suntanning.com

          Hosting and Design
          http://www.BigDesign.net

          Comment


          • #6
            You dont have the register_shutdown_function in php, at the top of /admin/functions.php change

            PHP Code:
            $noshutdownfunc 0
            to
            PHP Code:
            $noshutdownfunc 1
            Scott MacVicar

            My Blog | Twitter

            Comment


            • #7
              had the same problem. You do both of these changes then???

              TIA

              Comment


              • #8
                Either or. In effect, the both do the same thing.

                Comment


                • #9
                  i didn't want the extra server load since my site already has too much!

                  I tried the second one and it worked.

                  Thanks

                  Comment

                  Loading...
                  Working...
                  X