Support » Plugin: Photo Reviews for WooCommerce » There has been a critical error on your website.

  • Resolved Goagago

    (@goagago)


    i’ve instal this plugin yesterday and got an error in my site, This error only occurs on article pages. I debug it and found this :

    Fatal error: Uncaught Error: Call to undefined function is_ajax()
    xxxxxxxxx
    xxxxxxxxx
    xxxxxxxxx
    " />
    There has been a critical error on your website.
    
    Learn more about debugging in WordPress.

    hope someone can help.. thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kimvt1991

    (@kimvt1991)

    Hi,
    Please add this to the end of file plugins/woo-photo-reviews/includes/functions.php :

    if ( ! function_exists( 'is_ajax' ) ) {
    
    	/**
    	 * Is_ajax - Returns true when the page is loaded via ajax.
    	 *
    	 * @return bool
    	 */
    	function is_ajax() {
    		return function_exists( 'wp_doing_ajax' ) ? wp_doing_ajax() : defined( 'DOING_AJAX' );
    	}
    }

    Regards

    Thread Starter Goagago

    (@goagago)

    @kimvt1991 thank you very much kim, it works very well!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘There has been a critical error on your website.’ is closed to new replies.