WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cannot redeclare class (2 posts)

  1. Robert Chapin
    Member
    Posted 4 years ago #

    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?

  2. Robert Chapin
    Member
    Posted 4 years ago #

    Got it sorted.

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.