• Resolved amathusn

    (@amathusn)


    A few 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 Monarch plugin in the error message so I attempted to deactivate it, but got the error message again

    I tried purging the cache and got the same error. I’m using a Divi Child Theme.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter amathusn

    (@amathusn)

    The code around the relevant lines in the file is this..
    69 } else if ( class_exists( ‘LiteSpeed_Cache’ ) ) {
    70 // LiteSpeed Cache
    71 $litespeed = LiteSpeed_Cache::get_instance();
    72 ” !== $post_id ? $litespeed->purge_post( $post_id ) : $litespeed->purge_all();

    Thread Starter amathusn

    (@amathusn)

    Following the information on the other question on this topic I changed the monarch file code to read
    The code around the relevant lines in the file is this..
    69 } else if ( class_exists( ‘LiteSpeed_Cache’ ) ) {
    70 // LiteSpeed Cache
    71 $litespeed = LiteSpeed_Cache_Purge::get_instance();
    72 ” !== $post_id ? $litespeed->purge_post( $post_id ) : $litespeed->purge_all();

    And this seems to have fixed it.

    Leaving this open so that you are aware of the issue.

    • This reply was modified 6 years, 8 months ago by amathusn.
    Plugin Support Hai Zheng⚡

    (@hailite)

    Thanks. I will update this post once we work out a solution with divi team.

    Plugin Support Hai Zheng⚡

    (@hailite)

    Please try v1.1.4 for the compatibility fix

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