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.

7 thoughts on “The document type “php” will not be added because it uses a file extension that is already associated with a prior document type”

  1. 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.”

  2. 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

  3. 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!

  4. Incredible, useful information rW. And I could not find the information anywhere but here.

    Thanks,
    Trey

  5. 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:

    Thanks alot for this great info.. you are a life saver 😀

Leave a Reply