Problem solved! From a previous post:
The problem is caused by using virtual() to attach php files.
Dreamweaver will use the virtual function if you set the "Create links Relative To:" Option on the local info tab of your site definition to "Site", change that to "Document" so that Dreamweaver will use the require_once() function instead.