• I try to access to the my account page and modify the dashboard with elementor pro, but it shows a message that “a critical error is found in my website”, and the woo commerce_my_account plugin doesn’t even work.

    An email was sent to me about this issue:

    Error Details
    =============
    An error of type E_ERROR was caused in line 1891 of the file /home1/astermas/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home1/astermas/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php:1891
    Stack trace:
    #0 /home1/astermas/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php(1891): count(NULL)
    #1 /home1/astermas/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php(1828): ElementorPro\Modules\Woocommerce\Widgets\My_Account->get_account_content_wrapper(Array)
    #2 /home1/astermas/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/my-account.php(1679): ElementorPro\Modules\Woocommerce\Widgets\My_Account->render_html_editor()
    #3 /home1/astermas/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2188): ElementorPro\Modules\Woocommerce\Widgets\My_Account->render()
    #4 /home1/astermas/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    #5 /home1/astermas/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(733): Elementor\Widget_Base->render_content()
    #6 /home1/astermas/public_html/wp-content/plugins/elementor/includes/base/element-base.php(534): Elementor\Widget_Base->get_raw_data(true)
    #7 /home1/astermas/public_html/wp-content/plugins/elementor/includes/base/element-base.php(534): Elementor\Element_Base->get_raw_data(true)
    #8 /home1/astermas/public_html/wp-content/plugins/elementor/core/base/document.php(876): Elementor\Element_Base->get_raw_data(true)
    #9 /home1/astermas/public_html/wp-content/plugins/elementor/core/base/document.php(553): Elementor\Core\Base\Document->get_elements_raw_data(Array, true)
    #10 /home1/astermas/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(1007): Elementor\Core\Base\Document->get_initial_config()
    #11 /home1/astermas/public_html/wp-content/plugins/elementor/core/editor/editor.php(522): Elementor\Controls_Stack->get_config()
    #12 /home1/astermas/public_html/wp-includes/class-wp-hook.php(307): Elementor\Core\Editor\Editor->enqueue_scripts('')
    #13 /home1/astermas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #14 /home1/astermas/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #15 /home1/astermas/public_html/wp-includes/script-loader.php(2105): do_action('wp_enqueue_scri...')
    #16 /home1/astermas/public_html/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts('')
    #17 /home1/astermas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #18 /home1/astermas/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #19 /home1/astermas/public_html/wp-includes/general-template.php(3042): do_action('wp_head')
    #20 /home1/astermas/public_html/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head()
    #21 /home1/astermas/public_html/wp-content/plugins/elementor/core/editor/editor.php(317): include('/home1/astermas...')
    #22 /home1/astermas/public_html/wp-content/plugins/elementor/core/editor/editor.php(158): Elementor\Core\Editor\Editor->print_editor_template()
    #23 /home1/astermas/public_html/wp-includes/class-wp-hook.php(307): Elementor\Core\Editor\Editor->init('')
    #24 /home1/astermas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #25 /home1/astermas/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #26 /home1/astermas/public_html/wp-admin/admin.php(419): do_action('admin_action_el...')
    #27 /home1/astermas/public_html/wp-admin/post.php(12): require_once('/home1/astermas...')
    #28 {main}
      thrown

    Can anyone help to fix it? Thanks!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Your plugins elementor-pro and elementor seem to be the error.

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/plugins/ and rename or delete the directory of your elementor-pro and elementor plugin.

    Next report the problem to at the support forums of those plugins.

    Thread Starter mastermaskertech

    (@mastermaskertech)

    Do you mean that I can directly modify the code when I access to /wp-content/plugins/ ? Because I have no coding background.

    Moderator t-p

    (@t-p)

    Do you mean that I can directly modify the code

    NO.

    Please re-read my previous reply.

    • This reply was modified 2 years, 8 months ago by t-p.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error in Vendor Dashboard’ is closed to new replies.