-
AuthorPosts
-
March 11, 2020 at 12:25 am #1192072
Hey Guys,
I updated my enfold theme and got a fatal error in the logging and from the wordpress built-in notification.
I have tried deactivating all plugins, which didn’t make any difference. I have also selected ‘use WP classic editor’ in the theme options but doesn’t make a difference.My site is running on
PHP 7.4.2
Enfold 4.7.3
Woocommerce 3.9.3
WordPress 5.3.2
All other plugins are of the latest version.The WordPress built-in feature sent me the following details:
Error Details
=============
An error of type E_ERROR was caused in line 13 of the file
/public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php.
Error message: Uncaught Error: Call to undefined function AviaGutenberg()
in /public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php:13
Stack trace:
#0 ../public_html/wp-content/themes/enfold/functions.php(646): require_once()
#1 ../public_html/wp-settings.php(497): include(‘/home/deb77506/…’)
#2 ../public_html/wp-config.php(98): require_once(‘/home/deb77506/…’)
#3 ../public_html/wp-load.php(37): require_once(‘/home/deb77506/…’)
#4 ../public_html/wp-admin/admin.php(34): require_once(‘/home/deb77506/…’)
#5 ../public_html/wp-admin/index.php(10): require_once(‘/home/deb77506/…’)
#6 {main}
thrownThe server log lists more several Fatal errors off:
Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function AviaGutenberg()
in /public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php:13
Stack trace:
#0 ../public_html/wp-content/themes/enfold/functions.php(646): require_once()
#1 ../public_html/wp-settings.php(497): include(‘/home/deb77506/…’)
#2 ../public_html/wp-config.php(98): require_once(‘/home/deb77506/…’)
#3 ../public_html/wp-load.php(37): require_once(‘/home/deb77506/…’
#4 ../public_html/wp-blog-header.php(13): require_once(‘/home/deb77506/…’)
#5 ../public_html/index.php(17): require(‘/home/deb77506/…’)
#6 {main}
thrown in /public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php on line 13I hope you can help me to solve this problem.
Regards,
JosMarch 11, 2020 at 6:51 am #1192157Hey Jos,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply. Did you try to downgrade the version of PHP you are using? If not then please try using 7.2 or 7.3 for example to see if that changes anything.
Best regards,
RikardMarch 11, 2020 at 10:12 am #1192178This reply has been marked as private.March 11, 2020 at 1:32 pm #1192264Hi,
Thanks for that. You are getting a 500 internal server error on the URL in private. Could you try to disable that to see if that makes any difference?
To disable WooCommerce carts fragment simply select “Disable Cart Fragmentation” under the WooCommerce section.
https://perfmatters.io/docs/disable-woocommerce-cart-fragments-ajax/
If you can’t get into the backend then please rename the plugin folder via FTP, that will disable all plugins. You can then login and activate WooCommerce again and attempt to disable the option from the link above.
Best regards,
RikardMarch 11, 2020 at 5:40 pm #1192382Hi Ricard,
I installed the perfmatters plugin and disabled the woocommerce cart fragments. The logging on the server mentions stille the same: PHP Fatal error: Uncaught Error: Call to undefined function AviaGutenberg().
Don’t know how futher.Greats,
JosMarch 16, 2020 at 11:47 am #1193444Hello,
Is still get the error! WordPress notifies me too:
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with your theme, Enfold.
What can I do??
Greats,
JpsMarch 18, 2020 at 1:46 pm #1194105Hi,
Sorry for the delay. Are you using the block or Gutenberg editor? Please try to temporarily set the Enfold > Theme Options > Select Your Editor to the second option or the Classic editor.
Best regards,
IsmaelMarch 18, 2020 at 3:35 pm #1194135Hi Ismael,
As mentioned before the ‘use WP classic editor’ in the theme options doesn’t make a difference.
I downgraded Enfold to version 4.6.3.1 and for now is there no fatal error anymore. But after upgrading Enfold it keeps resulting in the fatal error.Best Regards,
JosMarch 23, 2020 at 8:23 am #1195381Hi,
Thank you for the update.
Please try to update the theme again to the latest version, then add this snippet in the functions.php file to disable the plugin configuration.
current_theme_supports( 'avia_exclude_WooCommerce' )
Best regards,
IsmaelMarch 25, 2020 at 1:31 am #1197535Hi,
Updating from Enfold 4.6.3.1 to 4.7.3 is now without an error in the frontend but de host errorlog still list:
Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function AviaGutenberg() in /home/deb77506/domains/livelycollection.com/public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php:13When the twenty twenty theme is activated or woocommerce is disabled this error isn’t raise
Kind regards,
JosMarch 27, 2020 at 6:09 am #1198226Hi,
Thank you for the update.
Are you sure that it’s not an old report? Did you add the above snippet in the functions.php file? The snippet should prevent the execution of the woo-loader.php file and prevent the error.
Best regards,
IsmaelMarch 27, 2020 at 12:50 pm #1198316Yes i am sure. I first updated Enfold , put the snippets in the functions.php (child theme) and afterwards still got the following error:
[Fri Mar 27 11:36:58.893706 2020] [lsapi:error] [pid 3828650:tid 139979007055616] [client 141.138.168.124:42668] [host http://www.livelycollection.com] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function AviaGutenberg() in /home/deb77506/domains/livelycollection.com/public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php:13
March 30, 2020 at 2:28 am #1198980Hi,
Did you place the snippet in the child theme’s functions.php file? If you don’t have a child theme, try to add it around line 18 of the default functions.php file or below this line.
if( isset( $avia_config['use_child_theme_functions_only'] ) ) { return; }
Best regards,
IsmaelMarch 30, 2020 at 9:55 am #1199025Hi Ismael,
Yes, see me previous message! I placed the snippet in the child theme’s functions.php.
What are other options to solve this problem?Kind regards,
JosApril 1, 2020 at 12:19 pm #1199715Hi,
Sorry I missed that info. If you can provide an account for the file server or an FTP account, we’ll try to debug the issue further. Adding that snippet should have prevent the error because it will prevent the woo-loader.php file from loading.
Temporarily, try to edit the parent theme’s functions.php file and remove this code around line 645:
if( ! current_theme_supports( 'avia_exclude_WooCommerce' ) ) { require_once( 'config-woocommerce/woo-loader.php' ); //compatibility with woocommerce plugin }
Best regards,
IsmaelApril 1, 2020 at 8:44 pm #1199875Hi Ismael,
Thanks for your reply.
Temporarily removing the mentioned snippet in the parent theme’s functions.php doesn’t raise the fatal error anymore. However the shop page is now a little bit crunched and the landing page results now in an other error.After installation of Enfold 4.7.4 I got still the fatal error in the server logging. The WP health check says now:
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API call gave the following unexpected result: (500)
There has been a critical error on your website.April 6, 2020 at 4:40 am #1201114Hi,
Thank you for the update.
We temporarily disabled this line of code to prevent the error from occurring, but we got a 403 forbidden error when we try to access the dashboard.
if( 'block' == AviaGutenberg()->selected_editor() ) { require_once( 'class-avia-wc-block-editor.php' ); }
We tried to disable the plugins by renaming the directory but we still we get the 403 error, so it’s probably related to the server. Did you block certain countries’ access to the dashboard?
Best regards,
IsmaelApril 6, 2020 at 12:19 pm #1201203Hi Ismael,
Sorry for that.
Please add your IP address to the <Files wp-login.php> section in the .htaccess file in the public_html directory.Thank you,
Jos
April 10, 2020 at 2:13 pm #1202675Hello,
Can somebody give me support on this subject??
Thanks,
JosApril 14, 2020 at 2:59 am #1203422Hi,
Sorry for the delay. We still can’t access the dashboard. Please temporarily disable the security configuration so that we don’t have to input our IP address in the .htaccess file.
Best regards,
IsmaelApril 14, 2020 at 11:22 pm #1203818Hi,
The security configuration is disabled.
Regards.
JosApril 17, 2020 at 6:54 am #1204606Hi,
Thank you for the update. We didn’t find any errors in the site and the log files aside from a non-critical notice or warning generated from the jquery_diamond_flipbook plugin.
[17-Apr-2020 04:16:58 UTC] PHP Notice: Trying to get property 'post_content' of non-object in /home/deb77506/domains/site.com/public_html/wp-content/plugins/jquery_diamond_flipbook/index.php on line 94 [17-Apr-2020 04:16:58 UTC] PHP Notice: Trying to get property 'post_excerpt' of non-object in /home/deb77506/domains/site.com/public_html/wp-content/plugins/jquery_diamond_flipbook/index.php on line 95
The shop page looks fine as well. Please check the screenshot below.
Screenshot: https://imgur.com/a/FxgxnUY
Best regards,
IsmaelApril 17, 2020 at 8:10 pm #1204770Hi Ismael,
The error still exists!
The previous time you edited the woo-loader.php commenting the following lines:if( ‘block’ == AviaGutenberg()->selected_editor() )
{
require_once( ‘class-avia-wc-block-editor.php’ );
}By uncommenting these lines the error is reintroduced:
2020-04-17T17:56:07+00:00 CRITICAL Uncaught Error: Call to undefined function AviaGutenberg() in /home/deb77506/domains/livelycollection.com/public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php:13
Stack trace:
#0 /home/deb77506/domains/livelycollection.com/public_html/wp-content/themes/enfold/functions.php(646): require_once()
#1 /home/deb77506/domains/livelycollection.com/public_html/wp-settings.php(514): include(‘/home/deb77506/…’)
#2 /home/deb77506/domains/livelycollection.com/public_html/wp-config.php(99): require_once(‘/home/deb77506/…’)
#3 /home/deb77506/domains/livelycollection.com/public_html/wp-load.php(37): require_once(‘/home/deb77506/…’)
#4 /home/deb77506/domains/livelycollection.com/public_html/wp-cron.php(44): require_once(‘/home/deb77506/…’)
#5 {main}
thrown in /home/deb77506/domains/livelycollection.com/public_html/wp-content/themes/enfold/config-woocommerce/woo-loader.php on line 13Please have a look again.
Regards,
JosApril 22, 2020 at 9:40 am #1206092Hi,
Sorry for the delay. We can’t access the dashboard anymore. Did you disable the WordPress account above?
Are you using the block editor? If you’re not using the new builder, you can keep that line of code disabled for now to keep the error from occurring.
Best regards,
IsmaelApril 22, 2020 at 12:19 pm #1206159Hi,
Very strange that you can’t login. I have got a message form auditing system that you did login (see the private content).Keeping the lines of code disabled for now to keep the error from occurring is a temporary work around. It’s not a definite solution.
Please take a look again, to come to a solution. Thanks in advance.Regards,
JosApril 27, 2020 at 7:22 am #1207434Hey!
We found the issue at the very start of the config-gutenberg > class-avia-gutenberg.php file.
$load_gutenberg = version_compare( $wp_version, '5.0', '>=' ); if( ! $load_gutenberg ) { $load_gutenberg = defined( 'GUTENBERG_VERSION' ); } if ( ! $load_gutenberg ) { return; }
The file doesn’t continue because for some reason the version of your WordPress installation is unknown. Please check the dashboard and you should the text “Version unknown” in the lower right corner.
Screenshot: https://imgur.com/a/nzFtXFk
Please try to deactivate the plugins temporarily or download a fresh copy of WordPress, then use it to overwrite the current installation.
Cheers!
IsmaelApril 27, 2020 at 9:52 pm #1207621Hi Ismael,
Thank you to determine the cause of the error.
The reason the version of the WordPress installation was unknown is that in the Shield Security plugin the ‘Mask WordPress Version’ configuration was set. Undoing this setting resolves this error.Thanks again.
JosApril 28, 2020 at 9:42 pm #1207994Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonApril 30, 2020 at 5:57 pm #1208587Hi,
The topic can be closed.Regards,
Jos
April 30, 2020 at 6:03 pm #1208594Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Fatal error caused in enfold/config-woocommerce/woo-loader.php’ is closed to new replies.