Support » Plugin: iThemes Security (formerly Better WP Security) » PHP Fatal error: Call to undefined function wp_mail()

  • Today, for the first time since I started using Better WP Security, this error showed up 5 times in my /wp-admin/error_log :

    PHP Fatal error: Call to undefined function wp_mail() in /wp-content/plugins/better-wp-security/inc/filecheck.php on line 336

    I am using Better WP Security 3.5.5. The two things that have changed recently are 1) I updated to wordpress 3.6 yesterday and 2) I unchecked “File Change Detection / Display file change admin warning” today. I hope this information is helpful for debugging.

Viewing 12 replies - 1 through 12 (of 12 total)
  • I’ve the same problem.
    I’m using Better WP Security 3.5.5. and I’ve recently updated to wordpress 3.6.

    The same fatal error message appears just when trying to go in installed plugins section in admin area.

    Please help me!

    …same as olliver81…can’t access my plugins now…anybody out there having any luck with this so far? Gonna see if I can’t figure out wth is causing this -_-”….

    Same issue Please Help!!!

    I really don’t know why but my issue has been solved without modifying anything (and I have 15 websites so I cannot understand how it is possible). 🙂

    For the first time, I just got the “PHP Fatal error” message on my screen several times when I tried to view /wp-admin . (Before I was just getting the message in my error_log file). I visited my home page and then went back to /wp-admin ; after visiting my home page, I was able to view /wp-admin again.

    I think I will try deactivating this plugin until the “PHP Fatal error” issue is resolved.

    I just looked at filecheck.php line 336. It looks like this is part of the file change detection system. So I guess instead of deactivating the whole plugin, I will uncheck “Enable File Change Detection” until this issue is resolved (or maybe I will just uncheck “Email File Change Notifications”).

    Same thing here. Thanks to the tip about going into the site and then back into admin — I was a bit worried for a minute when all my clicks generated the error!

    Same with me. How to resolve this issue?

    I have regular timeouts on my website
    It will be down for a few minutes intermittently. Then return to normal

    While the site is not responding, came with error
    Fatal error: Call to undefined function wp_mail() in …./public_html/wp-content/plugins/better-wp-security/inc/filecheck.php on line 336

    The cpanel/errorlog says
    [NOTICE] [/home/suc19197/public_html/.htaccess:195] Unsupported ErrorDocument URL: default, must start with ‘/’ or ‘http’.

    The public_html/error_log
    WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = ‘nav_menu’ AND = ’50’ LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/TheCorporation/home.php’), get_footer, locate_template, load_template, require_once(‘/themes/TheCorporation-child/footer.php’), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, WP_Nav_Menu_Widget->widget, wp_get_nav_menu_object, get_term_by

    I am using Better WP Security and Bulletproof BPS Security
    This may also relate to Online Backup for WordPress failing to backup Filesystem but success with Database

    Any idea how to resolve the intermittent timeouts?

    I have this problem also. I had a look at the file, and simply commented out line 336 – which at least made the site come back to life.

    I know that this isn’t a resolution as it essentially disables the plugin from sending emails about modified files, but it is a quick and dirty workaround.

    I had this happen to me today on one of my installs. I noticed that after I reloaded the page in the browser the error “disappeared”. Very strange behavior…..

    Vincent Wasteels



    We’re having the same issue here, on many sites.
    Please let us know if you plan correcting it ? Otherwise I’ll have to use another plugin for security…


Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘PHP Fatal error: Call to undefined function wp_mail()’ is closed to new replies.