cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

Fatal error: Cannot declare .... #301

Closed mcanady closed 2 years ago

mcanady commented 2 years ago

I'm getting this error when installing the plugin on a site in which I had an earlier version of this plugin installed. WordPress 5.8 running MH Magazine theme. Any ideas on how to fix?

Fatal error: Cannot declare class ComposerAutoloaderInit2a403b03a84e333364c96d224aa62f5c, because the name is already in use in /home/customer/www/sdbn.org/public_html/wp-content/plugins/wordpress-popular-posts-master/vendor/composer/autoload_real.php on line 5

cabrerahector commented 2 years ago

Hi @mcanady,

Do you have two versions of the WPP plugin installed on your site? Because that'd explain why you're getting this error.

The other possible explanation is that you have another plugin that also happens to have a PHP class named ComposerAutoloaderInit2a403b03a84e333364c96d224aa62f5c (or even a PHP class in your theme) but the odds of that happening are very, very low.

mcanady commented 2 years ago

Thanks! Sorry I got confused, I think I was trying to re-install it. I have another question about your WPP feed plugin, will post on that site.