-
AuthorPosts
-
September 30, 2020 at 2:52 pm #1249663
I got this error trying to customize Enfold, after some updates (PHP 7.3).
Fatal error: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /home/marcoboz/public_html/vitalyfood.it/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:529 Stack trace: #0 /home/marcoboz/public_html/vitalyfood.it/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(389): Avia_Gutenberg->can_use_block_editor(‘post’, true) #1 /home/marcoboz/public_html/vitalyfood.it/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(424): Avia_Gutenberg->init_force_classic_post_types() #2 /home/marcoboz/public_html/vitalyfood.it/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(499): Avia_Gutenberg->get_force_classic_post_types() #3 /home/marcoboz/public_html/vitalyfood.it/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(627): Avia_Gutenberg->force_classic_editor(‘page’) #4 /home/marcoboz/public_html/vitalyfood.it/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, Object(WP_Post)) #5 /home/marcob in /home/marcoboz/public_html/vitalyfood.it/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 529
October 2, 2020 at 11:54 am #1250024Hey Marco,
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. Also, what exactly are you trying to customise and how?
Best regards,
RikardOctober 2, 2020 at 2:28 pm #1250091This reply has been marked as private.October 3, 2020 at 5:51 am #1250249Hi Marco,
Thanks for giving us admin access.
You’re still using Enfold 4.5.7, please update to the latest version (4.7.6.3) and make sure to have a backup first.Best regards,
NikkoOctober 4, 2020 at 7:26 pm #1250471This reply has been marked as private.October 6, 2020 at 5:47 am #1250693Hi Marco,
I tried it and it works properly. I tried modifying h6 in Advanced Styling and then remove after and it all goes well.
There’s no js error either, it maybe just a caching issue (browser fetching older cached js files)
Can you try to clear the browser cache? or if you’re in Chrome, try to use Incognito mode.Best regards,
NikkoNovember 11, 2020 at 10:45 am #1259811I can confirm I had similar fatal error – after tying to access Appearance > Customise using Kriesi Enfold 4.5.7
/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 529
Before finding this post – I was able to get around the error by accessing Enfold > Theme Options and Changing the <Select your Editor> to Use Block Editor.
I can confirm Upgrading Enfold Parent Theme from 4.5.7 to 4.7.6.4 fixed the issue.
November 11, 2020 at 11:29 am #1259828Hi HuxburyQuinn,
Thanks for confirming that updating to the latest version fixes the issue :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.