SocialEngine Ning Import

A few weeks ago i created a small Java program which makes it possible to merge multiple Ning-Portals into one Social-Engine Community site by merging the backup files of all Ning-Portals into one (because Social-Engine can only import one Ning-Portal).

Well… today i tried to import a backup with about 15.000 members (including profile information and profile pictures) and got a “Memory Exceeded” error. Ok, until here no problem. Changing the “memory_limit” in php.ini file should fix the problem…

it doesn’t…

Well… very long story and a lot of terrifying emotions later i found out that there is not call to ini_set(‘memory_limit’, ’128M’), but in the “<SE_ROOT>/install/” directory is a .htaccess file with the following block:

<IfModule mod_php5.c>
php_value   post_max_size         100M
php_value   upload_max_filesize   100M
php_value   max_input_time        600
php_value   max_execution_time    600
php_value   memory_limit          128M
</IfModule>

Commenting out (or increase) the “php_value memory_limit XXX” row finally fixed the problem and i was able to import the huge amount of data.

At least, I really have no idea why the SE team decided to set those values for the Import-Tools (Admin-Only) but nowhere else for the public accessible pages.

About Manuel Freiholz

Software Developer from Germany(Augsburg)
This entry was posted in Social Engine and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>