• Hi,

    I’m writing a plugin right now and this is driving me a little insane. I did a search and it looks like I’m having the same problem as this guy, but he never got a response.

    Basically I have a line like this in my code —

    register_activation_hook(__FILE__, ‘arg_issues_install’);

    But each time I tried to activate the plugin I got an error saying that an existing function in the same file can’t be declared twice. Sometimes the error doesn’t appear, but either way, my function is simply not being called (it’s supposed to create a database table).

    Is there anything I should be looking at?

    Thanks!

Viewing 1 replies (of 1 total)
  • It seems to happen when an “exit” or “die” is hit during execution of the registered function. I’m still trying to figure out how to abort installation and return some nice error to the user.

    So, figure out which “exit” is hit …

Viewing 1 replies (of 1 total)
  • The topic ‘Activation hook either not called or causes fatal error’ is closed to new replies.