Support » Plugin: Polylang Theme Strings » register_uninstall_hook

  • Hello, after plugin update wordpress debug showing error:

    PHP 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.

    problem in file mw-polylang-theme-strings.php:

    register_uninstall_hook($this->Path_Get(‘plugin_file_index’), array($this, ‘Uninstall’));

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same here

    Same here. Installed using composer / wpackagist

    Temporary fix:
    mw-polylang-theme-strings.php

    CHANGE:
    register_activation_hook($this->Path_Get(‘plugin_file_index’), array($this, ‘Install’));
    register_uninstall_hook($this->Path_Get(‘plugin_file_index’), array($this, ‘Uninstall’));

    TO:
    register_activation_hook($this->Path_Get(‘plugin_file_index’), ‘Install’);
    register_uninstall_hook($this->Path_Get(‘plugin_file_index’), ‘Uninstall’);

    • This reply was modified 8 months, 2 weeks ago by scie.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘register_uninstall_hook’ is closed to new replies.