Support » Plugins » Cannot redeclare class

  • Resolved Robert Chapin


    I’m writing my first object-oriented plugin, and every time I try to activate it, WordPress shows me a PHP error that says Cannot redeclare class. What’s going on?

Viewing 1 replies (of 1 total)
  • Got it sorted.

    In case anyone has the same problem in the future, using $this and $self interchangeably is bad, mmmkay.

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot redeclare class’ is closed to new replies.