• Resolved zeeg

    (@zeeg)


    I’m having what seems to be a scoping issue with register_activation_hook (per my last hour of Googling).

    Upon switching over from checking $_GET for activation, to register_activation_hook I now end up with a cannot redeclare class error upon activation.

    Upon researching this particular issue, everything I’ve read says it’s an issue with the variable not being declared as global, but that is not the case in my situation.

    https://svn.wp-plugins.org/lifestream/trunk/lifestream.php

    Quick response would be appreciated!

    I’ve also noticed, that if I use __FILE__ for the activation hook path, it never executes.

Viewing 1 replies (of 1 total)
  • Thread Starter zeeg

    (@zeeg)

    Turns out it was just a typo in the code for the lifestream_update() function call.

Viewing 1 replies (of 1 total)
  • The topic ‘register_activation_hook problem’ is closed to new replies.