I was going crazy with this.
I got the next message:
Allowed memory size of 262144 bytes exhausted (tried to allocate 24576 bytes)
TODO LIST
Check phpinfo(), got the right php.ini route and edit it.
Change memory_limit to
memory_limit = 128M
Make sure the value memory_limit changes con phpinfo() with the result:
memory_limit 128MB 128MB
Check .htaccess and added (not needed)
php_value memory_limit 128M
And also to change it via php like so (before error line):
ini_set('memory_limit','128M');
It says everywhere that memory is set to 128M, but still get that error?
The error is in Swift library (library for sending emails), in abstractSmtpTransport.php, so it's not my code int's suposed to work.
Any ideas???
Edit: Yes, the previous was done restarting apache.
EDIT 2:
@patrick, added that but nothing was echoed
Tryed with lower value, 28M int every file, restarted apache, same error (phpinfo showed new value)
tried with -1, restarting, and same error.
EDIT 3: isn't it weird that allowed memory is bigger than allocated memory? (despite the fact that allowed memory size is way below real allowed memory asigned)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…