Title: PHP Fatal Error
Last modified: January 18, 2020

---

# PHP Fatal Error

 *  Resolved [maddentim](https://wordpress.org/support/users/maddentim/)
 * (@maddentim)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-195/)
 * 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](https://wordpress.org/support/users/maddentim/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-195%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-195/#post-12341142)
 * Please try the [development version](https://downloads.wordpress.org/plugin/raw-html.zip)
   of the plugin if you haven’t done so already. It includes an unreleased patch
   that could help prevent this error.
 *  Thread Starter [maddentim](https://wordpress.org/support/users/maddentim/)
 * (@maddentim)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-195/#post-12363145)
 * OK, thanks. I will try it this weekend and let you know if it helps.
 * Thanks!
 *  Thread Starter [maddentim](https://wordpress.org/support/users/maddentim/)
 * (@maddentim)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-195/#post-12394171)
 * Just following up on this. I deployed the dev version you suggested and the errors
   have stopped. Thanks for your help.
 * Best,
    Tim
 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-195/#post-12394275)
 * That’s good to hear. I’ll release an update that includes this patch soon.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/raw-html.svg)
 * [Raw HTML](https://wordpress.org/plugins/raw-html/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/raw-html/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/raw-html/)
 * [Active Topics](https://wordpress.org/support/plugin/raw-html/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/raw-html/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/raw-html/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-195/#post-12394275)
 * Status: resolved