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

vB4.1.5 - xF1.04 Import - Failing with attachments

Discussion in 'Installation, Upgrade, and Import Support' started by South Fork, Nov 3, 2011.

  1. South Fork

    South Fork Active Member

    The attachment import stopped about 20% of the way through. The import status page goes blank and the server error log spits out the following...

    Error log: [Thu Nov 03 03:27:40 2011] [error] [client] PHP Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 24000 bytes) in /home/wff/public_html/forum/library/XenForo/Image/Gd.php on line 69

    PHP Fatal errors due to memory size have come up before and it was noted to try and extend the limit in config.php. Have tried that without effect.


  2. Floris

    Floris Guest

    So far so good then.
    Perhaps your PHP runs on the default 8 or 16 MB, perhaps it's even set to 32M, but I recommend trying 128.


    memory_limit is the one you're looking for.

    You could try setting it directly in xenforo's config.php below the <?php line (if i am right)

    ini_set('memory_limit', '128M'); // or try say, 512M
  3. South Fork

    South Fork Active Member

    Hi Floris,

    Tried that, and have tried placing a php.ini file in there as well. Still, no improvement.

    Doesn't seam to even be trying any longer. Suspecting it's file specific.
  4. robdog

    robdog Well-Known Member

    Those are the wrong values. That is just for uploading a file not the memory limit.

    php_value memory_limit 64M
  5. South Fork

    South Fork Active Member

    Adjust, retried, no effect.
  6. Mike

    Mike XenForo Developer Staff Member

    You need to do the ini_set in config.php as we set the limit to 128M. However, as you don't appear to be hitting 128M, you likely can't increase it.

    That said, 1.1 has this fixed as it won't try to create thumbnails for overly large images.
    Floris likes this.
  7. Floris

    Floris Guest

    Are you restarting Apache after updating php.ini ?
  8. duderuud

    duderuud Active Member

    Can you give us the output/url of a phpinfo.php?
  9. South Fork

    South Fork Active Member

    That's good, Mike. Not in a huge rush so I can wait until after the unofficial importer vB4 importer gets a 1.1 update, or you guys release an official one.

    Floris, yes.
  10. South Fork

    South Fork Active Member

    Still not positive where it was failing, but it did so at the end of the attachment import. Restarted the import and went right to the finish and it completed fine. Even if a few images or avatars were lost, it's acceptable to me and my needs.

    Overall the import finished quickly, even with over 650K posts. Rebuilding the search index took quite a few hours though.

    Too bad the importer doesn't carry over thread prefixes.

Share This Page