Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1215102

    Hi
    I have fatal error whe I want to go to menu appearance -> customize :-(
    apeared after the update, problem below :

    Fatal error: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type()
    in ]wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 563
    Call stack:

    Avia_Gutenberg::can_use_block_editor()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:423
    Avia_Gutenberg::init_force_classic_post_types()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:458
    Avia_Gutenberg::get_force_classic_post_types()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:533
    Avia_Gutenberg::force_classic_editor()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:661
    Avia_Gutenberg::handler_display_post_states()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/plugin.php:206
    apply_filters()
    wp-admin/includes/template.php:2170
    get_post_states()
    wp-includes/nav-menu.php:823
    wp_setup_nav_menu_item()
    array_map()
    wp-includes/nav-menu.php:749
    wp_get_nav_menu_items()
    wp-includes/class-wp-customize-nav-menus.php:734
    WP_Customize_Nav_Menus::customize_register()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-includes/class-wp-customize-manager.php:928
    WP_Customize_Manager::wp_loaded()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-settings.php:562
    require_once()
    wp-config.php:91
    require_once()
    wp-load.php:37
    require_once()
    wp-admin/admin.php:34
    require_once()
    wp-admin/customize.php:13

    • This topic was modified 2 weeks, 1 day ago by  MarioAli.
    #1215184

    When I off Classic Editor, and turn on Gutenberg, problem gone.
    in my opinion it shouldn’t be like this, it should work on both
    Have nice day

    #1215393

    Hi,

    Sorry for the problem. What happens if you disable the Classic Editor plugin and activate the Classic Editor in the main page of the theme options instead?

    Best regards,
    Rikard

    #1217997

    when i do like you sad i have the same problem and another error below

    Fatal error: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type()
    in /home/platne/serwer15058/public_html/ursus/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 563

    Call stack:

    Avia_Gutenberg::can_use_block_editor()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:423
    Avia_Gutenberg::init_force_classic_post_types()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:458
    Avia_Gutenberg::get_force_classic_post_types()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:533
    Avia_Gutenberg::force_classic_editor()
    wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:661
    Avia_Gutenberg::handler_display_post_states()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/plugin.php:206
    apply_filters()
    wp-admin/includes/template.php:2170
    get_post_states()
    wp-includes/nav-menu.php:823
    wp_setup_nav_menu_item()
    array_map()
    wp-includes/nav-menu.php:749
    wp_get_nav_menu_items()
    wp-includes/class-wp-customize-nav-menus.php:734
    WP_Customize_Nav_Menus::customize_register()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-includes/class-wp-customize-manager.php:928
    WP_Customize_Manager::wp_loaded()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-settings.php:562
    require_once()
    wp-config.php:90
    require_once()
    wp-load.php:37
    require_once()
    wp-admin/admin.php:34
    require_once()
    wp-admin/customize.php:13

    #1218320

    Hi MarioAli,

    Are you running the latest version (4.7.5) of the theme? If not then please try updating to that: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update

    Best regards,
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.