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

I have an Ubuntu 16.04 LAMP server running Wordpress and vsftpd.
I am running Dreamweaver CS6 from my Windows 7 PC on the same LAN and have configured as follows:
Site
Site Name: Wordpress
Local Site Folder: C:\Users\<myuser>\documents\wordpress
Servers
Server Name: Wordpress
Connect using FTP
FTP Address: 192.168.1.17
Username: wordpress
Password: <password>
Testing Server
Server Model: PHP MySQL

The development and testing server are one and the same.

I am attempting to edit a Wordpress theme so I have selected the theme's index.php from the remote server and I can successfully view the code. When I click "Live View" in Dreamweaver I get the message "This page may have Dynamically-related files that can only be discovered by the server" and I'm prompted to click "Discover". When I do this a message is returned "Dynamically-related files could not be resolved because of an internal server error. Retry"

I don't understand what this error means or how to get Live View to work.
ClintonKAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
First off, editing a WordPress theme will certainly end in disaster.

If you edit an actual theme, WordPress has no way of knowing you've done this. When WordPress auto or manually installs theme updates, your modifications will likely be overwritten + lost.

https://codex.wordpress.org/Child_Themes provides a starting point for developing Child Themes, which is the correct way to change theme behavior... so your changes survive parent theme updates.

Also, there's no way to design a WordPress theme in Dream Weaver.

You can change theme files + Dream Weaver has no way to preview a theme, as this requires a running WordPress stack.

Likely a better approach is to just pull up the Child Theme file you're working on - functions.php or CSS or whatever file - into a text editor + make your edits + save with a normal FTP client.

Likely Dream Weaver is confused + thinks it can make sense of what your doing + really can't so there's no real way to resolve this.

For example, if Dream Weaver understands enough PHP or HTML or CSS to notice some external asset reference (file or URL), then it has correctly notified you...

"This page may have Dynamically-related files that can only be discovered by the server" and I'm prompted to click "Discover".

Which means Dream Weaver knows it can't do anything with a file having many external references.

So the real fix is, Avoid using Dream Weaver when working on WordPress themes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ClintonKAuthor Commented:
Thanks. Since posting the question I have read about the dangers of editing a Wordpress theme and they are just as you state - parent theme is updated and the changes made go out of the window.
Dreamweaver does seem a bit over the top for what I'm trying to do if it doesn't really understand Wordpress. I suppose all I need is a decent html editor and as you say, just copy the files back and forth using FTP. A quick Google of html editors brings back a ton of them. Is there an editor you could recommend?
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Dream Weaver == Over the top. You're correct.

Likely best you do some searching + find a file editing approach good for you. I things very old school, in one of two ways.

1) I host 100s of high speed, high traffic, client sites. When I edit files, I ssh into a machine or LXD container + use vi for file editing.

2) If I have to edit files on a system with no ssh access, I mount an FTP connection as a local disk + then use vi for file editing again.

Way old school.
0
ClintonKAuthor Commented:
Thanks. I'm going to stop fighting with Dreamweaver and take your advice to simplify things and find myself a nice HTML editor.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.