• Hi,

    WordPress 5.7.2
    Php 7.3.29

    Like most, I’ve had these critical errors from time to time and I’ve always managed to solve them by disabling the plugins or themes. Now I have an instance where this does not work. The error message in Plesk is:

    PHP Warning: require(D:/websites/vhosts/castlerising.co.uk/httpdocs/wp-includes/blocks/post-featured-image.php): failed to open stream: No such file or directory in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\blocks\index.php on line 22 Warning: require(D:/websites/vhosts/castlerising.co.uk/httpdocs/wp-includes/blocks/post-featured-image.php): failed to open stream: No such file or directory in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\blocks\index.php on line 22 PHP Fatal error: require(): Failed opening required 'D:/websites/vhosts/castlerising.co.uk/httpdocs/wp-includes/blocks/post-featured-image.php' (include_path='.;.\includes;.\pear') in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\blocks\index.php on line 22 Fatal error: require(): Failed opening required 'D:/websites/vhosts/castlerising.co.uk/httpdocs/wp-includes/blocks/post-featured-image.php' (include_path='.;.\includes;.\pear') in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\blocks\index.php on line 22 Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

    Indeed, there is no post-featured-image.php , if I add it from a WordPress download, the error message moves on to the next missing php file in that folder. if I add all the missing ones, I get a huge error message with fatal php errors that I don’t understand.

    Thank you,

    Nige.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host. Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://wordpress.org/support/article/debugging-in-wordpress/

    You can also try this:
    – Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
    – If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter barnabythebear

    (@barnabythebear)

    Hi t-p

    Thanks for the response. I have tried disabling the theme but it didn’t make any difference.

    This is the last log entry:

    [22-Jul-2021 17:38:23 UTC] PHP Warning:  Use of undefined constant ‘WP_TEMP_DIR’ - assumed '‘WP_TEMP_DIR’' (this will throw an Error in a future version of PHP) in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:23 UTC] PHP Warning:  Use of undefined constant ‘wp - assumed '‘wp' (this will throw an Error in a future version of PHP) in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:23 UTC] PHP Warning:  Use of undefined constant content - assumed 'content' (this will throw an Error in a future version of PHP) in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:23 UTC] PHP Warning:  Use of undefined constant ’ - assumed '’' (this will throw an Error in a future version of PHP) in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:23 UTC] PHP Warning:  A non-numeric value encountered in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:23 UTC] PHP Warning:  A non-numeric value encountered in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:23 UTC] PHP Warning:  Division by zero in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:23 UTC] PHP Warning:  A non-numeric value encountered in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php on line 21
    [22-Jul-2021 17:38:24 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function block_has_support() in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\block-supports\align.php:18
    Stack trace:
    #0 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-block-supports.php(153): wp_register_alignment_support(Object(WP_Block_Type))
    #1 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-block-supports.php(67): WP_Block_Supports->register_attributes()
    #2 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-hook.php(292): WP_Block_Supports::init('')
    #3 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #4 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\plugin.php(484): WP_Hook->do_action(Array)
    #5 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-settings.php(560): do_action('init')
    #6 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php(90): require_once('D:\\websites\\vho...')
    #7 D:\websites\vhosts\castlerising.c in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\block-supports\align.php on line 18

    Thank you,
    Nigel.

    Thread Starter barnabythebear

    (@barnabythebear)

    Hi,

    And with debug on I get:

    Notice: WP_Block_Type_Registry::register was called incorrectly. Block type names must not contain uppercase characters. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.) in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\functions.php on line 5313
    
    Fatal error: Uncaught Error: Call to undefined function block_has_support() in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\block-supports\align.php:18 Stack trace: #0 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-block-supports.php(153): wp_register_alignment_support(Object(WP_Block_Type)) #1 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-block-supports.php(67): WP_Block_Supports->register_attributes() #2 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-hook.php(292): WP_Block_Supports::init('') #3 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #4 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #5 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-settings.php(560): do_action('init') #6 D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-config.php(90): require_once('D:\\websites\\vho...') #7 D:\websites\vhosts\castlerising.c in D:\websites\vhosts\castlerising.co.uk\httpdocs\wp-includes\block-supports\align.php on line 18

    Thanks,

    Nigel.

    Moderator t-p

    (@t-p)

    Try MANUALLY updating. Please read the Manual Update directions first.

    BACKUP: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups! See https://wordpress.org/support/article/wordpress-backups/

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Very critical, critical error’ is closed to new replies.