Title: Error: Function register_block_script_handle was called incorrectly
Last modified: December 10, 2022

---

# Error: Function register_block_script_handle was called incorrectly

 *  [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/)
 * Seems to be a register_block_script_handle error after updating CF7 this afternoon.
   I had WP Debug set to True, and this error popped up:
 * >  Notice: Function register_block_script_handle was called incorrectly. The 
   > asset file for the “editorScript” defined in “contact-form-7/contact-form-selector”
   > block definition is missing. Please see Debugging in WordPress for more information.(
   > This message was added in version 5.5.0.) in /www/webroot/my-site/wordpress/
   > wp-includes/functions.php on line 5835
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-function-register_block_script_handle-was-called-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/page/2/?output_format=md)

 *  [kocongan](https://wordpress.org/support/users/kocongan/)
 * (@kocongan)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16278112)
 * This error appear on my site also
 *  [jurasjo](https://wordpress.org/support/users/jurasjo/)
 * (@jurasjo)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16278280)
 * I can confirm there is a PHP notice like the topic says:
 *     ```
       [11-Dec-2022 06:20:17 UTC] PHP Notice:  Function register_block_script_handle was called <strong>incorrectly</strong>. The asset file for the "editorScript" defined in "contact-form-7/contact-form-selector" block definition is missing. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in /home/suomikac/public_html/testy/wp-includes/functions.php on line 5835
       ```
   
 *  [Eva](https://wordpress.org/support/users/jesuiseva/)
 * (@jesuiseva)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16278531)
 * Same issue
 * `Notice: Function register_block_script_handle was called incorrectly. The asset
   file for the "editorScript" defined in "contact-form-7/contact-form-selector"
   block definition is missing. Please see Debugging in WordPress for more information.(
   This message was added in version 5.5.0.) in /Applications/MAMP/htdocs/anatomy43/
   web/wp/wp-includes/functions.php on line 5835`
 *  [SamBrishes](https://wordpress.org/support/users/sam-brishes/)
 * (@sam-brishes)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16278714)
 * Hello,
 * same issue here, could (hot-)fix it by creating the missing(?) “index.asset.php”
   file inside the “contact-form-7/includes/block-editor” directory (without any
   content).
 * However, the new release does also mess with the shortcode espacing / auto p-
   tagging. Not that this can’t be solved with CSS, but surprising, since it’s not
   listed in the changelog.
    ~Sam.
 *  [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16279094)
 * Hi,
    This notice appears on my sites also.
 *  [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16279553)
 * Confirmed as well.
 * This is a well- and actively-supported plugin so I’m sure they’ll have a fix 
   for this soon. Meanwhile, you can find the previous version here and revert to
   that by downloading and installing it if you need to:
 * [https://wordpress.org/plugins/contact-form-7/advanced/](https://wordpress.org/plugins/contact-form-7/advanced/)
 *  [Surapareddy Ramkrishna](https://wordpress.org/support/users/sramkrishna1/)
 * (@sramkrishna1)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16279562)
 * I have the Same issue.
 *  [Johan WALTER](https://wordpress.org/support/users/johan_walter/)
 * (@johan_walter)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16280005)
 * Same issue on my websites
 *  [tanerozturk](https://wordpress.org/support/users/tanerozturk/)
 * (@tanerozturk)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16281827)
 * Same issue here..
    Function register_block_script_handle was called incorrectly.
   The asset file for the “editorScript” defined in the “contact-form-7/contact-
   form-selector” block definition is missing.
 *  [devisionuk](https://wordpress.org/support/users/devisionuk/)
 * (@devisionuk)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16282724)
 * temporary fix can be found here
    [https://wordpress.org/support/topic/error-after-last-update-48/](https://wordpress.org/support/topic/error-after-last-update-48/)
 *  [mmbait](https://wordpress.org/support/users/mmbait/)
 * (@mmbait)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16283184)
 * I also have this error message when I visit the homepage of my site.
 * However, when I try to log into the wordpress dashboard, I just get additional
   error mesages, and I cannot log in to make the fixes..
 *  [adam7hansen](https://wordpress.org/support/users/adam7hansen/)
 * (@adam7hansen)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16286364)
 * Experiencing the same issue.
 *  [searchranker](https://wordpress.org/support/users/searchranker/)
 * (@searchranker)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16287180)
 * Same Problem
 *  [cvladan](https://wordpress.org/support/users/cvladan/)
 * (@cvladan)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16287368)
 * An easier solution is just adding an empty `index.asset.php` file inside that
   folder, as user [@sam-brishes](https://wordpress.org/support/users/sam-brishes/)
   already wrote above.
 * Folder is `contact-form-7/includes/block-editor/`.
 *  [mondendev](https://wordpress.org/support/users/mondendev/)
 * (@mondendev)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/#post-16288621)
 * Same issue here.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/page/2/?output_format=md)

The topic ‘Error: Function register_block_script_handle was called incorrectly’ 
is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)

 * 23 replies
 * 21 participants
 * Last reply from: [rahulitjec](https://wordpress.org/support/users/rahulitjec/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/error-function-register_block_script_handle-was-called-incorrectly/page/2/#post-16295765)
 * Status: not resolved