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

---

# register_block_script_handle was called incorrectly

 *  [beka47](https://wordpress.org/support/users/beka47/)
 * (@beka47)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/)
 * WP 6.1.1, CF7 5.7.
    After updating to 5.7 (Dec 10, 2022) I got the following 
   notice (translated by Google):
 * > Notice:
   >  The function register_block_script_handle was called incorrectly. 
   > The asset file for the editorScript definition in the contact-form-7/contact-
   > form-selector block is missing.
   >  Further information:
   >  Debugging in WordPress. (This message was added in version
   > 5.5.0.) in /home/…./wp-includes/functions.php on line 5835
 * Renaming the file `.../contact-form-7/includes/block-editor/block.json` to something
   like `block.json----` removed the error-notice.
 * Note: I’m using the “Classic Editor”-WP-plugin, not Gutenberg. But deactivating
   the “Classic Editor” does not change the error-notice.
    Looks like there is a
   reference to an asset in the json-file which does not exist(?)

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

 *  [Incredible Escape Rooms](https://wordpress.org/support/users/resolvedhosting/)
 * (@resolvedhosting)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16277657)
 * Same. The update was done overnight automatically on my site and it broke the
   whole thing. Customers were not even able to place orders on the site. Downgraded
   to previous version to fix.
 *  [joeathomas](https://wordpress.org/support/users/joeathomas/)
 * (@joeathomas)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16277793)
 * See temporary fix here: [https://wordpress.org/support/topic/error-after-last-update-48/#post-16277761](https://wordpress.org/support/topic/error-after-last-update-48/#post-16277761)
 *  [kirschgrafik](https://wordpress.org/support/users/kirschgrafik/)
 * (@kirschgrafik)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16278529)
 * same here
 *  [Azamat](https://wordpress.org/support/users/azamat88/)
 * (@azamat88)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16278543)
 * same notice on my website
 *  [ellmann creative](https://wordpress.org/support/users/ellmanncreative/)
 * (@ellmanncreative)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16280674)
 * Yup, if you have debugging enabled, this will pop up. “Notices are errors” and
   all that jazz, guys.
 *  [kubiq](https://wordpress.org/support/users/kubiq/)
 * (@kubiq)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16280723)
 * please fix this asap
 *  [minimamente](https://wordpress.org/support/users/minimamente/)
 * (@minimamente)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16281372)
 * Hi to All!
 * The problem is in: /block.json
 * FIX
 * – **Line 34** on `editorScript` includes/block-editor/block.json
    – **BEFORE**:“
   editorScript”: “file:./index.js” – **AFTER**: “editorScript”: “./index.js”
 *  [muhammadfahad69](https://wordpress.org/support/users/muhammadfahad69/)
 * (@muhammadfahad69)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16284617)
 * Hi guys,
 * The problem is in: /block.json of the plugins so the perfect location of the 
   file is
 * public_html/wp-content/plugins/contact-form-7/includes/block-editor
 * – Line 34 on editorScript includes/block-editor/block.json
    – BEFORE: “editorScript”:“
   file:./index.js” – AFTER: “editorScript”: “./index.js”

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

The topic ‘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/)

 * 9 replies
 * 9 participants
 * Last reply from: [muhammadfahad69](https://wordpress.org/support/users/muhammadfahad69/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/register_block_script_handle-was-called-incorrectly/#post-16284617)
 * Status: not resolved