• Resolved alanjct

    (@alanjct)


    2 hours ago I updated the plugin and now I’m getting fatal errors when posting, trying to deavctivate plugins and other actions.
    It first mentioned the Bloom plugin in the error message so I deactivated it. Now it is showing another plugin’s file in the error message.
    I tried purging the cache already. The theme I’m using is Extra/Divi Theme.
    I did not try to deactivate the LiteSpeed Cache plugin itself (through cnpanel) since I read that caching plugins are hard-coded.

    Fatal error: Call to undefined method LiteSpeed_Cache::purge_post() in /home/meanwhile/public_html/wp-content/plugins/divi-builder/core/components/init.php on line 72

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    Hi @alanjct,

    Thanks for your feedback. Looks like DIVI is using our old functionality for purge purpose.

    We will give a temporary fix for it, and we have gotten in touch with Divi developer to find a better solution. Hopefully they can update the API calls.

    Thanks,
    Hai

    Thread Starter alanjct

    (@alanjct)

    Great, thank you for the quick response.
    Hopefully you can find a solution with the DIVI team.
    Will the temporary fix be available on this site?

    Plugin Support Hai Zheng?

    (@hailite)

    Can you try to modify /home/meanwhile/public_html/wp-content/plugins/divi-builder/core/components/init.php, change LiteSpeed_Cache::purge_post() to LiteSpeed_Cache_Purge::purge_post() ?

    As we don’t get the latest Divi source code yet, this may be a temporary fix for Divi now.

    Thanks,
    Hai

    Thread Starter alanjct

    (@alanjct)

    Since I reinstalled the bloom plugin in the meantime, I did the change in the bloom source code. However, it looked like this:

    //start
    } else if ( class_exists( ‘LiteSpeed_Cache’ ) ) {
    // LiteSpeed Cache
    $litespeed = LiteSpeed_Cache::get_instance();
    ” !== $post_id ? $litespeed->purge_post( $post_id ) : $litespeed->purge_all();
    //end

    I changed LiteSpeed_Cache::get_instance() to LiteSpeed_Cache_Purge::get_instance() and it seems to be solved now.

    Thank you.

    Plugin Support Hai Zheng?

    (@hailite)

    You are most welcome.

    If you get any further question, please don’t hesitate to let us know.

    Best wishes,
    Hai

    Plugin Support Hai Zheng?

    (@hailite)

    FYI, we will release a new version for backward API compatibility too.

    Thanks for your support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error since last update’ is closed to new replies.