Skip to main content
Inspiring
February 9, 2023
Answered

Live View not rendering .php

  • February 9, 2023
  • 1 reply
  • 738 views

I have a .php file in Dreamweaver CC called challenge.php that will not render in live view. It works fine in Preview and if I upload it and look at it in a browser it is also working perfectly. If I just copy it to a new file name like challengetest.php everything works fine even in Live View. I then delete the original file in the Files panel and then save the current working file to the old file name the file with the original file name will again not render in Live View.

 

It's as is that original file name is cached somewhere. I've deleted the Dreamweaver cache in the appdata but nothing seems to help.

 

Any ideas?

    This topic has been closed for replies.
    Correct answer Jon Fritz

    Yep - tried that. The new file works perfectly until I save it to that same file name challenge.php and then it crashes in live view.


    Lets blast all cache items in the program by manually deleting the personal Config folder. You 'll need to reset a few personal preferences, but it will kill anything DW has cached in Live View (note, this is different from the Site Cache)...

    1. Close DW

    2. Turn on your operatinig system's Hidden Files

    3. Browse to C > Users > (your username) > AppData > Roaming > Adobe > Dreamweaver (your version) > (your language) 

    4. In that folder ONLY, you'll find the personal Configuration folder.  Rename the Configuration folder to Configuration_old. DO NOT use your browser search function to find the config folder as it will typically bring you to the wrong one and changing the name will stop the program from functioning

    5. Start DW, it will automatically create a clean personal Configuration folder on startup. See if the page functions

    If it doesn't, you can remove the new Configuration folder and restore the old to its original name to save on resetting personal preferences.

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    February 10, 2023

    PHP must be parsed by an actual server, either on the remote site or by a local testing server on your computer as localhost.

     

    I use Wamp server as my localhost.  See screenshots.

     

     

    Hope that helps, Post back if you have any questions.

     

     

    Nancy O'Shea— Product User & Community Expert
    xxxVoodooAuthor
    Inspiring
    February 10, 2023

    Yep - know all that. Use XMPP for local host. Works great on all files except this one. The copy of the file with a different file name works great with the name chnge. Does not work with the original file name.

    Nancy OShea
    Community Expert
    Community Expert
    February 10, 2023

    Does the original file reside on your local testing server?

    Does it contain valid code?

     

    Nancy O'Shea— Product User & Community Expert