• Resolved joelnewcomer

    (@joelnewcomer)


    Hi! Thank you for building and maintaining this amazing plugin! When I updated to 1.7.0 I am getting an error when I try to edit a popup in another language using WPML. Here are the error details:

    Error Details
    =============
    An error of type E_ERROR was caused in line 81 of the file /nas/content/live/ninjaonedev/wp-content/plugins/dynamicconditions/Admin/DynamicConditionsAdmin.php. Error message: Uncaught TypeError: DynamicConditions\Admin\DynamicConditionsAdmin::addConditionFields(): Argument #1 ($element) must be of type Elementor\Element_Base, ElementorPro\Modules\Popup\Document given, called in /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php on line 324 and defined in /nas/content/live/ninjaonedev/wp-content/plugins/dynamicconditions/Admin/DynamicConditionsAdmin.php:81
    Stack trace:
    #0 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(324): DynamicConditions\Admin\DynamicConditionsAdmin->addConditionFields(Object(ElementorPro\Modules\Popup\Document), Array)
    #1 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #2 /nas/content/live/ninjaonedev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/base/controls-stack.php(1690): do_action(‘elementor/eleme…’, Object(ElementorPro\Modules\Popup\Document), Array)
    #4 /nas/content/live/ninjaonedev/wp-content/plugins/elementor-pro/modules/popup/document.php(835): Elementor\Controls_Stack->end_controls_section()
    #5 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/base/controls-stack.php(2386): ElementorPro\Modules\Popup\Document->register_controls()
    #6 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/base/controls-stack.php(569): Elementor\Controls_Stack->init_controls()
    #7 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/base/controls-stack.php(314): Elementor\Controls_Stack->get_stack()
    #8 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/base/controls-stack.php(2475): Elementor\Controls_Stack->get_controls()
    #9 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/base/controls-stack.php(1158): Elementor\Controls_Stack->sanitize_settings(Array)
    #10 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/base/controls-stack.php(2218): Elementor\Controls_Stack->get_data(‘settings’)
    #11 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\Controls_Stack->get_init_settings()
    #12 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings()
    #13 /nas/content/live/ninjaonedev/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(548): Elementor\Core\Base\Base_Object->get_settings(‘preview_id’)
    #14 /nas/content/live/ninjaonedev/wp-content/plugins/elementor-pro/modules/theme-builder/classes/preview-manager.php(48): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_preview_as_query_args()
    #15 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(324): ElementorPro\Modules\ThemeBuilder\Classes\Preview_Manager->filter_query_control_args(Array)
    #16 /nas/content/live/ninjaonedev/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #17 /nas/content/live/ninjaonedev/wp-content/plugins/elementor-pro/modules/loop-filter/module.php(169): apply_filters(‘elementor/query…’, Array)
    #18 /nas/content/live/ninjaonedev/wp-content/plugins/elementor-pro/modules/loop-filter/module.php(148): ElementorPro\Modules\LoopFilter\Module->get_current_query_vars()
    #19 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(324): ElementorPro\Modules\LoopFilter\Module->add_localize_data(Array)
    #20 /nas/content/live/ninjaonedev/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #21 /nas/content/live/ninjaonedev/wp-content/plugins/elementor-pro/core/editor/editor.php(80): apply_filters(‘elementor_pro/e…’, Array)
    #22 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/base/base-object.php(142): ElementorPro\Core\Editor\Editor->get_init_settings()
    #23 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings()
    #24 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/base/app.php(36): Elementor\Core\Base\Base_Object->get_settings()
    #25 /nas/content/live/ninjaonedev/wp-content/plugins/elementor-pro/core/editor/editor.php(112): Elementor\Core\Base\App->print_config(‘elementor-pro’)
    #26 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(324): ElementorPro\Core\Editor\Editor->enqueue_editor_scripts(”)
    #27 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #28 /nas/content/live/ninjaonedev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #29 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/editor/editor.php(353): do_action(‘elementor/edito…’)
    #30 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->enqueue_scripts(”)
    #31 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #32 /nas/content/live/ninjaonedev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #33 /nas/content/live/ninjaonedev/wp-includes/script-loader.php(2263): do_action(‘wp_enqueue_scri…’)
    #34 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts(”)
    #35 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #36 /nas/content/live/ninjaonedev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #37 /nas/content/live/ninjaonedev/wp-includes/general-template.php(3065): do_action(‘wp_head’)
    #38 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head()
    #39 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php(110): include(‘/nas/content/li…’)
    #40 /nas/content/live/ninjaonedev/wp-content/plugins/elementor/core/editor/editor.php(163): Elementor\Core\Editor\Loader\V1\Editor_V1_Loader->print_root_template()
    #41 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->init(”)
    #42 /nas/content/live/ninjaonedev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #43 /nas/content/live/ninjaonedev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #44 /nas/content/live/ninjaonedev/wp-admin/admin.php(419): do_action(‘admin_action_el…’)
    #45 /nas/content/live/ninjaonedev/wp-admin/post.php(12): require_once(‘/nas/content/li…’)
    #46 {main}
    ?thrown

    Thank you again!

    Joel

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.