Title: fatal error script-loader.php
Last modified: June 27, 2022

---

# fatal error script-loader.php

 *  [luanamiotelli](https://wordpress.org/support/users/luanamiotelli/)
 * (@luanamiotelli)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-script-loader-php/)
 * the site was fine last night, but this morning crashed down, on debug mode shown
   this errors
 *     ```
       Fatal error: Cannot redeclare wp_add_iframed_editor_assets_html() (previously declared in /home/morganlima/public_html/wp-includes/deprecated.php:4312) in /home/morganlima/public_html/wp-includes/script-loader.php on line 2851
   
       Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/morganlima/public_html/wp-includes/functions.php on line 5831
   
       Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/morganlima/public_html/wp-includes/functions.php on line 5831
       ```
   
    -  This topic was modified 3 years, 10 months ago by [luanamiotelli](https://wordpress.org/support/users/luanamiotelli/).

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-script-loader-php/#post-15678768)
 * Could you deactivate all plugins and activate a default theme? If the problem
   then no longer occurs, it must have to do with one of them. Possibly it was caused
   by an incompatibility of the plugin/theme with WordPress 6.0, which was released
   yesterday evening.
 *  [Abdelhadi Touil](https://wordpress.org/support/users/hadi060/)
 * (@hadi060)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-script-loader-php/#post-15721780)
 * There is an issue with WordPress 6 that makes the website inaccessible with a
   fatal error, especially in script-loader.php file on line 1271. If you search
   on Google for “script-loader.php on line 1271” you will find many websites that
   are affected by this error.
    There is a temporary fix that we can use, but the
   real and permanent fix should come from WordPress team as an update. The fix 
   is: Open /wp-includes/script-loader.php file and removed the second % from the
   line 1266: `__( 'Hurray! Your theme supports Full Site Editing with blocks. <
   a href="%1$s">Tell me more</a>. %2$s' ),` It should look like this: `__( 'Hurray!
   Your theme supports Full Site Editing with blocks. <a href="%1$s">Tell me more
   </a>. 2$s' ),` The fix is posted here: [https://stackoverflow.com/a/72413198](https://stackoverflow.com/a/72413198)
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-script-loader-php/#post-15721822)
 * This looks like a different error than mentioned in this topic. In addition, 
   manipulating core files is not advisable. Why haven’t you created a ticket in
   Trac yet? Maybe it is also due to the language files used, because there is already
   a ticket there: [https://core.trac.wordpress.org/ticket/55866](https://core.trac.wordpress.org/ticket/55866)
 *  [Abdelhadi Touil](https://wordpress.org/support/users/hadi060/)
 * (@hadi060)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-script-loader-php/#post-15721848)
 * Yes, you are right, but maybe the error is related to the same issue as it is
   coming from the same core file.
    I know that manipulating the core files is no
   advisable, but that was the only fix, or we should downgrade WordPress to fix
   it. Yes, there is already a ticket about that issue, and it seems that it is 
   coming from the language file, but I don’t know if it was fixed or not yet.

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

The topic ‘fatal error script-loader.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 7 participants
 * Last reply from: [Abdelhadi Touil](https://wordpress.org/support/users/hadi060/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-script-loader-php/#post-15721848)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
