PHP fatal errors related to lazyload-functions.php

This topic has 8 replies, 2 voices, and was last updated 1 years, 8 months ago ago by Clau8826

  • Avatar: Clau8826
    Clau8826
    Participant
    April 2, 2023 at 10:02

    Hi,

    I have had these php fatal errors ever since i started working with the theme. But i did not have the time to fix it

    The way it manifests itself is by not loading widgets that have the Xstore Ajaxify option turned on. And when you visit a page that has such widgets it throws errors in the log.
    It just shows the snipping loading circle and never loads the widgets.

    Check this screenshot from a 404 page (i visited a 404 page because it shows the widgets more easily: https://prnt.sc/hGyH3AL__Owv
    Notice the spinning circles. I have deactivated ajaxify for one of the widget to show that it loads in this way

    Example of php error:

    2023-04-02T08:22:19+00:00 CRITICAL Uncaught Error: Call to a member function render_element() on bool in /home/user_8472/app_8472/wp-content/themes/xstore/framework/features/lazyload-functions.php:288
    Stack trace:
    #0 /home/user_8472/app_8472/wp-includes/class-wp-hook.php(308): etheme_ajaxify()
    #1 /home/user_8472/app_8472/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #2 /home/user_8472/app_8472/wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 /home/user_8472/app_8472/wp-admin/admin-ajax.php(188): do_action()
    #4 {main}
      thrown in /home/user_8472/app_8472/wp-content/themes/xstore/framework/features/lazyload-functions.php on line 288

    Things I have tried in order to fix the problem:
    1. Deactivated ALL plugins and left enabled only Xstore Core, Woocommerce and Elementor. The same problem occurs
    2. I completely reinstalled the website from scratch. The problem was still present after i installed xstore and imported the demo i wanted
    3. I tested the issue on PHP 7.4 as well as php 8.0 and it doesn’t make any difference

    Can you please take a look? I have added login details and ftp details in the private content area
    As much as possible i would ask if possible to not disable all plugins to test again this aspect because i am actively working on the site. I already tested with all of them disabled. If you do need however please reactivate only the plugins that were enabled before, not all of them.

    Thank you in advance for your help.

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Clau8826
    Clau8826
    Participant
    April 2, 2023 at 10:47

    Hi
    I would like to note that this mostly happens on 404 pages and Search result pages
    On the homepage or other places it loads the elementor widgets fine
    HOWEVER i have had this happen sometimes on the homepage too, yet rarely. Thank you

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 3, 2023 at 13:43

    Hello, Clau8826,

    Please clear cache and check now.

    We have locked the Ajaxify on 404 pages because it requires Elementor scripts that are not loaded on that specific page.

    Kind Regards,
    8theme team

    Avatar: Clau8826
    Clau8826
    Participant
    April 3, 2023 at 14:21

    Hi Rose Tyler
    Thank you i tested and now it’s ok

    Can you give me more details about what you did please?
    Did you change something in the settings that i did not know about? Was this a bug in general or was it something specifically to my site that was causing the issue?
    Will this be something that will be overwritten by future updates of the theme or ?

    I ask because i have 3 licenses purchased, because i want to use your theme on other sites in the near future and i want to know if i need to look for a specific setting or what to do on the future websites

    Thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 3, 2023 at 14:34

    Hello, Clau8826,

    Changes were done to files. Within 1-2 days the new theme update will be released, you need to contact us after the update, so we do the fix on your site one more time.
    The fix will be added globally later because current update already been sent to ThemeForest and just wait for the approval.

    Kind Regards,
    8theme team

    Avatar: Clau8826
    Clau8826
    Participant
    April 3, 2023 at 15:41

    Hi Rose Tyler,

    That is awesome news.
    I see that the new version was just pushed. I updated it now. You can enter whenever you have the time to remake the fix ( it’s not urgent as i will work around it for now with the piece of mind knowing that it was not affecting other ajax functionalities of the shop without me knowing )
    Thank you in advance

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 4, 2023 at 07:20

    Hello, Clau8826,

    Thank you for your response.

    You may apply a patch on any of your websites with the latest version of XStore theme by doing the next steps:
    1/ Go to Dashboard -> XStore Control Panel -> Patcher
    2/ Choose the Patch ID you would like to apply (or choose to Apply all patches) ( https://prnt.sc/i8xYJhsXclZY )

    Note: If you don’t see available patches you may click the “Refresh patches” button to force check all available patches (the list of patches is cached for 1 day on client’s website to prevent infinite requests to server for checking new ones).

    Kind Regards,
    8theme team

    Avatar: Clau8826
    Clau8826
    Participant
    April 4, 2023 at 07:30

    Hi Rose Tyler

    It worked. Thank you very much for your help!

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

The issue related to '‘PHP fatal errors related to lazyload-functions.php’' has been successfully resolved, and the topic is now closed for further responses

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