Fatal error - Media module I keep getting the following error for some reason:


  Fatal error: Cannot redeclare media_views_invalidate_cache() (previously declared in /var/www/html/sitename/sites/all/modules/media/media.views.inc:140) in /var/www/html/sitename/profiles/dkan/modules/contrib/media/media.views.inc on line 140


Is there any reason I'm getting the error?

I'm using Drupal 7.54.
Looks like you have media installed twice. Once as part of your installation profile (or distribution) and once as a 'loose' module. Which I suppose occurred because there was a security update and you did not want to wait for the distribution to update.

Make a backup and remove /sites/all/modules/media. That should solve it.