• I’m attempting to migrate a very large SMF installation.

    My php.ini memory_limit is set to 512M. I’ve also added an ini_set at the top of buddypress-smf-import.php:

    ini_set(‘memory_limit’,’512M’);

    phpinfo() reports a memory limit of 512M.

    And yet, every time I attempt to execute the plugin, the plugin reports my memory limit as 256M, and I get this error:

    Starting conversion

    memory limit: 256M / time limit: 0
    Update bbpress config file
    Deleting current forum data
    Getting existing WordPress users
    Connecting to the SMF database host
    Selecting the SMF database
    Importing forums…
    Importing users…
    Importing user metadata…
    Get needed SMF posts data

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /vhost/bonesection.com/www/html/wp-content/plugins/buddypress-smf-import/include/buddypress-smf-functions.php on line 560

    Very irritating. How can this be fixed?

    http://ww.wp.xz.cn/extend/plugins/buddypress-smf-import/

Viewing 1 replies (of 1 total)
  • Thread Starter rlbyrd

    (@rlbyrd)

    I discovered that the 256M limit is a WordPress core limitation, not a plugin limitation, and it can be (temporarily) changed by editing wp-includes/default-constants.php. I had to change it to 2048M (!!), but that did get me through the migration.

    Other migration plugins can be set to do the posting in chunks to conserve memory usage; I’d suggest this be added to future releases of this plugin.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: BuddyPress SMF Import] Allowed memory size error’ is closed to new replies.