Title: PHP Deprecated Error
Last modified: March 20, 2023

---

# PHP Deprecated Error

 *  [Adam](https://wordpress.org/support/users/panhead/)
 * (@panhead)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-error-7/)
 * Hey [@brianbrey](https://wordpress.org/support/users/brianbrey/)
 * Got this error message today on my site. I’m using PHP **8.0**.28, so it seems
   some things have changed:
 * > **Deprecated**: Required parameter $post follows optional parameter $field 
   > in **/wp-content/plugins/easy-load-more/includes/lib/class-easy-load-more-admin-
   > api.php** on line **281**
 * I was able to get the error message to go away by…
 * Changing this code (line 281):
 *     ```wp-block-code
       public function display_meta_box_field ( $field = array(), $post ) {
       ```
   
 * To this:
 *     ```wp-block-code
       public function display_meta_box_field ( $post, $field = array() ) {
       ```
   
 * Let me know if this helps, or if there’s a better way to do this!
    -  This topic was modified 3 years, 2 months ago by [Adam](https://wordpress.org/support/users/panhead/).
      Reason: clarity

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

 * ![](https://s.w.org/plugins/geopattern-icon/easy-load-more.svg)
 * [Easy Load More](https://wordpress.org/plugins/easy-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-load-more/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [load more](https://wordpress.org/support/topic-tag/load-more/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [Adam](https://wordpress.org/support/users/panhead/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-error-7/)
 * Status: not resolved