• matt1207

    (@matt1207)


    Hello,

    I am experiencing an intermittent issue while using Elementor. Below are the details of the problem:Problem Description:

    Occasionally, my website homepage fails to load properly, and the server logs show the following error message:

    PHP Fatal error: Uncaught Error: Call to a member function get_component() on null in /srv/htdocs/wp-content/plugins/elementor/includes/api.php:129
    Stack trace: 0 /srv/htdocs/wp-content/plugins/elementor/includes/api.php(85): Elementor\Api::get_site_key() 1 /srv/htdocs/wp-content/plugins/elementor/includes/api.php(178): Elementor\Api::get_info_data()

    • The issue occurs intermittently. Sometimes the site works fine, but at other times it throws this error.
    • I have cleared both the browser cache and site cache, but the issue persists.
    • Both WordPress and Elementor are updated to their latest versions.

    Configuration Details:

    • WordPress Version: 6.7.1
    • Elementor Version: Free Version
    • Theme: Houzez
    • Server Environment: PHP 8.1.31, Nginx

    Steps Taken:

    1. Cleared all caches (Elementor cache and browser cache).
    2. Ensured all plugins and the theme are up-to-date.
    3. Switched to a default WordPress theme to check for theme conflicts.

    Assistance Needed:

    1. Is there a solution or recommended steps to resolve this error?
    2. Are there any tools or methods I can use to further investigate the root cause?
    3. Should I disable any experimental features (like Element Caching or Optimized Markup) to troubleshoot?

    Thank you in advance for your support!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • justinferraz

    (@justinferraz)

    I’m experiencing the same issue.. besides the error:

    • PHP Fatal error: Uncaught Error: Call to a member function get_component() on null in /srv/htdocs/wp-content/plugins/elementor/includes/api.php:129

    We’ve been experiencing also the following:

    • PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /srv/htdocs/wp-content/themes/abeto/index.php:15

    The strange part is that we did not do any change in the website in the last 3 months, so it makes me think that we might be suffering an error from a recent updated plugin.

    Any idea about it? Could you solve it in your side @matt1207?

    Thanks!

    Hi There,

    I am also receiving similar issue:

    Message

    PHP Fatal error: Uncaught Error: Call to a member function get_component() on null in /srv/htdocs/wp-content/plugins/elementor/includes/api.php:129 Stack trace: #0 /srv/htdocs/wp-content/plugins/elementor/includes/api.php(85): Elementor\Api::get_site_key() #1 /srv/htdocs/wp-content/plugins/elementor/includes/api.php(178): Elementor\Api::get_info_data() #2 /srv/htdocs/wp-content/plugins/elementor/modules/promotions/module.php(53): Elementor\Api::get_promotion_widgets() #3 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(324): Elementor\Modules\Promotions\Module->Elementor\Modules\Promotions\{closure}(Object(Elementor\Widgets_Manager)) #4 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /wordpress/core/6.7.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /srv/htdocs/wp-content/plugins/elementor/includes/managers/widgets.php(146): do_action('elementor/widge...', Object(Elementor\Widgets_Manager)) #7 /srv/htdocs/wp-content/plugins/elementor/includes/managers/widgets.php(345): Elementor\Widgets_Manager->init_widgets() #8 /srv/htdocs/wp-content/plugins/elementor/includes/elements/container.php(330): Elementor\Widgets_Manager->get_widget_types('heading') #9 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(1502): Elementor\Includes\Elements\Container->_get_default_child_type(Array) #10 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(369): Elementor\Element_Base->get_child_type(Array) #11 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(1547): Elementor\Element_Base->add_child(Array) #12 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(314): Elementor\Element_Base->init_children() #13 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(1441): Elementor\Element_Base->get_children() #14 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content() #15 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(1442): Elementor\Element_Base->print_element() #16 /srv/htdocs/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content() #17 /srv/htdocs/wp-content/plugins/elementor/core/base/document.php(1890): Elementor\Element_Base->print_element() #18 /srv/htdocs/wp-content/plugins/elementor/core/base/document.php(1801): Elementor\Core\Base\Document->do_print_elements(Array) #19 /srv/htdocs/wp-content/plugins/elementor/core/base/document.php(1200): Elementor\Core\Base\Document->print_elements(Array) #20 /srv/htdocs/wp-content/plugins/elementor/includes/frontend.php(1184): Elementor\Core\Base\Document->print_elements_with_wrapper(Array) #21 /srv/htdocs/wp-content/plugins/elementor/includes/frontend.php(1079): Elementor\Frontend->get_builder_content(3725) #22 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content('<h1>Gear Drop O...') #23 /wordpress/core/6.7.1/wp-includes/plugin.php(205): WP_Hook->apply_filters('<h1>Gear Drop O...', Array) #24 /wordpress/core/6.7.1/wp-includes/post-template.php(256): apply_filters('the_content', '<h1>Gear Drop O...') #25 /srv/htdocs/wp-content/plugins/uicore-framework/includes/templates/pages.php(60): the_content() #26 /srv/htdocs/wp-content/plugins/uicore-framework/includes/templates/pages.php(45): UiCore\Pages->elementor_content() #27 /srv/htdocs/wp-content/plugins/uicore-framework/includes/templates/pages.php(20): UiCore\Pages->page() #28 /srv/htdocs/wp-content/themes/outgrid/page.php(22): UiCore\Pages->__construct() #29 /wordpress/core/6.7.1/wp-includes/template-loader.php(106): include('/srv/htdocs/wp-...') #30 /wordpress/core/6.7.1/wp-blog-header.php(19): require_once('/wordpress/core...') #31 /wordpress/core/6.7.1/index.php(17): require('/wordpress/core...') #32 {main} thrown in /srv/htdocs/wp-content/plugins/elementor/includes/api.php on line 129

    Timestamp

    2024-12-10T05:02:18.000Z

    Kind

    plugins

    Name

    elementor

    File

    /srv/htdocs/wp-content/plugins/elementor/includes/api.php

    Line

    129

    Hi, I also have the exactly same trouble.

    I found a solution to this issue. After investigating, I came across this discussion on the Elementor GitHub repository: https://github.com/elementor/elementor/issues/29582.

    The problem is likely related to using the Developer Edition of Elementor. If you’re experiencing this error, switching to a stable release of Elementor should resolve the issue. You can follow the instructions provided in this link to revert from the Developer Edition to a stable version: https://elementor.com/help/revert-to-release-from-developer-edition/.

    This resolved the issue for me, and I hope it helps others facing the same problem. ??

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