In the WordPress dashboard, it said there was an update for the Google Analytics plugin. I clicked to have it update, which seemed to succeed. After doing this, I tried updating another plugin and got an error (see below). I then tried viewing the site (dashboard or otherwise), and everything gets the same error with no page displayed:
Invalid plugin installation directory. Please verify if the plugin's dir name is equal to "googleanalytics".
In other words, the site is now down because of updating Google Analytics in the WordPress dashboard. How is the above error to be resolved?
Update 1: Upon searching the server for changed files, I found that the code generating this error is in
/wp-content/plugins/googleanalytics/googleanalytics.php. I modified the code to display (for my IP) the path being compared against. Curiously, it would appear the code is searching the string
[omitted]\wp-content\plugins\googleanalytics\googleanalytics.php for the pattern
/\/googleanalytics\// using the
preg_match() function. The function is returning