• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Live View not rendering .php

Explorer ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

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?

Views

274

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 10, 2023 Feb 10, 2023

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

...

Votes

Translate

Translate
Community Expert ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

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.

 

CC-testingServer1.jpgCC-testingServer2.jpgCC-testingServer3.jpgCC-testingServer4.jpgCC-testingServer-final.jpg

 

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

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

Does the original file reside on your local testing server?

Does it contain valid code?

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 10, 2023 Feb 10, 2023

Copy link to clipboard

Copied

Thanks Nancy for the reply. I use xampp instead but have the setup exactly the same as you show above. The code is validated and shows no errors. the problem started with the original file challenge.php which would not render in live view. I  simply saved the file to a new file challengetest.php. That works perfectly in live view. I then deleted the original file challenge.php. Gone! Then I did a save-as from challengetest.php to  the original file name challenge.php. When I did the the new challenge.php would not render either. Challengetest.php still works correctly! There is something about the file name itself that causes the problem. Like some remnents of the file that remain after file deletion. Like cookies or something somewhere. I have already tried clearing the cache file but that did not solve anything.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 10, 2023 Feb 10, 2023

Copy link to clipboard

Copied

Sometimes that happens, regardless of what editor you are using, not often but in mysterious circumstances. 

 

Have you tried copying the actual code from the original file and inserting that into a completely new file, saving it with the old file name?

 

If it drags on too long l usually just end up renaming the file if that doesn't cause too much extra work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 10, 2023 Feb 10, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2023 Feb 10, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 10, 2023 Feb 10, 2023

Copy link to clipboard

Copied

Jon - you're a genius! That did it! Thanks a bunch!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2023 Feb 10, 2023

Copy link to clipboard

Copied

LATEST

I never understood why Adobe decided to give Live View a memory of any kind. It just seems counterproductive. 

Glad it worked.

I believe the problem comes from the files in the "Cef" folder (inside the Configuration folder). If you run into issues in the future, you can test renaming that one first. It should leave the rest of your settings alone anyway.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines