Title: PHP Warning: calling get_current_screen()-&gt;base on null
Last modified: February 8, 2022

---

# PHP Warning: calling get_current_screen()->base on null

 *  [John Dorner](https://wordpress.org/support/users/jdorner/)
 * (@jdorner)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-calling-get_current_screen-base-on-null/)
 * In tinymce-advanced.php line 364 in the `show_version_warning()` method
    `get_current_screen()`
   may return `null`
 * Therefore, you should check if `get_current_screen() != null` before using `get_current_screen()-
   >base`
 *     ```
       if( null == get_current_screen() ) {
           return;
       }
       ```
   
 * This happens if wp_editor is used in an ajax response.
 * Hope this helps,
    John

The topic ‘PHP Warning: calling get_current_screen()->base on null’ is closed to
new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [John Dorner](https://wordpress.org/support/users/jdorner/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/php-warning-calling-get_current_screen-base-on-null/)
 * Status: not resolved