How to disable automated E-Mail on PHP error/exception?

Since WordPress 5.2 there is an automated E-Mail on PHP exceptions. In some smaller projects I just upload the files for new extensions while developing – whenever an error occurs then, the site admin is getting an email. This is usually one of my freelance customers and they unecessarily panic then. Therefore I would like … Read more

How do I “fix” a wp-blog-header.php error message?

I recently updated a site and received the following error message: Fatal error: Call to undefined function wp() in /home/atlmp/public_html/wp-blog-header.php on line 14 I checked the file and there doesn’t seem to be any issues, so I can’t figure out what’s wrong? <?php /** * Loads the WordPress environment and template. * * @package WordPress … Read more

Fatal error: Call to undefined function wp_mail()

I am using a plugin wordpress-simple-paypal-shopping-cart for my cart requirement. I am trying to send an email through this plugin when some payment is made by using IPN. My code : $invoiceProducts = $_SESSION[‘simpleCart’]; if(isset($invoiceProducts) && !empty($invoiceProducts)){ $html = renderHTML($invoiceProducts); generatePDF($html); unset($invoiceProducts); } function renderHTML($param){ $IPN = $_POST; $name = $IPN[‘first_name’]; $donationAmount = $IPN[‘payment_gross’]; $contributorsEmail … Read more

Call to undefined function get_current_screen() on my localhost

I’m using WordPress 3.9.1 and I get the Fatal error: Call to undefined function get_current_screen() if I put the following in my funcitons.php or in any file of my theme: $screen = get_current_screen(); echo $screen; Initially when I got the error, I was working on a theme that I’m creating. However, I tried this with … Read more

WordPress database error with latest WP – “WP_termmeta doesn’t exist”

I’ve just upgraded to 4.7.2, and now I see this message: WordPress database error: [Table ‘myusername.wp_termmeta’ doesn’t exist] SELECT term_id, meta_key, meta_value FROM wp_termmeta WHERE term_id IN (2,3,4,5,6,7,8,9,10,11,12,13,1,14,15) ORDER BY meta_id ASC What’s the correct solution to this issue? I upgraded the database while upgrading. Lots of googling suggests strange things like upgrading to some … Read more

Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067

Hey I get this error messages on my localhost setup, but only with the Genesis Framework enabled; WordPress Twenty Eleven works fine. This happens when I want to create a new post. If I refresh the page the error will repeat, but the post itself gets created and everything seems to go fine. Does anyone … Read more