Title: Error from admin_notices hook
Last modified: March 30, 2024

---

# Error from admin_notices hook

 *  [jamesdlow](https://wordpress.org/support/users/jamesdlow/)
 * (@jamesdlow)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/error-from-admin_notices-hook/)
 * Hi,
 * We’re getting an error under certain conditions with the latest version of Better
   sharing. It’s because of a dependency on IgnitionDeck which has an issue with
   this line:
 * better-sharing/includes/AddOns/IgnitionDeck/IgnitionDeck.php:431
 *     ```wp-block-code
       public function display_admin_notice( $notice )
       ```
   
 * This function is called by the admin_notices hook which takes no parameters, 
   but the display_admin_notice has a parameter.
 * [https://developer.wordpress.org/reference/hooks/admin_notices/](https://developer.wordpress.org/reference/hooks/admin_notices/)
 * Can you update your version of the IgnitionDeck AddOn to omitts this parameter
   or makes it optional and do a new version of better sharing WordPress plugin?
   The $notice parameter is not even used in the function.
 * Thanks,
 * James

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

 *  Plugin Author [CloudSponge](https://wordpress.org/support/users/cloudsponge/)
 * (@cloudsponge)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-from-admin_notices-hook/#post-17549298)
 * Hi James,
 * We’ve just posted an update to the BetterSharing plugin (v2.6.3). Would you please
   update and confirm that it resolves the issue for you?
 * Thanks for raising this issue to our attention.
 *  Thread Starter [jamesdlow](https://wordpress.org/support/users/jamesdlow/)
 * (@jamesdlow)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-from-admin_notices-hook/#post-17549812)
 * Hi,
 * Yes that fixed the issue we were having. Thank you so much.

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

The topic ‘Error from admin_notices hook’ is closed to new replies.

 * ![](https://ps.w.org/better-sharing/assets/icon.svg?rev=2478164)
 * [Better Sharing](https://wordpress.org/plugins/better-sharing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-sharing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-sharing/)
 * [Active Topics](https://wordpress.org/support/plugin/better-sharing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-sharing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-sharing/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jamesdlow](https://wordpress.org/support/users/jamesdlow/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/error-from-admin_notices-hook/#post-17549812)
 * Status: not resolved