• Greetings,

    after the last update if WP Debug is active I get this error:

    Notice: The register_block_script_handle function was called incorrectly. The resource file for "editorScript" defined in the block definition "contact-form-7/contact-form-selector" is missing. Read Debugging in WordPress for more information.

    There is a solution?

Viewing 15 replies - 31 through 45 (of 48 total)
  • This fix worked for me as well. Do we know when the plugin will be updated to fix this issue?

    cyberizeit (@cyberizeit)

    read this hotfix(worked for me):https://www.ads-software.com/support/topic/error-after-last-update-48/

    steps:
    If you have cpanel:
    – go to file manager
    – in file manager, scroll to url of your site, then open public_html (just public_html if you only have one site)
    – open wp-content
    – open plugins
    – open contact-form-7
    – open includes
    – open block-editor
    – right-click block.json, select edit
    – click edit
    – line 34, make changes as per other thread suggestion
    Before: “editorScript”: “file:./index.js”
    After fix: “editorScript”: “./index.js”
    – save changes

    Thanks!!

    resolved for my site as well. Thanks!

    FYI — it is under the plugin- i originally looked into the /include folder in the root.

    I think a better fix is to add an empty file

    index.asset.php

    … in folder contact-form-7/includes/block-editor/,
    where all other files reside.

    • This reply was modified 1 year, 11 months ago by cvladan.
    • This reply was modified 1 year, 11 months ago by cvladan.

    @dominikkucharski Worked for me also. Thank you so much!

    Muhammad Assane

    (@programmer4techybirds)

    @dominikkucharski Thanks, worked for me too

    Thanks, @dominikkucharski !

    @dominikkucharski worked for me! Thanks!

    I put this change in block.json. While in there, VSCode was telling me there was a problem with line 20. The “output” attribute does not have a type.
    “output”: {
    “enum”: [ “form”, “raw_form” ],
    “default”: “form”
    }`
    While the change to “editorScript” made the error go away, I’m’ wondering what problems are being masked.

    • This reply was modified 1 year, 11 months ago by wingflap.

    The fix works for me. However, there is another issue of missing type
    BEFORE:

    "output": {
    	"enum": [ "form", "raw_form" ],
    	"default": "form"
    }

    AFTER:

    "output": {
    	"type": "array",
    	"enum": [ "form", "raw_form" ],
    	"default": "form"
    }

    I was just about to suggest adding the array type.

    Worked for me. Thank you!!!

    “editorScript”: “./index.js” works for me also but I receive this error when I change this in:
    wp-content/plugins/contact-form-7/includes/block-editor/block.json

    Now get this error:

    Notice: Functie register_block_script_handle werd verkeerd aangeroepen. Het asset bestand voor de “editorScript” gedefinieerd in de “contact-form-7/contact-form-selector” blok definitie bestaat niet. Lees Foutopsporing in WordPress voor meer informatie. (Dit bericht is toegevoegd in versie 5.5.0.) in /home/adm32frmo/domains/frmodulair.nl/public_html/wp-includes/functions.php on line 5835

    Is it a bug in Contact form 7 which needs to fix by the Contact Form developer.

    it works for me too!

Viewing 15 replies - 31 through 45 (of 48 total)
  • The topic ‘Error after last update’ is closed to new replies.