Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1182669

    I updated from enfold 4.6.2 via FTP to 4.7.2 (in WP ver. 4.9.13). That ended with the fatal error:

    Fatal error: Uncaught Error: Call to undefined function AviaGutenberg() in 
    .../httpdocs/wp-content/themes/enfold/config-woocommerce/woo-loader.php:13 
    Stack trace: #0 .../httpdocs/wp-content/themes/enfold/functions.php(646): require_once() 
    #1 .../httpdocs/wp-settings.php(426): include('/var/www/vhosts...') 
    #2 .../httpdocs/wp-config.php(118): require_once('/var/www/vhosts...') 
    #3 .../httpdocs/wp-load.php(37): require_once('/var/www/vhosts...') 
    #4 .../httpdocs/wp-admin/admin.php(31): require_once('/var/www/vhosts...') 
    #5 ...httpdocs/wp-admin/plugins.php(10): require_once('/var/www/vhosts...') 
    #6 {main} thrown in /var/www/vhosts/ ... /httpdocs/wp-content/themes/enfold/config-woocommerce/woo-loader.php on line 13

    When solving the problem I worked with enfold theme, not a child theme. All plugins disabled. The error appears as soon as Woocommerce (ver. 3.7.1) is activated.

    After commented out in the /wp-content/themes/enfold/config-woocommerce/woo-loader.php:

    if ( class_exists( 'WooCommerce' ) && function_exists( 'WC' ) && version_compare( WC()->version, '3.5.7', '>=' ) )
    {
    	require_once( 'config.php' );
    /* Comment START
    	if( 'block' == AviaGutenberg()->selected_editor() )
    	{
    		require_once( 'class-avia-wc-block-editor.php' );
    	}
     Comment END */
    }
    else
    {
    	require_once( 'config-356.php' );
    }

    the site works again. I also find no option in Enfold Settings to choose the editor.

    Regards
    Günter

    #1182757

    Hey Günter,

    That likely happens because the Gutenberg block editor is not included in the version of WordPress you are running. Is there a reason why you don’t want to update to WordPress 5.x.x?

    Best regards,
    Rikard

    #1182890

    Yes, there was a reason. My premium plugin “SUMO Subscriptions” was not yet fit for WP 5+. Now I have seen that with the last update on January 27th SUMO resolved this Problem. I’m going to upgrade to WP 5.3.x now.

    Best regards
    Günter

    #1182919

    Hi,

    Did you need additional help with this topic?

    Best regards,
    Jordan Shannon

    #1186359

    Sorry for the long break!
    Thanks, the problem is solved.
    Günter

    #1186563

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Enfold 4.7.2 and Woocommerce’ is closed to new replies.