You can use the wp_php_error_message
filter to customise this message:
add_filter(
'wp_php_error_message',
function( $message, $error ) {
return 'My custom message.';
},
10,
2
);
I haven’t tested to be sure, but I would assume that if the critical error that causes this message happens to be in the code of same theme or plugin that this filter is used in, or a theme or plugin loaded before it, then this filter would likely not apply.
If you want to change this message independently of your theme and plugins, this might be a good use case for a Must Use Plugin.
Related Posts:
- How to make my plugin code die gracefully
- Fatal error in wordpress htdocs
- WP_Fatal_Error_Handler OR WP_Error OR try/catch
- WordPress displays 500 error on PHP errors
- “CRITICAL Object of class WP_Error could not be converted to string” using templates with twig
- Fatal error: Call to undefined function wp() in ../wp-blog-header.php?
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Call to undefined function nocache_headers() [closed]
- How do I “fix” a wp-blog-header.php error message?
- How to disable automated E-Mail on PHP error/exception?
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- current_user_can on WordPress 3.1.1
- WordPress White Page with Certain Database
- Memory issues – Fatal error: out of memory – plugins?
- Object of class WP_Error could not be converted to string
- Does wordpress have an error log?
- Recommend a guide to catching plugin errors, please?
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- PHP Fatal error: Call to undefined function WP_Filesystem() [closed]
- Why is_wp_error() is not returning false even there’s no defined error
- 500 Error only one one page in the WP admin
- Can’t Change Theme And White Screen When Activating Any Plugin
- Fatal error…Please help me
- Fatal error after updating to WordPress 5
- Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize
- Revslider error. Impossible to enter admin dashboard [closed]
- Fatal error after update [closed]
- White screen of death after an auto update of WordPress
- Handle new created WP_Error
- How do iterate through all errors for a WP_Error object?
- Template administration Error after WP 4.8 update
- Fatal Error after migrating WordPress site from one host to another
- Get errors from WP_Error to different variables
- Getting error when using wp_insert_post()
- Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 57 bytes) in public_html/wp-includes/rewrite.php on line 1561
- After Plugin deinstallation, Login impossible and line50 error
- Need help decrypting error and warning messages
- hypanis.ru wordpress vulnerabilty [closed]
- WordPress crashed during update
- PHP error when trying to upload .mp3 files via Media Library [closed]
- There has been a critical error on your website – won’t fix no matter what
- Fatal error: Cannot redeclare get_header_image() (previously declared in [closed]
- Can’t access my site due to fatal error [closed]
- White screen after a couple hours?
- White Screen on Site but wp-admin OK
- My site is not working because of this: Fatal error: Cannot redeclare be_themes_contact_authentication [closed]
- Fatal error: Uncaught Error: Call to undefined function do_action_ref_array() when using wp_signon function
- Allowed memory size exhausted
- Fatal error: Call to undefined function the_archive_title ()
- Fatal Error Class ‘WP_Widget_Pages’ not found in /home/****/public_html/wp-includes/class-wp-widget-factory.php
- Fatal error: Uncaught Error: Call to undefined function wp() in /home/nr4dxonhypyy/public_html/wp-blog-header.php:16
- Critical error – can’t post comments
- Replace old theme that understand old css (vcex_icon_box css_animation)
- failed to open stream – wp-includes/blocks/file.php
- Fatal error: Uncaught Error: Call to undefined function add_action()
- Unable to edit with Elementor
- WordPress critical error (tried plugin + debug!)
- Not able to access admin console after Installing and activating a plugin
- Fatal Error when trying to load Permalinks page on WP admin [closed]
- Getting WordPress fatal error when hitting WooCommerce API
- Fatal error: Uncaught Error: Class ‘WP_REST_Meta_Fields’ not found in
- unable to edit any page of my wordpress website
- How to remove theme that caused WordPress to crash?
- I can’t view the orders on the woocomerce dashboard with the brainblocks plugin
- Fatal error: Uncaught Error: Call to undefined function twentynineteen_post_thumbnail()
- Php Fatal error. Blank wordpress admin panel
- Why does this show up when i try to log in
- Recoverable fatal error: Object of class WP_Error could not be converted to string in /home/xyz/mysite.com/wp-includes/formatting.php on line 3796
- Error handling for wpdb error – displaying an error message to the user
- How to fix wordpress white screen of death a cause bad php code?
- Catchable fatal error: Object of class WP_Error could not be converted to string in
- How do I create a state of “don’t assign anything to variable” if WP_Error throws an error?
- WordPress site suddenly stopped working
- Why would adding a template file to a child theme cause an error in template-loader.php?
- Blank page and 301 redirect
- White Screen of Death error
- WSOD on 4.1.1 after migrating from Bluehost to Dreamhost
- Fatal error: Allowed memory size of bytes exhausted (tried to allocate 36 bytes)
- Object of class WP_Post could not be converted to string
- WordPress won’t display errors at all
- Plugin won’t activate, fatal error (widget class not found)
- WP_Error message
- blank white page in admin, white space hunting?
- Fatal error: Cannot declare class WP_User_Request, because the name is already in use?
- I’m getting Call to undefined function wp_parse_list() out of the blue
- Blank screen at login/logout – tried everything!
- Fatal error: Can’t use method return value in write context
- Fatal error: Call to undefined function request_filesystem_credentials()
- Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 42240 bytes) in /home/dh_w7t9sk/morleywines.com/wp-content/plugins/
- HELP! Fatal Error? I can’t access the Dashboard. How do I regain access? [closed]
- Fatal error: require(): Failed opening required ‘load.php’
- kali php problem [closed]
- WP Elementor Pro causing crtical failure on website
- Fatal error: Uncaught Error: Call to undefined function wpcf7
- Call to undefined function create_function()
- Fatal error: Uncaught Error: Call to undefined method Elementor\Utils::is_ajax() [closed]
- Please Help Me, How to Fix PHP Error Undefined Array Key “srcset”
- How do I turn off WordPress errors and just have regular old php errors?
- Core error when calling remove_menu_page
- WordPress core files – PHP Warning: file_exists(): open_basedir restriction in effect