WordPress, Fatal error: Allowed memory size of 33554432 bytes exhausted
![]()
During a routine update to a WordPress site we received the following error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/website/public_html/wp-includes/functions.php on line 1342 Scary stuff, but no need to panic. Chances are your WordPress install is quite well used with lots pages, posts, and plugins. First off, don’t start disabling plugins and hacking code. Follow these simple steps and you’ll be updated in no time.
My WordPress Blog is Sending Mail With My Webhosts Address
Here’s our solution. Be sure your working with the most up to date file. Local copies can become outdated with online updates. Edit the following file: wordpress-root-directory/wp-includes/class-phpmailer.php
On line 75 (valid on WordPress 2.7.1 — 2.8.7) and edit, “root@localhost.com” to the address you’de like to appear in administrative emails, ie. user@yourdomain.com. You’ll also want to change your FromName, on line 81, and your email address on line 88. Simply fill the empty quotes.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
/** * Sets the From email address for the message. * @var string */ var $From = 'root@localhost'; /** * Sets the From name of the message. * @var string */ var $FromName = 'Root User'; /** * Sets the Sender email (Return-Path) of the message. If not empty, * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. * @var string */ var $Sender = '';
And that’s it. Your sever will now send administrative Emails from your chosen name, and address. Let us know if this was helpful.
-
The Previous Posting
How I Made Our Background Image.… -
The Next Posting
WordPress, Fatal error: Allowed memory size of 33554432 bytes exhausted