Layout of the homepage is distorted: “Critical error on this website.”

This topic has 8 replies, 3 voices, and was last updated 2 years, 11 months ago ago by Olga Barlow

  • Avatar: evmart
    evmart
    Participant
    December 1, 2021 at 09:42

    Suddenly the layout of the home page of my website is distorted. It says “There has been a critical error on this website.” at the bottom of the site.

    Interestingly, if I inactivate the xtstore core plugin, the page is not distorted again.

    I tried the following methods to fix it but in vain.

    1) But if I set the homepage to another page, the layout becomes normal again.

    2) I tried to go into the elemntor editor of the main page to check the reason, but I can’t get into it again.

    3) I tried to update the theme and core plugin, but it was useless.

    Can you help me?

    7 Answers
    Avatar: evmart
    evmart
    Participant
    December 1, 2021 at 10:54

    I tried to debug myself, it shows the error message as shown below:

    Page Front End Error
    Uncaught Error: Call to a member function is_on_sale() on null in /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/plugins/woocommerce/templates/loop/sale-flash.php:25 Stack trace: #0 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include() #1 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1395): wc_get_template() #2 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-includes/class-wp-hook.php(303): woocommerce_show_product_loop_sale_flash() #3 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/themes/xstore/woocommerce/content-product.php(321): do_action() #6 /var/www/vhosts/theevmart.com/staging-2.theevmar in /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/plugins/woocommerce/templates/loop/sale-flash.php on line 25

    Backend Page Editor Error
    Fatal error: Uncaught Error: Call to a member function get_availability() on null in /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/themes/xstore/framework/woo.php:2016 Stack trace: #0 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/themes/xstore/woocommerce/content-product.php(331): etheme_product_availability() #1 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-includes/template.php(772): require(‘/var/www/vhosts…’) #2 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template() #3 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/themes/xstore/framework/woo.php(600): wc_get_template_part() #4 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/plugins/et-core-plugin/app/controllers/shortcodes/products.php(471): etheme_products() #5 /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/plugins/et-core-plugin/app/controllers/elementor/general/products.php(584): in /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-content/themes/xstore/framework/woo.php on line 2016

    Notice: Trying to access array offset on value of type bool in /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-includes/class-wp-recovery-mode-email-service.php on line 351

    Notice: Trying to access array offset on value of type bool in /var/www/vhosts/theevmart.com/staging-2.theevmart.com/wp-includes/class-wp-recovery-mode-email-service.php on line 352

    But I have no idea what goes wrong because all the codes looks fine. Could you help me?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 1, 2021 at 13:52

    Hello,

    Provide URL, temporary wp-admin and FTP access.

    Regards

    Avatar: evmart
    evmart
    Participant
    December 1, 2021 at 14:36

    I sent u the login of the staging site in private content area

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 1, 2021 at 14:43

    Hello,

    Provide FTP access also. If you don’t know what is FTP then contact your hosting provider. They will give you access.

    Regards

    Avatar: evmart
    evmart
    Participant
    December 1, 2021 at 15:31

    Please test in staging-2 site

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 2, 2021 at 12:16

    Hello,

    Fatal error caused by PowerPack Lite for Elementor plugin https://prnt.sc/21dusk9
    Once plugin is disabled then page works ok.
    I passed issue to our developers. They will take a look to if it’s possible to fix this compatibility issue.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 8, 2021 at 16:17

    Hello,

    Our developers can’t find what causes this error https://prnt.sc/21dusk9
    Try to contact the plugin author. Maybe they will give you any solution. Disable plugin till they fix the problem.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.