anødine
Forum Replies Created
-
Hi!
I have the same issue. Do not get it…Forum: Plugins
In reply to: [Polylang Theme Strings] register_uninstall_hook was called incorrectlySame error.
I tried to borrow others things, but almost sure that the issue comme from here.
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 /Applications/MAMP/htdocs/anodine/wordpress/wp-includes/functions.php on line 4161
Changing
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');generate an other issue – PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘Install’ not found or invalid function name.
And that normal cause this function exists only on $this object.
BUT if i Change $this for __class__ as said rajolalaina upper, but for two lines, it works in local but not on server.
Bye!