• Hi,
    I saw another post on here about this from 1 month ago with no fix..
    When upgrading my WordPress version from 5.9.3(??) -> 6.0.0, I got a fatal error that shut down my entire website. I also cannot access the console.

    The full error:
    [29-Jun-2022 13:24:36 UTC] PHP Fatal error: Cannot redeclare wp_add_iframed_editor_assets_html() (previously declared in /var/www/html/wp-includes/deprecated.php:4312) in /var/www/html/wp-includes/script-loader.php on line 2850

    When looking into these 2 files, it looks like they have the a function with the same name and WordPress does not know which one to use, causing this fatal error.

    In deprecated.php, lines 4311-4313:

    function wp_add_iframed_editor_assets_html() {
    	_deprecated_function( __FUNCTION__, '6.0.0' );
    }

    Then in script-loader.php, line 2850:
    function wp_add_iframed_editor_assets_html() {

    Does anyone know how to fix this?
    Thanks,

    • This topic was modified 1 year, 10 months ago by rmcgn3.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot redeclare wp_add_iframed_editor_assets_html()’ is closed to new replies.