Title: Warning: Undefined array key &#8220;widgetType&#8221;
Last modified: June 29, 2026

---

# Warning: Undefined array key “widgetType”

 *  [akedv](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [1 week ago](https://wordpress.org/support/topic/warning-undefined-array-key-widgettype/)
 * Hello, suddenly I get an critical error on a website, with debugging activated
   we get this error:
 * `Warning: Undefined array key "widgetType" in /htdocs/wp-content/plugins/elementor/
   core/base/document.php on line 2079`
 * `Fatal error: Uncaught Error: Call to a member function get_default_args() on
   array in /htdocs/wp-content/plugins/elementor/includes/managers/elements.php:
   86 Stack trace: #0 /htdocs/wp-content/plugins/elementor/core/base/document.php(
   2081): Elementor\Elements_Manager->create_element_instance(Array) #1 [internal
   function]: Elementor\Core\Base\Document->{closure:Elementor\Core\Base\Document::
   iterate_elements():2078}(Array, Array) #2 /htdocs/wp-content/plugins/elementor/
   includes/db.php(265): call_user_func(Object(Closure), Array, Array) #3 /htdocs/
   wp-content/plugins/elementor/includes/db.php(269): Elementor\DB->iterate_data(
   Array, Object(Closure), Array) #4 /htdocs/wp-content/plugins/elementor/includes/
   db.php(262): Elementor\DB->iterate_data(Array, Object(Closure), Array) #5 /htdocs/
   wp-content/plugins/elementor/includes/db.php(269): Elementor\DB->iterate_data(
   Array, Object(Closure), Array) #6 /htdocs/wp-content/plugins/elementor/includes/
   db.php(262): Elementor\DB->iterate_data(Array, Object(Closure), Array) #7 /htdocs/
   wp-content/plugins/elementor/includes/db.php(269): Elementor\DB->iterate_data(
   Array, Object(Closure), Array) #8 /htdocs/wp-content/plugins/elementor/includes/
   db.php(262): Elementor\DB->iterate_data(Array, Object(Closure), Array) #9 /htdocs/
   wp-content/plugins/elementor/includes/db.php(269): Elementor\DB->iterate_data(
   Array, Object(Closure), Array) #10 /htdocs/wp-content/plugins/elementor/core/
   base/document.php(2078): Elementor\DB->iterate_data(Array, Object(Closure)) #
   11 /htdocs/wp-content/plugins/elementor/core/base/document.php(1921): Elementor\
   Core\Base\Document->iterate_elements(Array, Array, 'render') #12 /htdocs/wp-content/
   plugins/elementor/includes/frontend.php(720): Elementor\Core\Base\Document->update_runtime_elements()#
   13 /htdocs/wp-content/plugins/elementor/includes/frontend.php(691): Elementor\
   Frontend->handle_page_assets(63) #14 /htdocs/wp-includes/class-wp-hook.php(341):
   Elementor\Frontend->enqueue_styles('') #15 /htdocs/wp-includes/class-wp-hook.
   php(365): WP_Hook->apply_filters(NULL, Array) #16 /htdocs/wp-includes/plugin.
   php(522): WP_Hook->do_action(Array) #17 /htdocs/wp-includes/script-loader.php(
   2329): do_action('wp_enqueue_scri…') #18 /htdocs/wp-includes/class-wp-hook.php(
   341): wp_enqueue_scripts('') #19 /htdocs/wp-includes/class-wp-hook.php(365): 
   WP_Hook->apply_filters(NULL, Array) #20 /htdocs/wp-includes/plugin.php(522): 
   WP_Hook->do_action(Array) #21 /htdocs/wp-includes/general-template.php(3208):
   do_action('wp_head') #22 /htdocs/wp-content/themes/blocksy/header.php(21): wp_head()#
   23 /htdocs/wp-includes/template.php(814): require_once('/www/htdocs/w01…') #24/
   htdocs/wp-includes/template.php(749): load_template('/www/htdocs/w01…', true,
   Array) #25 /htdocs/wp-includes/general-template.php(48): locate_template(Array,
   true, true, Array) #26 /htdocs/wp-content/themes/blocksy/single.php(10): get_header()#
   27 /htdocs/wp-includes/template.php(816): require('/www/htdocs/w01…') #28 /htdocs/
   wp-includes/template.php(749): load_template('/www/htdocs/w01…', false, Array)#
   29 /htdocs/wp-includes/general-template.php(206): locate_template(Array, true,
   false, Array) #30 /htdocs/wp-content/themes/blocksy/page.php(15): get_template_part('
   single') #31 /htdocs/wp-includes/template-loader.php(132): include('/www/htdocs/
   w01…') #32 /htdocs/wp-blog-header.php(19): require_once('/www/htdocs/w01…') #
   33 /htdocs/index.php(17): require('/www/htdocs/w01…') #34 {main} thrown in /htdocs/
   wp-content/plugins/elementor/includes/managers/elements.php on line 86`
 * I already tried deactivating all other plugins and switched to default 2025 theme
   but as soon as activating Elementor this error is back and breaks the whole website

Viewing 1 replies (of 1 total)

 *  Thread Starter [akedv](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [4 days, 21 hours ago](https://wordpress.org/support/topic/warning-undefined-array-key-widgettype/#post-18952980)
 * no idea how to get rid of this error? in that case we have to abandon elementor
   and switch to some other page builder fast!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-undefined-array-key-widgettype%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [akedv](https://wordpress.org/support/users/ak71/)
 * Last activity: [4 days, 21 hours ago](https://wordpress.org/support/topic/warning-undefined-array-key-widgettype/#post-18952980)
 * Status: not resolved