Support » Plugin: Blocks for CiviCRM » wp_register_script was called incorrectly

  • Resolved Michael Bragg


    • PHP: 8.1
    • Plugin Version: 1.3.3
    • WordPress: 6.3.2

    We are getting PHP Notices on the front end of the website for the following:

    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-reporting handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

    Query Monior: PHP Errors

    This appears on all front-end pages across our site. Even those not using any Blocks for CiviCRM.

    The stack trace is showing as:


    We would expect no errors to be shown on any front-end page. More so for those not including any Blocks for CiviCRM blocks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.