Skip Navigation

Deprecation notices appear when using Views/Blocks with Elementor

Resolved

Symptoms

Toolset provides View and Form widgets in the Elementor UI, but this is producing PHP deprecation notices in debug logs, like so:


PHP Deprecated: _register_controls is deprecated since version 3.1.0! Use Elementor\Controls_Stack::register_controls() instead. in ...wp-includes/functions.php on line 5323

The notices do not affect functionality.

Workaround

3 thought on Deprecation notices appear when using Views/Blocks with Elementor

  • Hi,
    where we can add or replace this 2 files.
    can you please share location path.
    Thanks

    • Are you using Views or Blocks?

      If Views, then replace these two files:
      wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/elementor/widgets/view/view.php
      wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/elementor/widgets/form/form.php

      If Blocks, then replace these two files:
      wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/elementor/widgets/view/view.php
      wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/elementor/widgets/form/form.php

Comments are closed