The document type “php” will not be added because it uses a file extension that is already associated with a prior document type
Effects: Dreamweaver 8, Dreamweaver CS3, Dreamweaver CS4.
When I installed the Drupal Extension for Dreamweaver I got the following error:
“The document type “php” will not be added because it uses a file extension that is already associated with a prior document type”
This occurs because you have previously edited the document types file to include .module and .info.
1. Navigate to your dreamweaver folder (C:\program files\adobe\adobe dreamweaver cs4\ or c:\program files\macromedia\dreamweaver 8\)
2. Under configuration\DocumentTypes you should seee a file MMDocumentTypes.xml
3. Remove the entry where you have added .module to the PHP section of the file (do a search for module).
4. Save the file and relaunch Dreamweaver.
1 Comment »
RSS feed for comments on this post. TrackBack URL

This error message also appears when you make a backup of MMDocumentTypes.xml and leave it in the same folder as the original, as explained in Adobe’s KB:
“If you made a backup of the MMDocumentTypes.xml and left it in the Configuration/DocumentTypes folder, you will see multiple warning messages pop up when you launch Dreamweaver that look like this:
‘The Document Type “HTML” will not be added because it uses a file extension that is already associated with a prior Document Type.’
To stop these warning messages, move your backup copy of the MMDocumentTypes.xml file outside the Configuration/DocumentTypes folder. For example, move it to the desktop. You will also get this error message if you have the same file type listed more than once in the MMDocumentTypes.xml.”