Working solution to Corrupted Site Prefs
So... I struggled for months with a baffling bug regarding the "Related Files" panel in Dreamweaver. With help from respondants & a random inspiration from an unrelated post I finally found the solution. The thread (found here: https://community.adobe.com/t5/Dreamweaver/Incorrect-Related-Files-Showing/m-p/10617592#M54753 ) has an incorrect & innefective solution marked as correct. I've now had my attempt to post the actual solution deleted twice as "spam"
Here is the text of that post containing the actual solution:
I'm gonna protest the marking of the correct answer here. The automated Process to reset the preferences shown in the linked article did not work. That process did not resolve this issue.
The linked article also gives the wrong path to both the Site Prefs files and the Preferences files and makes no mention of deleting them maually or the fact that there will likely be more than one. It also fails to mention that the .Library folder is hidden by default which could be confusing to some & leaves them no clue what to do if it is not effective.
The actual solution was as follows:
1.) Set your finder to show hidden files: https://setapp.com/how-to/show-hidden-files-on-mac
2.) Navigate to: user/Library/Application Support/Adobe/Common/ (.Library is a hidden directory)
3.) There may be multiple data folders here with DW version numbers for names such as 18.0 or 19.0
4.) Copy or move all of these folders to your desktop in case you need any of it later.
5.) Delete or move all of the numbered directories out of the "Common" directory or identify the specific offending directory/file & move or delete it.
The actual file you want to look at is:
user/Library/Application Support/Adobe/Common/[VersionNumber]/Sites/Site Prefs
This file contains the configuration data for all of your Dreamweaver sites.
It can be opened & inspected in a text editor if needed.
6.) Restart
7.) Reconfigure your Dreamweaver site(s) to generate a new "Site Prefs" file
8.) Have a look if you want to see the newly generated Site Prefs file or check its contents.
9.) Test Dreamweaver behavior to see if the problem is resolved.
Having done the automated process many times, with no luck I had to find the offending Site Pref file manually (amongst many), by reading through them looking for references to the the bad location that was causing the problem. I then had to manually trash the whole folder (19.0 in this case) containing the Site Prefs file & re-index all my sites from scratch to stop the problem from reoccurring.
I looked through the newly regenerated file thoroughly to make sure the info was correct. Since the bad file had a mix of good and bad data I wanted to be sure the problem was not persisting anywhere in the doc even though things seemed ok in Dreamweaver.
The answer marked as correct here provides an unrelated statement about network & cloud drives based on some sort of missunderstanding then links to an article describing a process that did not work & gives bad, misleading info. I appreciate the help & resetting the prefs is obviously a valid suggestion but that answer will not solve this problem.
If this happened on my system it will likely happen on others as well. It could be due to migration from one mac or another, the presence of multiple Dreamweaver versions on the same machine, issues with Adobe cloud or bugs in Dreamweaver itself or something else... all common issues.
It would be better to mark this detailed walk-though as the actual correct answer.
