jasonaburton jasonaburton - 28 days ago 15
PHP Question

Dynamically-related files could not be resolved because of an internal server error - Dreamweaver CS5 Error

I am building a Wordpress website in Dreamweaver CS5 and am also using MAMP for my PHP/MySQL needs.

The problem is that when I create a new Wordpress site in Dreamweaver (I have an existing Wordpress template), and I open the index.php file, it asks me if I want to discover any other files that are dynamically related to the index.php file. I click "Discover", then I get this error: "Dynamically-related files could not be resolved because of an internal server error."

My MAMP document root is: /Users/Burton/Sites/

In the document root I have a sub-directory called Wordpress where all the Wordpress files (including my theme) are stored

In Dreamweaver I created a new site and here are the settings for it and the server:

Site Name: Test Site
Local Site Folder: /Users/Burton/Sites

Server Name: Local Testing
Connect Using: Local/Network

Server Folder: /Users/Burton/Sites
Web URL: http://localhost:8888/Wordpress

Server Model: PHP MySQL
Testing: On (Make it a test server)

Going to the site via a web browser is fine, I can see the template and everything. I can edit the site in Dreamweaver and see the changes made in the browser, but I want Dreamweaver to discover those other files so I can do Live View in Dreamweaver, but this error is preventing me from doing it.

I've looked at countless tutorials and visited many forums but no one has the answers...

Anybody out there have idea what is causing this?

Thanks!

Answer

This happens with DW and WordPress sites because WordPress doesn't use normal include calls but instead does this dynamically based on what the user is doing at the time. DW cannot handle that complexity in design view and chokes on it, displaying the message that you see.

Comments