Like This
Cannot redeclare class MostLikedPosts (1 post)

  1. Gyn3r
    Posted 2 years ago #

    So, this is probably not a real issue since why would anyone use more than one ‘like’ plugin, but I thought I should let you know anyway.

    I tried to activate your plugin while also using another ‘like' plugin, WTI Like Post. It seems they both have classes named MostLikedPosts, which generates the following error:

    Fatal error: Cannot redeclare class MostLikedPosts in /my/path/wp-content/plugins/roses-like-this/widget.php on line 116

    It’s good practice to group your functions together in a class to avoid name conflicts with other plugins:




Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Like This
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.