Title: Update Function Bug
Last modified: February 8, 2017

---

# Update Function Bug

 *  Resolved [supawiz6991](https://wordpress.org/support/users/supawiz6991/)
 * (@supawiz6991)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-function-bug-2/)
 * Hello,
    I wanted to report a bug to you that we discovered and see if perhaps
   you could figure out how this is happening.
 * Plugins Involved:
    Relevanssi Tablepress
 * Symptoms: When both of those plugins are enabled at the same time it causes Windows
   Live Writer to receive and error 500 when try to do anything with the site.
 * What we found: It appears that for some reason the Relevanssi plugin is triggering
   the update functions in class/class-controller.php in the tablepress plugin. 
   When this occurs the $model_options variable (in the update script in tablepress)
   is returning no value (null) as the Relevanssi plugin is triggering it and not
   Tablepress.
 * How did we work around this?:
    Our work around was to add the following null 
   check at lines 78 and 89 in the class-controller.php file in the tablepress plugin:
   if (!isset(TablePress::$model_options)) { return; }
 * Stack Trace:
 * [08-Feb-2017 14:30:17 UTC] PHP Fatal error: Call to a member function get() on
   null in C:\xampp\htdocs\c-flex.dev\wp-content\plugins\tablepress\classes\class-
   controller.php on line 89
 * [08-Feb-2017 14:30:17 UTC] PHP Stack trace:
 * [08-Feb-2017 14:30:17 UTC] PHP 1. {main}() C:\xampp\htdocs\c-flex.dev\xmlrpc.
   php:0
 * [08-Feb-2017 14:30:17 UTC] PHP 2. wp_xmlrpc_server->serve_request() C:\xampp\
   htdocs\c-flex.dev\xmlrpc.php:84
 * [08-Feb-2017 14:30:17 UTC] PHP 3. IXR_Server->IXR_Server($callbacks = *uninitialized*,
   $data = *uninitialized*, $wait = *uninitialized*) C:\xampp\htdocs\c-flex.dev\
   wp-includes\class-wp-xmlrpc-server.php:197
 * [08-Feb-2017 14:30:17 UTC] PHP 4. IXR_Server->__construct($callbacks = *uninitialized*,
   $data = *uninitialized*, $wait = *uninitialized*) C:\xampp\htdocs\c-flex.dev\
   wp-includes\IXR\class-IXR-server.php:35
 * [08-Feb-2017 14:30:17 UTC] PHP 5. IXR_Server->serve($data = *uninitialized*) 
   C:\xampp\htdocs\c-flex.dev\wp-includes\IXR\class-IXR-server.php:27
 * [08-Feb-2017 14:30:17 UTC] PHP 6. IXR_Server->call($methodname = *uninitialized*,
   $args = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\IXR\class-IXR-
   server.php:65
 * [08-Feb-2017 14:30:17 UTC] PHP 7. wp_xmlrpc_server->mw_newPost($args = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-includes\IXR\class-IXR-server.php:115
 * [08-Feb-2017 14:30:17 UTC] PHP 8. wp_insert_post($postarr = *uninitialized*, 
   $wp_error = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\class-wp-
   xmlrpc-server.php:5101
 * [08-Feb-2017 14:30:17 UTC] PHP 9. do_action($tag = *uninitialized*, $arg = *uninitialized*,*
   uninitialized*, *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\post.
   php:3516
 * [08-Feb-2017 14:30:17 UTC] PHP 10. WP_Hook->do_action($args = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-includes\plugin.php:453
 * [08-Feb-2017 14:30:17 UTC] PHP 11. WP_Hook->apply_filters($value = *uninitialized*,
   $args = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\class-wp-hook.
   php:323
 * [08-Feb-2017 14:30:17 UTC] PHP 12. call_user_func_array:{C:\xampp\htdocs\c-flex.
   dev\wp-includes\class-wp-hook.php:300}(*uninitialized*, *uninitialized*) C:\xampp\
   htdocs\c-flex.dev\wp-includes\class-wp-hook.php:300
 * [08-Feb-2017 14:30:17 UTC] PHP 13. relevanssi_insert_edit($post_id = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-includes\class-wp-hook.php:300
 * [08-Feb-2017 14:30:17 UTC] PHP 14. relevanssi_publish($post = *uninitialized*,
   $bypassglobalpost = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\
   relevanssi\lib\indexing.php:637
 * [08-Feb-2017 14:30:17 UTC] PHP 15. relevanssi_index_doc($indexpost = *uninitialized*,
   $remove_first = *uninitialized*, $custom_fields = *uninitialized*, $bypassglobalpost
   = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\relevanssi\lib\
   indexing.php:613
 * [08-Feb-2017 14:30:17 UTC] PHP 16. TablePress::load_controller($controller = *
   uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\relevanssi\lib\
   indexing.php:354
 * [08-Feb-2017 14:30:17 UTC] PHP 17. TablePress::load_class($class = *uninitialized*,
   $file = *uninitialized*, $folder = *uninitialized*, $params = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-content\plugins\tablepress\classes\class-tablepress.
   php:261
 * [08-Feb-2017 14:30:17 UTC] PHP 18. TablePress_Frontend_Controller->__construct(*
   uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\tablepress\classes\
   class-tablepress.php:208
 * [08-Feb-2017 14:30:17 UTC] PHP 19. TablePress_Controller->__construct() C:\xampp\
   htdocs\c-flex.dev\wp-content\plugins\tablepress\controllers\controller-frontend.
   php:37
 * [08-Feb-2017 14:30:17 UTC] PHP 20. TablePress_Controller->plugin_update_check()
   C:\xampp\htdocs\c-flex.dev\wp-content\plugins\tablepress\classes\class-controller.
   php:69
 * Stack Trace #2:
 * [08-Feb-2017 14:31:56 UTC] PHP Fatal error: Call to a member function get() on
   null in C:\xampp\htdocs\c-flex.dev\wp-content\plugins\tablepress\classes\class-
   controller.php on line 78
 * [08-Feb-2017 14:31:56 UTC] PHP Stack trace:
 * [08-Feb-2017 14:31:56 UTC] PHP 1. {main}() C:\xampp\htdocs\c-flex.dev\xmlrpc.
   php:0
 * [08-Feb-2017 14:31:56 UTC] PHP 2. wp_xmlrpc_server->serve_request() C:\xampp\
   htdocs\c-flex.dev\xmlrpc.php:84
 * [08-Feb-2017 14:31:56 UTC] PHP 3. IXR_Server->IXR_Server($callbacks = *uninitialized*,
   $data = *uninitialized*, $wait = *uninitialized*) C:\xampp\htdocs\c-flex.dev\
   wp-includes\class-wp-xmlrpc-server.php:197
 * [08-Feb-2017 14:31:56 UTC] PHP 4. IXR_Server->__construct($callbacks = *uninitialized*,
   $data = *uninitialized*, $wait = *uninitialized*) C:\xampp\htdocs\c-flex.dev\
   wp-includes\IXR\class-IXR-server.php:35
 * [08-Feb-2017 14:31:56 UTC] PHP 5. IXR_Server->serve($data = *uninitialized*) 
   C:\xampp\htdocs\c-flex.dev\wp-includes\IXR\class-IXR-server.php:27
 * [08-Feb-2017 14:31:56 UTC] PHP 6. IXR_Server->call($methodname = *uninitialized*,
   $args = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\IXR\class-IXR-
   server.php:65
 * [08-Feb-2017 14:31:56 UTC] PHP 7. wp_xmlrpc_server->mw_newPost($args = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-includes\IXR\class-IXR-server.php:115
 * [08-Feb-2017 14:31:56 UTC] PHP 8. wp_insert_post($postarr = *uninitialized*, 
   $wp_error = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\class-wp-
   xmlrpc-server.php:5101
 * [08-Feb-2017 14:31:56 UTC] PHP 9. do_action($tag = *uninitialized*, $arg = *uninitialized*,*
   uninitialized*, *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\post.
   php:3516
 * [08-Feb-2017 14:31:56 UTC] PHP 10. WP_Hook->do_action($args = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-includes\plugin.php:453
 * [08-Feb-2017 14:31:56 UTC] PHP 11. WP_Hook->apply_filters($value = *uninitialized*,
   $args = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-includes\class-wp-hook.
   php:323
 * [08-Feb-2017 14:31:56 UTC] PHP 12. call_user_func_array:{C:\xampp\htdocs\c-flex.
   dev\wp-includes\class-wp-hook.php:300}(*uninitialized*, *uninitialized*) C:\xampp\
   htdocs\c-flex.dev\wp-includes\class-wp-hook.php:300
 * [08-Feb-2017 14:31:56 UTC] PHP 13. relevanssi_insert_edit($post_id = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-includes\class-wp-hook.php:300
 * [08-Feb-2017 14:31:56 UTC] PHP 14. relevanssi_publish($post = *uninitialized*,
   $bypassglobalpost = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\
   relevanssi\lib\indexing.php:637
 * [08-Feb-2017 14:31:56 UTC] PHP 15. relevanssi_index_doc($indexpost = *uninitialized*,
   $remove_first = *uninitialized*, $custom_fields = *uninitialized*, $bypassglobalpost
   = *uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\relevanssi\lib\
   indexing.php:613
 * [08-Feb-2017 14:31:56 UTC] PHP 16. TablePress::load_controller($controller = *
   uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\relevanssi\lib\
   indexing.php:354
 * [08-Feb-2017 14:31:56 UTC] PHP 17. TablePress::load_class($class = *uninitialized*,
   $file = *uninitialized*, $folder = *uninitialized*, $params = *uninitialized*)
   C:\xampp\htdocs\c-flex.dev\wp-content\plugins\tablepress\classes\class-tablepress.
   php:261
 * [08-Feb-2017 14:31:56 UTC] PHP 18. TablePress_Frontend_Controller->__construct(*
   uninitialized*) C:\xampp\htdocs\c-flex.dev\wp-content\plugins\tablepress\classes\
   class-tablepress.php:208
 * [08-Feb-2017 14:31:56 UTC] PHP 19. TablePress_Controller->__construct() C:\xampp\
   htdocs\c-flex.dev\wp-content\plugins\tablepress\controllers\controller-frontend.
   php:37
 * Final Words:
 * I’m hoping that you can shed some light on how this is happening and perhaps 
   implement a fix so that the plugins don’t negatively interact.
 * I have notified the Tablepress developers of the issue as well as my workaround.

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

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-function-bug-2/#post-8784234)
 * Is Relevanssi perhaps set to index the TablePress table post type? If it is, 
   does unchecking that option help?
 *  Thread Starter [supawiz6991](https://wordpress.org/support/users/supawiz6991/)
 * (@supawiz6991)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-function-bug-2/#post-8786384)
 * Relevanssi is not set to index TablePress.
 * Here is our code fix which resolved the issue:
    ⌊Fix Code⌉
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-function-bug-2/#post-8788788)
 * Ok, I can add that in Relevanssi.
 *  [biembie](https://wordpress.org/support/users/biembie/)
 * (@biembie)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/update-function-bug-2/#post-9273856)
 * Hi
    I am having the same issue in general with 80% of my plugin updates and also
   re-install. Mostly cannot get past the update failure for woocommerce.

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

The topic ‘Update Function Bug’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [biembie](https://wordpress.org/support/users/biembie/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/update-function-bug-2/#post-9273856)
 * Status: resolved