When I change my theme I'm getting this error:
Fatal error: Cannot redeclare __popular_posts() (previously declared in MY WEBSITE URL \wp-content\themes\twentyeleven\functions.php:791) in MY WEBSITE URL\wp-content\themes\twentyeleven\functions.php on line 1032
I've read some info about how to solve this, but who can tell me WHY this error appears?
One solution is to remove all lines about popular_posts in file functions.php, but what is the purpose of that code in the first place? Display posts with most responses in the sidebar I guess?
And when I remove all lines about popular posts from that file, activate theme, put all lines back into that file, the error appears again. This happens with all my themes, so I think somethings wrong in core WordPress files?