-
AuthorPosts
-
February 9, 2020 at 12:56 am #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ünterFebruary 9, 2020 at 3:19 pm #1182757Hey 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,
RikardFebruary 10, 2020 at 1:30 am #1182890Yes, 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ünterFebruary 10, 2020 at 5:12 am #1182919Hi,
Did you need additional help with this topic?
Best regards,
Jordan ShannonFebruary 20, 2020 at 2:03 pm #1186359Sorry for the long break!
Thanks, the problem is solved.
GünterFebruary 20, 2020 at 10:21 pm #1186563Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Enfold 4.7.2 and Woocommerce’ is closed to new replies.