After fixing the allow_url_fopen issue with the Magento data migration tool we came across another error message. An allowed memory size exhausted error message. This error message read: PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2359296 bytes) in /home/(user)/public_html/(domain)/vendor/magento/module-eav/Model/Entity/AbstractEntity.php on line 1681. Check for more info on how to handle out of memory errors.

To check the memory limit of the server I ran the following command: php -r “echo ini_get(‘memory_limit’).PHP_EOL;” which came back with a memory limit of 32M.

Which meant we needed to upgrade the server to have a higher memory size. To upgrade your memory size you’ll need to go to MultiPHP INI Editor. Then select the PHP version 7.2 and then change the setting of the memory_limit from 32M to 128M. This sets the maximum amount of memory in bytes that a script is allowed to allocate.

Elyssa McGregor

Hi! I'm Elyssa McGregor. I love helping people succeed online and promoting businesses with our wide range of promotional products. I have a love for search engine optimization (SEO) and getting companies out there on the world wide web. How can I help you?

View all posts

Add comment

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