Cant prune.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • version2
    Senior Member
    • Feb 2001
    • 903

    Cant prune.

    Im getting this error when I try to mass prune:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/version2/public_html/admin/db_mysql.php on line 154
    version2 aka mol

    Mystic Wicks Online Pagan Community Forums
    Mystic Wicks After Dark
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74171

    #2
    Try pruning in smaller amounts of posts or increasing the maximum execution time for PHP scripts.
    Translations provided by Google.

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

    Comment

    • Joshua Clinard
      Banned
      • Oct 2001
      • 552
      • 3.0.0 Gamma

      #3
      Your still using vB 2.2.1. This problem should be fixed in vB2.2.2.

      Comment

      • version2
        Senior Member
        • Feb 2001
        • 903

        #4
        *sigh*

        Downloading now.
        version2 aka mol

        Mystic Wicks Online Pagan Community Forums
        Mystic Wicks After Dark

        Comment

        • version2
          Senior Member
          • Feb 2001
          • 903

          #5
          Originally posted by Joshua Clinard
          Your still using vB 2.2.1. This problem should be fixed in vB2.2.2.
          Nope...that wasnt it.

          wluke: Man, I am going 2 days at a time and it is still screwing up. I got another error by the way. Here it is:


          Database error in vBulletin Control Panel 2.2.1:

          Invalid SQL: DELETE FROM attachment WHERE attachmentid IN (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) AND NOT attachmentid IN (00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000...




          And those 0's go on for a LOOOOONG time.
          version2 aka mol

          Mystic Wicks Online Pagan Community Forums
          Mystic Wicks After Dark

          Comment

          • John
            Senior Member
            • Apr 2000
            • 4042

            #6
            What happens after the 0's?

            Also, try changing line 1887 from:
            $omitattachmentids.=$omitattach['attachmentid'];

            to:
            $omitattachmentids.=$omitattach['attachmentid'].",";
            John Percival

            Artificial intelligence usually beats real stupidity ;)

            Comment

            • version2
              Senior Member
              • Feb 2001
              • 903

              #7
              Line 1887 of what page?

              After about 50 lines of zeros we get this:

              mysql error: MySQL server has gone away

              mysql error number: 2006

              Date: Tuesday 22nd of January 2002 02:13:40 PM
              Script: http://www.mysticwicks.com/admin/thread.php
              Referer: http://www.mysticwicks.com/admin/thread.php
              version2 aka mol

              Mystic Wicks Online Pagan Community Forums
              Mystic Wicks After Dark

              Comment

              • John
                Senior Member
                • Apr 2000
                • 4042

                #8
                Thy this:

                Change functions.php lines 1886 to 1891:

                PHP Code:
                    // make sure you don't remove attachments that are already in use!
                    
                $checkattachments=$DB_site->query("SELECT DISTINCT attachmentid FROM post WHERE attachmentid IN ($attachmentids"."0) AND threadid<>'$threadid'");
                    
                $omitattachmentids="";
                    while (
                $omitattach=$DB_site->fetch_array($checkattachments)) {
                            
                $omitattachmentids.=$omitattach['attachmentid'].",";
                        } 
                The code should look similar to that already.

                John
                John Percival

                Artificial intelligence usually beats real stupidity ;)

                Comment

                • version2
                  Senior Member
                  • Feb 2001
                  • 903

                  #9
                  Well, that fixed the pruning problem. I think that this little mishap has cost me ALL of my attachments that were on the board.
                  version2 aka mol

                  Mystic Wicks Online Pagan Community Forums
                  Mystic Wicks After Dark

                  Comment

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