1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Upgrade has Fatal Error

Discussion in 'Troubleshooting and Problems' started by Rudy, Feb 12, 2016.

  1. Rudy

    Rudy Well-Known Member

    I'm in the middle of a big board upgrade. Running the upgrade from the command line.

    PHP runs as apache module. I have php_memory_limit set to 256M, checked it with phpinfo and the value shows under the Local column, yet I keep getting the error message:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1323 bytes) in /usr/www/............../library/Zend/Db/Statement/Mysqli.php on line 276

    The next run-through offered this helpful bit:

    zend_mm_heap corrupted

    It's bombing now on the admin templates, so I can't even get into the board.

    What am I missing?

    Here's the full upgrade output:

    Code:
    xxxx > php '/usr/www/.../library/XenForo/Install/run-upgrade.php'
    Current version: 1040270
    Upgrade target: 1050570 (1.5.5)
    
    Are you sure you want to upgrade? [y/n] y
    
    Running upgrade to 1.4.3, step 1... done.
    
    Running upgrade to 1.4.3, step 2... done.
    
    Running upgrade to 1.4.5, step 1... done.
    
    Running upgrade to 1.4.5, step 2... done.
    
    Running upgrade to 1.4.6, step 1... done.
    
    Running upgrade to 1.4.6, step 2... done.
    
    Running upgrade to 1.4.7, step 1... done.
    
    Running upgrade to 1.5.0 Alpha, step 1... done.
    
    Running upgrade to 1.5.0 Alpha, step 2... done.
    
    Running upgrade to 1.5.0 Alpha, step 3... done.
    
    Running upgrade to 1.5.0 Alpha, step 4... done.
    
    Running upgrade to 1.5.0 Alpha, step 5... done.
    
    Running upgrade to 1.5.0 Alpha, step 6... done.
    
    Running upgrade to 1.5.0 Alpha, step 7... done.
    
    Running upgrade to 1.5.0 Alpha, step 8... done.
    
    Running upgrade to 1.5.0 Alpha, step 9... done.
    
    Running upgrade to 1.5.0 Alpha, step 10... done.
    
    Running upgrade to 1.5.0 Alpha, step 11... done.
    
    Running upgrade to 1.5.0 Beta 2, step 1... done.
    
    Running upgrade to 1.5.0 Beta 2, step 2... done.
    
    Running upgrade to 1.5.1, step 1... done.
    
    Running upgrade to 1.5.2, step 1... done.
    Rebuilding / importing data...
    Rebuilding... Templates  .  .  .
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 313639 bytes) in /usr/www/.../library/Zend/Db/Statement/Mysqli.php on line 208
    
    xxxx > php '/usr/www/.../library/XenForo/Install/run-upgrade.php'
    Current version: 1050570
    Upgrade target: 1050570 (1.5.5)
    
    Are you sure you want to upgrade? [y/n] y
    Rebuilding / importing data...
    Importing... Admin Templates  .  .
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1323 bytes) in /usr/www/.../library/Zend/Db/Statement/Mysqli.php on line 276
    zend_mm_heap corrupted
    
     
  2. Rudy

    Rudy Well-Known Member

    Oh...wait...see where I messed up? Running CLI PHP (as CGI) does not use the Apache module PHP config values. Going to retry on the browser...
     
    Last edited: Feb 12, 2016
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, I was just about to say that the error indicates there is a memory limit of 64M set.
     
    Rudy likes this.
  4. Rudy

    Rudy Well-Known Member

    So, it finished. The Apache php_memory_limit of 256M let everything run smoothly.

    That's what I get for having no caffeine first... :D
     
    CyclingTribe likes this.

Share This Page