Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.6

    Error 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, 6 months ago by mct2ok.
    #1222076

    Hey 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,
    Rikard

    #1222115

    No, 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?

    #1222358

    Hi,

    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,
    Rikard

    #1222761

    Thank you I will give the code a try :)

    #1222913

    Hi,

    Thanks for the update. We’ll keep this thread open for you in case you should need any further help from us.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.