How to catch all PHP errors with custom error handler?

Using a tool to monitor itself is always a problematic idea, if wordpress has errors how do you know that those errors do not impact your integration code in a way which prevents them from being reported upstream? Your best option is probably to setup error reporting levels in php and if applicable in wordpress, … Read more

Child Theme Fatal Error [closed]

Your child theme’s functions.php file should be an empty file to which you can add code specific to your child theme. It appears you have copied the functions.php file from the parent theme instead. See this note about functions.php in Child Themes: Unlike style.css, the functions.php of a child theme does not override its counterpart … Read more

Preg_Match(): compilation failed unknown property name

Xan is a georgian letter as I can find in Google, but it’s not a valid Unicode Script for RegEx, you can find a list of the Unicode Scripts here: http://www.regular-expressions.info/unicode.html Maybe try using another one than Xan, maybe Georgian: preg_match( ‘/[\p{Georgian}]/u’, $content, $results ); Let me know how that goes.

Problem in using wpdb

This error: Fatal error: Call to a member function insert() on a non-object Means that $wpdb isn’t instantiated so you are running your code too early or out of WordPress context– for example, in an exterior PHP file accessed directly, which is what I suspect (Poorly conceived AJAX request perhaps?). As mentioned, the code has … Read more

WordPress suddenly creating theme errors

That’s a PHP warning, not technically an error, and isn’t real critical. It’s due to your webhost updating the version of PHP; and the theme StandardTheme_272 should initialize an object before setting a property. See if there is a theme update. If not, https://stackoverflow.com/questions/14806959/how-to-fix-creating-default-object-from-empty-value-warning-in-php for instructions on how to fix the theme. You can temporarily … Read more