Title: Recent update causing PHP error
Last modified: June 20, 2020

---

# Recent update causing PHP error

 *  Resolved [MarjoriesDaughter](https://wordpress.org/support/users/marjoriesdaughter/)
 * (@marjoriesdaughter)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/recent-update-causing-php-error/)
 * The following only shows up in the dashboard on posts between the Add Media and
   the Add Form buttons.
 * Deprecated: media_buttons_context is deprecated since version 3.5.0! Use media_buttons
   instead. in /wp-includes/functions.php on line 5088
 * This error started showing up 6/5/20 after the update. I tracked the error back
   through wp-includes and wp-admin/includes/media.php, which are the WordPress 
   core’s code to throw the error.

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

 *  Plugin Contributor [Justin McElhaney](https://wordpress.org/support/users/jmcelhaney/)
 * (@jmcelhaney)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/recent-update-causing-php-error/#post-13069516)
 * I am unable to replicate this issue when using the Gutenberg page editor. You
   are most likely seeing this issue due to your theme or a page builder calling
   the deprecated modal function that is still included in Ninja Forms that has 
   not been updated due to WordPress moving to the Gutenberg page editor. I have
   created an issue for this in our system for our developers to look into it.
 *  [eduardoescdel](https://wordpress.org/support/users/eduardoescdel/)
 * (@eduardoescdel)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/recent-update-causing-php-error/#post-13223852)
 * The warning is due to the use of the deprecated filter [media_buttons_context](https://developer.wordpress.org/reference/hooks/media_buttons_context/)
   in this file:
 * **ninja-forms/includes/Admin/AddFormModal.php: line 12**
 * Wordpress 5.4.2
    Ninja Forms 3.4.24.3
    -  This reply was modified 5 years, 10 months ago by [eduardoescdel](https://wordpress.org/support/users/eduardoescdel/).
 *  [Ced](https://wordpress.org/support/users/cedriccharles/)
 * (@cedriccharles)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/recent-update-causing-php-error/#post-13532322)
 * Hello there !
 * Same here. I don’t use any page builder and my theme is not using the old modal
   function. I’m not using Gutenberg, I’m using Classic Editor.
 * Thank you in advance,
    Cedric

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

The topic ‘Recent update causing PHP error’ is closed to new replies.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 4 participants
 * Last reply from: [Ced](https://wordpress.org/support/users/cedriccharles/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/recent-update-causing-php-error/#post-13532322)
 * Status: resolved