Title: function &#8216;TransferOutBeforeUpgrade&#8217; not found or invalid function name
Last modified: November 27, 2019

---

# function ‘TransferOutBeforeUpgrade’ not found or invalid function name

 *  [milovanbem](https://wordpress.org/support/users/milovanbem/)
 * (@milovanbem)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/function-transferoutbeforeupgrade-not-found-or-invalid-function-name/)
 *     ```
       PHP message: PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'TransferOutBeforeUpgrade' not found or invalid function name in wp-includes/class-wp-hook.php on line 288
       PHP message: PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'TransferInAfterUpgrade' not found or invalid function name in wp-includes/class-wp-hook.php on line 290
       ```
   
 * This is an error I am getting on version 4.4.17.
    Here is a fix (file: Functions/
   Version_Upgrade.php):
 *     ```
       add_filter('upgrader_pre_install', 'UPCP_SetUpdateOption', 10, 2);
       add_filter('upgrader_pre_install', 'UPCP_TransferOutBeforeUpgrade', 10, 2); 
       add_filter('upgrader_post_install', 'UPCP_TransferInAfterUpgrade', 10, 2);
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/function-transferoutbeforeupgrade-not-found-or-invalid-function-name/#post-12183201)
 * Hi Milovanbem,
 * Thanks for letting us know about the error, we’ll test the fix you suggested 
   and then release an update shortly.

Viewing 1 replies (of 1 total)

The topic ‘function ‘TransferOutBeforeUpgrade’ not found or invalid function name’
is closed to new replies.

 * ![](https://ps.w.org/ultimate-product-catalogue/assets/icon-128x128.png?rev=1805317)
 * [Ultimate Product Catalog](https://wordpress.org/plugins/ultimate-product-catalogue/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-product-catalogue/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-product-catalogue/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-product-catalogue/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-product-catalogue/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/function-transferoutbeforeupgrade-not-found-or-invalid-function-name/#post-12183201)
 * Status: not resolved