vBulletin 4 upgrade failed due to undefined function gzcompress()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parafieldtower
    Senior Member
    • Oct 2005
    • 209

    [Suite] vBulletin 4 upgrade failed due to undefined function gzcompress()

    During the upgrade process to the latest vBulletin 4 at http://sitename/vbulletin/install/fi...ade.php?step=7, I saw the following:
    Code:
    Step 7) Merge template changes
    Fatal error: Call to undefined function gzcompress() in 
    
    /usr/local/apache2/htdocs/vbulletin/includes/class_diff.php on line 170
    The section of the file causing this problem is this:
    Code:
            /**
            * Compresses a row of the LCS table in order to reduce memory usage of the table.
            *
            * @param        array   Array of entries in a row of the LCS table
            *
            * @return       string  A pipe delimited version of the row
            */
            function compress_row($row)
            {
                    return gzcompress(implode('|', $row), 9);
            }
    What I don't understand is how this happens, and what I should do to resolve this?

    Also, during the previous step (ie Step 6), it asks for a Username for the CMS. I tried to enter the Admin user name for vBulletin and press the button next to it, rather than the button "Next" for the upgrade script. It gave me some error (can't remember what they're now). Just tried to change the browser's URL to step=6 and that section asking for the Username doesn't show up again.
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    That is a default PHP module, it should be available in your php installation.


    You really can't skp steps in the upgrader/installer, it will cause problems.

    Comment

    • parafieldtower
      Senior Member
      • Oct 2005
      • 209

      #3
      I'm not trying to skip a step. Basically I encountered an error with the upgrade script and am unable to proceed. It's spitting out the following error:
      Code:
      Step 7) Merge template changes
      Fatal error: Call to undefined function gzcompress() in 
      
      /usr/local/apache2/htdocs/vbulletin/includes/class_diff.php on line 170
      Please let me know how I can fix this. I don't understand why it's saying the function isn't available.

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        You should try contacting your webhost gzcompress is a default php function whicch should be available.

        Comment

        • parafieldtower
          Senior Member
          • Oct 2005
          • 209

          #5
          It's a dedicated box and I installed the PHP. Any idea what I need to do to install this function? I compiled it with the following:
          ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=mysqlnd --with-libdir=lib64

          Comment

          • Zachery
            Former vBulletin Support
            • Jul 2002
            • 59097

            #6
            Make sure you have zlib support, I believe.

            Comment

            • parafieldtower
              Senior Member
              • Oct 2005
              • 209

              #7
              Do I have to do the following again? Or can I add zlib without doing the whole shebang?
              ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=mysqlnd --with-libdir=lib64 --with-zlib==[zlib install directory to be found out]
              make
              make install

              Comment

              • Zachery
                Former vBulletin Support
                • Jul 2002
                • 59097

                #8
                I think that would be easiest, unless you can compile a lib for it and run it as a extension.

                Comment

                • rootnik
                  Senior Member
                  • Nov 2001
                  • 110

                  #9
                  This is the first result for searching google for this problem. I just wanted to inform Zachery that zlib is not enabled by default, unless you are compiling for windows.

                  Comment

                  Related Topics

                  Collapse

                  Working...