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.
4 Comments »
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.”
Fantastic information,This is the first time i heard about this. keep it up this good works.
Thanks,
Micheal
Hi rW,
I was also getting the same error ‘The Document Type “HTML” will not be added because it uses a file extension that is already associated with a prior document type’.
I was going crazy because I was unable to figure it out why its coming as I am doing every thing fine. when I removed that copy file(backup file) of MMDocumentTypes.xml the error messages have been fixed. Now its working fine.
Thanks,
Shashank
re: “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”
thanx a lot rW for this information, very usefull!