• Hi!

    I am using this plugin (should be the official one which was recommended by Corvus) and when I activated it I got this error:

    Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in public_html/wp-includes/functions.php on line 4147

    Warning: Cannot modify header information - headers already sent by (output started at public_html/wp-includes/functions.php:4147) in public_html/wp-admin/includes/misc.php on line 1114

    I’ve tried disabling all the other plugins I have on site, and only this one is making this notice and warning.

    I’m on latest WordPress and using the latest version of WooCommerce.

    Can you fix this issue?

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

    Thread Starter Denis ?oljom

    (@dingo_d)

    I cloned the client site locally where I have Xdebug on and I got the more detailed error

    [29-Apr-2018 09:01:53 UTC] PHP Notice:  register_uninstall_hook was called <strong>incorrectly</strong>. Only a static class method or function can be used in an uninstall hook. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /public_html/wp-includes/functions.php on line 4147
    [29-Apr-2018 09:01:53 UTC] PHP Stack trace:
    [29-Apr-2018 09:01:53 UTC] PHP   1. {main}() /public_html/wp-admin/plugins.php:0
    [29-Apr-2018 09:01:53 UTC] PHP   2. require_once() /public_html/wp-admin/plugins.php:10
    [29-Apr-2018 09:01:53 UTC] PHP   3. require_once() /public_html/wp-admin/admin.php:31
    [29-Apr-2018 09:01:53 UTC] PHP   4. require_once() /public_html/wp-load.php:37
    [29-Apr-2018 09:01:53 UTC] PHP   5. require_once() /public_html/wp-config.php:91
    [29-Apr-2018 09:01:53 UTC] PHP   6. include_once() /public_html/wp-settings.php:305
    [29-Apr-2018 09:01:53 UTC] PHP   7. Cpsi_Init->__construct() /public_html/wp-content/plugins/corvuspay-woocommerce-integration/cpsi.php:302
    [29-Apr-2018 09:01:53 UTC] PHP   8. register_uninstall_hook($file = '/public_html/wp-content/plugins/corvuspay-woocommerce-integration/cpsi.php', $callback = array (0 => class Cpsi_Init { protected $classesAreLoaded = FALSE }, 1 => 'uninstall')) /public_html/wp-content/plugins/corvuspay-woocommerce-integration/cpsi.php:206
    [29-Apr-2018 09:01:53 UTC] PHP   9. _doing_it_wrong($function = 'register_uninstall_hook', $message = 'Only a static class method or function can be used in an uninstall hook.', $version = '3.1.0') /public_html/wp-includes/plugin.php:810
    [29-Apr-2018 09:01:53 UTC] PHP  10. trigger_error('register_uninstall_hook was called <strong>incorrectly</strong>. Only a static class method or function can be used in an uninstall hook. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.)') /public_html/wp-includes/functions.php:4147
    [29-Apr-2018 09:02:57 UTC] PHP Notice:  register_uninstall_hook was called <strong>incorrectly</strong>. Only a static class method or function can be used in an uninstall hook. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /public_html/wp-includes/functions.php on line 4147
    [29-Apr-2018 09:02:57 UTC] PHP Stack trace:
    [29-Apr-2018 09:02:57 UTC] PHP   1. {main}() /public_html/wp-admin/admin-ajax.php:0
    [29-Apr-2018 09:02:57 UTC] PHP   2. require_once() /public_html/wp-admin/admin-ajax.php:22
    [29-Apr-2018 09:02:57 UTC] PHP   3. require_once() /public_html/wp-load.php:37
    [29-Apr-2018 09:02:57 UTC] PHP   4. require_once() /public_html/wp-config.php:91
    [29-Apr-2018 09:02:57 UTC] PHP   5. include_once() /public_html/wp-settings.php:305
    [29-Apr-2018 09:02:57 UTC] PHP   6. Cpsi_Init->__construct() /public_html/wp-content/plugins/corvuspay-woocommerce-integration/cpsi.php:302
    [29-Apr-2018 09:02:57 UTC] PHP   7. register_uninstall_hook($file = '/public_html/wp-content/plugins/corvuspay-woocommerce-integration/cpsi.php', $callback = array (0 => class Cpsi_Init { protected $classesAreLoaded = FALSE }, 1 => 'uninstall')) /public_html/wp-content/plugins/corvuspay-woocommerce-integration/cpsi.php:206
    [29-Apr-2018 09:02:57 UTC] PHP   8. _doing_it_wrong($function = 'register_uninstall_hook', $message = 'Only a static class method or function can be used in an uninstall hook.', $version = '3.1.0') /public_html/wp-includes/plugin.php:810
    [29-Apr-2018 09:02:57 UTC] PHP   9. trigger_error('register_uninstall_hook was called <strong>incorrectly</strong>. Only a static class method or function can be used in an uninstall hook. Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.)') /public_html/wp-includes/functions.php:4147
    

    Hope this helps.

    Thread Starter Denis ?oljom

    (@dingo_d)

    Some additional notices I’m getting in the debug log:

    [30-Apr-2018 08:16:58 UTC] PHP Notice:  Trying to get property of non-object in public_html/wp-content/plugins/corvuspay-woocommerce-integration/classes.php on line 531
    [30-Apr-2018 08:16:58 UTC] PHP Warning:  strpos(): Empty needle in public_html/wp-content/plugins/corvuspay-woocommerce-integration/classes.php on line 532
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  id je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  Trying to get property of non-object in public_html/wp-content/plugins/corvuspay-woocommerce-integration/classes.php on line 411
    PHP Notice:  billing_first_name je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  billing_last_name je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  billing_country je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  billing_email je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  billing_phone je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  billing_city je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  billing_address_1 je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:16:58 UTC] PHP Notice:  billing_postcode je <strong>neispravno pozvan</strong>. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/stockholm/page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, Cpsi_Init->executeShortcode, Cpsi_Shortcodes->runShortcode, Cpsi_Shortcodes->corvusPayCheckout, Cpsi_Shortcodes->_buildRedirectToPaymentGwForm, Cpsi_Shortcodes->_setOptionalFormFields, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Pro?itajte <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> za vi?e informacija. (Ova poruka je dodana u ina?ici 3.0.) in public_html/wp-includes/functions.php on line 4147
    [30-Apr-2018 08:17:35 UTC] PHP Notice:  Trying to get property of non-object in public_html/wp-content/plugins/corvuspay-woocommerce-integration/classes.php on line 411
    [30-Apr-2018 08:17:35 UTC] PHP Notice:  WC_Order::get_order_currency je <strong>uklonjen</strong> od ina?ice 3.0! Umjesto toga, koristite WC_Order::get_currency. in public_html/wp-includes/functions.php on line 3839

    +1

    I have the same problem. Plus, the payment side of the checkout window is stuck loading when plugin is activated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning when activating this plugin’ is closed to new replies.