The register_activation_hook() in WordPress looks for the “wp-content/plugins” directory in the plug-in file’s canonical pathname. So, if your files physically live somewhere other than in your WordPress tree, WordPress (PHP) calculates inappropriate paths.
The Solution: Move all your plug-in files into your WordPress tree and the activation hook should start firing.
hey guys,
above solution not work please do something for this solution.
i want to create table when plugin is installed
please help me.
thanks.