• Resolved Square Eye

    (@squareeye)


    Hello – we updated the plugin to 1.4.3 on several sites (hosted on Kinsta) this morning and are now getting fatal errors in the WP dashboard:

    2023/03/16 05:51:34 [error] 72471#72471: *94133 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Kinsta\Cache_Purge::purge_complete_full_page_cache() in /www/installname/public/wp-content/plugins/fresh-forms-for-gravity/fresh-forms-for-gravity.php:254

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Samuel Aguilera

    (@samuelaguilera)

    @squareeye That points to a function no longer available in the Kinsta Cache plugin. I don’t have access to a Kinsta account to check it, if you’re willing to provide me access to a staging site hosted at Kinsta I would be happy to debug it. If so you can find my email here.

    In the meantime, as a temporary fix you can remove the following lines from the fresh-forms-for-gravity.php file:

    	// Kinsta Cache.
    	if ( class_exists( 'Kinsta\Cache' ) && is_object( $kinsta_cache ) ) {
    		// $kinsta_cache object already created by Kinsta cache.php file.
    		$kinsta_cache->kinsta_cache_purge->purge_complete_full_page_cache();
    	}

    After removing that you would need to manually purge Kinsta cache after the plugin activation.

    I’m also experiencing a fatal error after plugin update.

    I manually removed the plugin. Reinstalling and activating failed with the following error:

    Fatal error: Uncaught Error: Non-static method WP_Optimize_Cache_Commands::purge_page_cache() cannot be called statically in /public_html/wp-content/plugins/fresh-forms-for-gravity/fresh-forms-for-gravity.php:242 Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(308): fffg_purge_all_cache('') #1 /public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #2 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /public_html/wp-admin/plugins.php(194): do_action('activate_fresh-…') #4 {main} thrown in /public_html/wp-content/plugins/fresh-forms-for-gravity/fresh-forms-for-gravity.php on line 242

    The site is using the WP Optimize plugin.

    I’m also using this plugin on another site which uses W3 Total Cache, and that is working fine.

    Plugin Author Samuel Aguilera

    (@samuelaguilera)

    @castoruk Please manually install the development version which includes a fix for WP-Optimize. It’s working fine for me, can you please confirm it does for you?

    Hi @samuelaguilera

    Yes, that appears to work. Thanks for the quick turnaround.

    Plugin Author Samuel Aguilera

    (@samuelaguilera)

    @squareeye Can you please try the?development version?which includes a change that should fix the fatal error for Kinsta Cache and report back?

    Thread Starter Square Eye

    (@squareeye)

    Thanks so much @samuelaguilera and sorry not to come back to you yesterday. That seems to work fine now – much appreciated! Should we install this one on our other sites, or wait for the next update to push?

    Plugin Author Samuel Aguilera

    (@samuelaguilera)

    @squareeye Thanks for confirming the development version is working fine for you.

    I’ll deploy a new stable version containing the fix very soon, in the meantime if you need to install it on a new site you can use the development version.

    The code that triggers the fatal error runs only on plugin activation, so it shouldn’t affect any site already running Fresh Forms.Therefore there’s no need to upgrade existing installations with the development version, you can wait for the stable version.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error with v 1.4.3’ is closed to new replies.