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:
- The topic ‘Cannot redeclare class MostLikedPosts’ is closed to new replies.