Bug #23237 Bug Fixed

Fatal Memory Error When Editing Member Profile

Version: 3.5.11 Reporter: phatmateo

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

The following error occurs when trying to edit a member profile as well as trying to use the login as member feature:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /MY_EE_DIR/ee/EllisLab/ExpressionEngine/Service/Model/Model.php on line 610

Using PHP 7.0.23 on Apache and my php.ini is set to 128M for the memory_limit. Setting it higher doesn’t fix the issue and only causes the bytes to increase in the error.

I also tried setting the allow_extensions to “n” and the same error occurred.

  • In system/ee/expressionengine/controller/Members/Profile/Profile.php around line 196 alter the model call so it has a limit of 100- it will look like:

    $heirs = ee('Model')->get('Member')
              ->fields('username', 'screen_name')
              ->filter('group_id', 'IN', array(1, $this->member->MemberGroup->getId()))
              ->filter('member_id', '!=', $this->member->getId())
              ->limit(100)
              ->all();
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases