• Resolved maddentim

    (@maddentim)


    So, a while back, I reported and issue and Janis followed up on it, but I never closed the loop. I am still seeing similar errors. I would have updated the other ticket, but it is closed now. Here is an example of the error from today:

    2020-01-18T03:18:34+00:00 CRITICAL Uncaught Error: Call to undefined function use_block_editor_for_post_type() in /home/bt_admin/prod/wp_us/wp-admin/includes/class-wp-screen.php:329
    Stack trace:
    #0 /.../wp-admin/includes/template.php(2481): WP_Screen::get('post')
    #1 /.../wp-content/plugins/raw-html/include/screen-options/screen-options.php(101): convert_to_screen('post')
    #2 [internal function]: wsScreenOptions14->page_to_screen_id('post')
    #3 /.../wp_us/wp-content/plugins/raw-html/include/screen-options/screen-options.php(77): array_map(Array, Array)
    #4 /.../wp-includes/class-wp-hook.php(288): wsScreenOptions14->populate_page_panels(Object(WP_Screen))
    #5 /.../wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
    #6 /.../wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #7 /h.../wp-admin/includes/class-wp-screen.php(412): do_action('current_screen', Object(WP_Screen))
    #8 /.../wp-admin/includes/class-wp-screen.php on line 329
    

    Here are Janis suggestions:

    1. Make sure that the “Classic Editor” plugin is up to date. I’ve seen reports that older versions of this plugin had a bug that could cause similar fatal errors.
    2. If the site is still running the Gutenberg plugin, try deactivating it. It’s no longer necessary in WP 5.2.
    3. It sounds like this file could be out of date: /wp-admin/includes/post.php. Can you check if it contains a function named use_block_editor_for_post_type? If it doesn’t then the file probably didn’t get updated properly when installing WP 5.2. Try reinstalling WP 5.2.
    4. Finally, there’s a small chance that it could be a caching issue. Try clearing the PHP opcode cache and/or restarting the web server.
    1. Classic editor is up to date.
    2. No Gutenburg
    3. The /wp-admin/includes/post.php file is there and I don’t think it is out of date. The use_block_editor_for_post_type function is also there. WP has been updated a time or two since this first cropped up and the update replaces everything as I understand it.
    4. The site uses wp super cache. It has been clear many times.

    So it remains a mystery. I don’t like the error keeps recurring, but I am not sure what the consequence of the error even is. I have not run into it when edit as far as I am aware. Let me know if I should try anything else. I will try to be more responsive.

    • This topic was modified 6 years, 3 months ago by maddentim.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Fatal Error’ is closed to new replies.