Tagged: Gutenberg
-
AuthorPosts
-
June 11, 2020 at 6:36 pm #1221863
How do I fix the following? Looks to be a gutenberg issue in the theme.
Subject: [Phillips Murrah P.C.] Your Site is Experiencing a Technical Issue
Howdy!
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.
First, visit your website (https://phillipsmurrah.com/) and check for any visible issues. Next, visit the page where the error was caught (https://phillipsmurrah.com/2018/10/alfa-international-video/?autoupdater_nonce=1591231606755) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
https://phillipsmurrah.com/wp-login.php?action=enter_recovery_mode&rm_token=7D2axu2WKns6V5hmHNcEkw&rm_key=GCc5SkRyhoHkPsZB1jP0oz
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.4.1
Current theme: Enfold Child (version 1.0)
Current plugin: (version )
PHP version 7.4.6Error Details
=============
An error of type E_ERROR was caused in line 563 of the file /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php. Error message: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:563
Stack trace:
#0 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(423): Avia_Gutenberg->can_use_block_editor(‘post’, true)
#1 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(458): Avia_Gutenberg->init_force_classic_post_types()
#2 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(533): Avia_Gutenberg->get_force_classic_post_types()
#3 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(671): Avia_Gutenberg->force_classic_editor(‘page’)
#4 /nas/content/live/phillipsmurrah/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, Object(WP_Post))
#5 /nas/content/live/phillipsmurrah/wp-includes/plugin.php(206)[Wed Jun 10 02:06:43.086262 2020] [php7:error] [pid 24624] [client 35.196.56.56:49096] PHP Fatal error: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:563\nStack trace:\n#0 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(423): Avia_Gutenberg->can_use_block_editor(‘post’, true)\n#1 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(458): Avia_Gutenberg->init_force_classic_post_types()\n#2 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(533): Avia_Gutenberg->get_force_classic_post_types()\n#3 /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(671): Avia_Gutenberg->force_classic_editor(‘page’)\n#4 /nas/content/live/phillipsmurrah/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, Object(WP_Post))\n#5 /nas/content/live/phillipsmurrah/wp-includes/plugin.php(206) in /nas/content/live/phillipsmurrah/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 563
I updated WordPress to version 5.4.2 today
- This topic was modified 4 years, 5 months ago by mct2ok.
June 12, 2020 at 2:15 pm #1222076Hey mct2ok,
Thanks for the login details. Did you only receive that as an email once? I’m asking since your site seems to be working fine on both the front and backend. Are you experiencing any problems on the site, other that the email you posted here?
If you should get this email again then please try downgrade the PHP version you are running, to 7.3 for example, to see if that makes any difference.
Best regards,
RikardJune 12, 2020 at 3:59 pm #1222115No, I been receiving the email every day for several weeks.
I am not experiencing any other problems that I can see, except for uploading images issue, but I think I fixed that.
I’d rather not downgrade. Is the “disable gutenberg” plugin still an acceptable alternative?June 13, 2020 at 1:20 pm #1222358Hi,
Thanks for the update. You don’t need the disable Gutenberg plugin, but if you want to give it a go then please add this code to your functions.php file:
// disable for posts add_filter('use_block_editor_for_post', '__return_false', 10); // disable for post types add_filter('use_block_editor_for_post_type', '__return_false', 10);
Also, could you try downgrading the version of PHP you are running to see if that makes any difference? I see that you are running 7.4.6, if you could try 7.3 maybe?
Best regards,
RikardJune 15, 2020 at 5:20 pm #1222761Thank you I will give the code a try :)
June 16, 2020 at 6:23 am #1222913 -
AuthorPosts
- You must be logged in to reply to this topic.