Title: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback
Last modified: April 15, 2021

---

# PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback

 *  Resolved [mrx99](https://wordpress.org/support/users/mrx99/)
 * (@mrx99)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/)
 * Hi,
 * does anybody has the same error message in the log file?
 *     ```
       PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Postman' does not have a method 'post_smtp_wpml_admin_notice' in /[...]/wp-includes/class-wp-hook.php on line 298',
       ```
   
 * Br
    Mr.X
    -  This topic was modified 5 years, 1 month ago by [mrx99](https://wordpress.org/support/users/mrx99/).

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

 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14330969)
 * Hi [@mrx99](https://wordpress.org/support/users/mrx99/),
 * Not seen this one before. Can you paste a copy of your Post SMTP diagnostics 
   log in your next reply, please?
 * What problem does this cause?
 * Kind Regards,
    Tim
    -  This reply was modified 5 years, 1 month ago by [Tim](https://wordpress.org/support/users/tneville/).
      Reason: Fix typo
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14331702)
 * Hi
 * do you have WPML less than version 3.9?
 *  Thread Starter [mrx99](https://wordpress.org/support/users/mrx99/)
 * (@mrx99)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14333078)
 * Hi Tim,
    thanks for your reply.
 * Error message is shown as soon as I click on the Post SMTP menu icon from wordpress.
 * `[Sun Apr 18 14:22:01.916575 2021] [proxy_fcgi:error] [pid 20277] [client 77.7.
   YYY.XXX:37650] AH01071: Got error 'PHP message: PHP Warning: call_user_func_array()
   expects parameter 1 to be a valid callback, class 'Postman' does not have a method'
   post_smtp_wpml_admin_notice' in [...]/wp-includes/class-wp-hook.php on line 298'`
 * Br
 *  Thread Starter [mrx99](https://wordpress.org/support/users/mrx99/)
 * (@mrx99)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14333081)
 * Hi yehudah,
 * yes, I am running Version 3.7.1 of WPML and no may to change it.
 * BR
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14333272)
 * Hi,
 * Due to a bug in WPML in versions less than 3.9, Post SMTP will not work for you.
 *  Thread Starter [mrx99](https://wordpress.org/support/users/mrx99/)
 * (@mrx99)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14333307)
 * Hi yehudah,
 * well, looks like it’s working and sending out my emails for me.
    What kind of
   issue is it? Where is the bug?
 * Br
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14333362)
 * Post SMTP is taking over the main mail function: `wp_mail`.
    due to the bug, 
   I mention WPML is making a conflict and “disturbed” Post SMTP from doing a complete
   taking over.
 * The bug is old and was fixed in version 3.9 so I don’t remember when and how 
   it’s happened – just follow the plugin mail log to be sure.

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

The topic ‘PHP Warning: call_user_func_array() expects parameter 1 to be a valid
callback’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [yehudah](https://wordpress.org/support/users/yehudah/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-9/#post-14333362)
 * Status: resolved