Title: PHP Notice: Function register_block_script_handle was called incorrectly.
Last modified: October 3, 2024

---

# PHP Notice: Function register_block_script_handle was called incorrectly.

 *  Resolved [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-notice-function-register_block_script_handle-was-called-incorrectly/)
 * Getting lots of these entries in `debug.log`
 *     ```wp-block-code
       [03-Oct-2024 11:12:33 UTC] PHP Notice:  Function register_block_script_handle was called incorrectly. The asset file (.../copy-the-code/classes/gutenberg/blocks/copy-button/js/frontend.asset.php) for the "script" defined in "ctc/copy-button" block definition is missing.[03-Oct-2024 11:12:33 UTC] PHP Notice:  Function register_block_script_handle was called incorrectly. The asset file  (.../copy-the-code/classes/gutenberg/blocks/copy-icon/js/frontend.asset.php) for the "script" defined in "ctc/copy-icon" block definition is missing.
       ```
   
 * Copy Anything to Clipboard 4.0.0, WordPress 6.3.5, PHP 8.1.x

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

 * ![](https://ps.w.org/copy-the-code/assets/icon-256x256.png?rev=3451645)
 * [Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code](https://wordpress.org/plugins/copy-the-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/copy-the-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/copy-the-code/)
 * [Active Topics](https://wordpress.org/support/plugin/copy-the-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/copy-the-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/copy-the-code/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/php-notice-function-register_block_script_handle-was-called-incorrectly/)
 * Status: resolved