• Resolved colinfroggatt

    (@colinfroggatt)


    Hi Just updated to 1.9.95 and getting this deprecated message in the logs. This only seems to happen when editing a page with Elementor.

    Schema & Structured Data for WP & AMP: v1.9.95
    WP: 5.9.2
    Elementor: 3.6.1
    E Pro: 3.6.4

    PHP Deprecated:  _content_template is <strong>deprecated</strong> since version 2.9.0! Use Elementor\Controls_Stack::content_template() instead. in .../wp-includes/functions.php on line 5316
    PHP Stack trace:
    PHP   1. {main}() .../wp-admin/post.php:0
    PHP   2. require_once() .../wp-admin/post.php:12
    PHP   3. do_action() .../wp-admin/admin.php:419
    PHP   4. WP_Hook->do_action() .../wp-includes/plugin.php:474
    PHP   5. WP_Hook->apply_filters() .../wp-includes/class-wp-hook.php:331
    PHP   6. Elementor\Core\Editor\Editor->init() .../wp-includes/class-wp-hook.php:307
    PHP   7. Elementor\Core\Editor\Editor->print_editor_template() .../wp-content/plugins/elementor/core/editor/editor.php:158
    PHP   8. include() .../wp-content/plugins/elementor/core/editor/editor.php:317
    PHP   9. wp_footer() .../wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php:71
    PHP  10. do_action() .../wp-includes/general-template.php:3058
    PHP  11. WP_Hook->do_action() .../wp-includes/plugin.php:474
    PHP  12. WP_Hook->apply_filters() .../wp-includes/class-wp-hook.php:331
    PHP  13. Elementor\Core\Editor\Editor->wp_footer() .../wp-includes/class-wp-hook.php:307
    PHP  14. Elementor\Widgets_Manager->render_widgets_content() .../wp-content/plugins/elementor/core/editor/editor.php:821
    PHP  15. SASWPElementorModule\Widgets\HowTo_Block->print_template() .../wp-content/plugins/elementor/includes/managers/widgets.php:447
    PHP  16. Elementor\Modules\DevTools\Deprecation->deprecated_function() .../wp-content/plugins/elementor/includes/base/controls-stack.php:1949
    PHP  17. _deprecated_function() .../wp-content/plugins/elementor/modules/dev-tools/deprecation.php:239
    PHP  18. trigger_error() .../wp-includes/functions.php:5316
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Magazine3

    (@magazine3)

    It’s a valid one. For this, We have raised a GitHub ticket in our repository. We will work on it and fix it in the next updates.

    Reference ticket: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1643

    Plugin Author Magazine3

    (@magazine3)

    We fixed the issue in our latest update 1.9.96. Can you please check it once by updating the plugin to the latest version and let me know back the response?

    Thread Starter colinfroggatt

    (@colinfroggatt)

    NOT FIXED

    Hi, just tested this and still getting the same Deprecated notice with same stack trace when editing an Elementor page.

    Schema & Structured Data for WP & AMP: v1.9.96
    WP: 5.9.3
    Elementor: 3.6.4
    E Pro: 3.6.5

    current xdebug stack trace:

    PHP Deprecated:  _content_template is <strong>deprecated</strong> since version 2.9.0! Use Elementor\Controls_Stack::content_template() instead. in .../wp-includes/functions.php on line 5323
    PHP Stack trace:
    PHP   1. {main}() .../wp-admin/post.php:0
    PHP   2. require_once() .../wp-admin/post.php:12
    PHP   3. do_action() .../wp-admin/admin.php:419
    PHP   4. WP_Hook->do_action() .../wp-includes/plugin.php:474
    PHP   5. WP_Hook->apply_filters() .../wp-includes/class-wp-hook.php:331
    PHP   6. Elementor\Core\Editor\Editor->init() .../wp-includes/class-wp-hook.php:307
    PHP   7. Elementor\Core\Editor\Editor->print_editor_template() .../wp-content/plugins/elementor/core/editor/editor.php:158
    PHP   8. include() .../wp-content/plugins/elementor/core/editor/editor.php:317
    PHP   9. wp_footer() .../wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php:71
    PHP  10. do_action() .../wp-includes/general-template.php:3058
    PHP  11. WP_Hook->do_action() .../wp-includes/plugin.php:474
    PHP  12. WP_Hook->apply_filters() .../wp-includes/class-wp-hook.php:331
    PHP  13. Elementor\Core\Editor\Editor->wp_footer() .../wp-includes/class-wp-hook.php:307
    PHP  14. Elementor\Widgets_Manager->render_widgets_content() .../wp-content/plugins/elementor/core/editor/editor.php:821
    PHP  15. SASWPElementorModule\Widgets\Qanda_Block->print_template() .../wp-content/plugins/elementor/includes/managers/widgets.php:447
    PHP  16. Elementor\Modules\DevTools\Deprecation->deprecated_function() .../wp-content/plugins/elementor/includes/base/controls-stack.php:1949
    PHP  17. _deprecated_function() .../wp-content/plugins/elementor/modules/dev-tools/deprecation.php:239
    PHP  18. trigger_error() .../wp-includes/functions.php:5323
    Plugin Author Magazine3

    (@magazine3)

    We are extremely sorry for this. We did not fixed it fully unfortunately. We just re-opened this ticket again and our developer will work on it & fix it and get back to you with an update.

    Ref ticket: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1643

    Plugin Author Magazine3

    (@magazine3)

    We have fixed this in our latest update 1.9.97. Can you please check it once by updating the schema plugin to latest version and let me know back?

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

The topic ‘PHP Deprecated: _content_template is deprecated since version 2.9.0’ is closed to new replies.