How to fix PHP Fatal Error: Allowed Memory Size Exhausted
We are facing following memory limit error while accessing our website “example.com”
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes) in /home/example/public_html/client/vendor/phpmailer/phpmailer/class.phpmailer.php on line 720
We have already increased the memory limit from 64MB to 128MB then to 256MB in PHP config file, but error is still exists.
Also changes are not reflected in PHP info page while accessing the link example.com/phpinfo.php.
Please run “cagefsctl –force-update” to make the changes to php.ini take affect.
Hope this post will help you to resolve the issue.