Title: Optional parameter $output declared before required parameter $post_type
Last modified: April 12, 2023

---

# Optional parameter $output declared before required parameter $post_type

 *  Resolved [Steve Truman](https://wordpress.org/support/users/a3rev/)
 * (@a3rev)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/optional-parameter-output-declared-before-required-parameter-post_type/)
 * Hello Support,
 * I have checked the forum and I don’t see this has been posted.
 * My clients site is running WordPress 6.2, the current version of your plugin 
   2.26.0 and the server is running PHP 8.1
 * The Query Monitor Plugin is showing this PHP Error (Depreciated)
 * Message:
 * Optional parameter $output declared before required parameter $post_type is implicitly
   treated as a required parameter
 * Count: 1
 * Location:
    1. wp-content/plugins/give/includes/misc-functions.php:2593
    2. `Give\ServiceProviders\LegacyServiceProvider->includeLegacyFiles()`
       wp-content/
       plugins/give/src/ServiceProviders/LegacyServiceProvider.php:23
    3. `Give\ServiceProviders\LegacyServiceProvider->register()`
       wp-content/plugins/
       give/give.php:434
    4. `Give->loadServiceProviders()`
       wp-content/plugins/give/give.php:275
    5. `Give->init()`
       wp-includes/class-wp-hook.php:308
    6. `do_action('plugins_loaded')`
       wp-settings.php:486
 * Nothing urgent –
 * Thanks for your great plugin
 * Steve

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

 *  [stephanieliy](https://wordpress.org/support/users/stephanieliy/)
 * (@stephanieliy)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/optional-parameter-output-declared-before-required-parameter-post_type/#post-16648700)
 * Hi [@a3rev](https://wordpress.org/support/users/a3rev/),
   Thanks for sending this
   along! I’d like to see if I can replicate these in a sandbox, could you send 
   along the system information for the site? I’ll use that to help configure my
   sandbox, and then I’ll be able to go from there. You can do this by navigating
   to Donations > Tools > System Info (tab) and clicking the button to “Get System
   Report” and copy/paste that into your reply here.I appreciate that you shared
   these!
 *  Plugin Support [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * (@matheusfd)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/optional-parameter-output-declared-before-required-parameter-post_type/#post-16653267)
 * Hey, [@a3rev](https://wordpress.org/support/users/a3rev/).
 * It’s been a while since we’ve heard back, and I know troubleshooting needs a 
   little extra time. I’m marking this as resolved for now, but if you still have
   questions, you can send them along right here, and I’ll be happy to hop back 
   in. Have a great day!

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

The topic ‘Optional parameter $output declared before required parameter $post_type’
is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/optional-parameter-output-declared-before-required-parameter-post_type/#post-16653267)
 * Status: resolved