Skip to main content
Participant
January 6, 2017
Question

Not Found [CFN #0005]

  • January 6, 2017
  • 2 replies
  • 5019 views

When I open a .php file my live view shows this

Not Found [CFN #0005]

But when I view it from the server it shows the page properly

Whats is up with that?

Adobe chat says ask a forum

Anyone know what is going on?

Thanks

This topic has been closed for replies.

2 replies

BenPleysier
Community Expert
Community Expert
January 6, 2017

Patio Dave wrote:

When I open a .php file my live view shows this

Not Found [CFN #0005]

But when I view it from the server it shows the page properly

Whats is up with that?

Adobe chat says ask a forum

Anyone know what is going on?

Thanks

Dave,

This can be caused by a number of factors, namely a problem with servers, .htaccess rules, coding, software versions etc etc.

One thing is for sure, the problem is not caused by Dreamweaver, hence we need to have a look at the ambient.

When you open the file from the server, do you mean the local server or a remote server? Also please elaborate on the framework (if any) that you are using.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Legend
January 6, 2017

Patio Dave wrote:

When I open a .php file my live view shows this

Not Found [CFN #0005]

But when I view it from the server it shows the page properly

Whats is up with that?

Adobe chat says ask a forum

Anyone know what is going on?

Thanks

I dont think 'live view' can handle php files if DW 2017 is anything like the Brackets editor version that its based on. You need to open the page in your browser by setting the path in the browsers url box to where it is located and view 'dynamic' pages that way.

Nancy OShea
Community Expert
Community Expert
January 6, 2017

osgood_ wrote:

I dont think 'live view' can handle php files...

That's just not true.

Your testing server must be defined in your DW Site Definition.

See screenshots.

Servers:

Basic Tab:

Advanced Tab:

Final screen:

Nancy

Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
January 6, 2017

Doesnt that just work like it always worked though when you use 'view in a browser' and not this new live edit feature like Brackets?

If you try to open a php page by clicking the lightning bolt in Brackets editor it asks for the server name but when you enter it, it never finds the page even though the address is correct.

I thought DW was now based on Brackets live edit?

I read in another thread you dont  use live view as it interfes with your server, but never went on to say exactly what you meant by that?

EDITED.

It seems I was completely wrong - been trying for weeks to get live view and php pages to work in Brackets by cllicking the lightning bolt and after some Googling and some experimenting it seems I had 'Enable Experimental Live View' switched on which was throwing an error every time I inserted the Base URL for the projects which use server side files. Once I deactivated the 'Experimental' option and inserted the BASE URL everything worked like a dream.

Plus it gets better as Brackets only injects junk code in your pages code if you have the 'Experimental' option selected so it opens in another browser, like Firefox, not Chrome.

Phewwwy:

This:

<body>

<div class="product_details">

<div class="product_information">

<div class="product_title">

</div>

<!-- end product_title -->

<div class="product_description">

</div>

<!-- end product_description -->

</div>

<!-- end product_information -->

<figure class="product_image">

<h3>Product Image</h3>

</figure>

<!-- end product_image -->

</div>

<!-- end product_details -->

</body>

Becomes this in Firefox:

body data-brackets-id='9'>

<div data-brackets-id='10' class="product_details">

<div data-brackets-id='11' class="product_information">

<div data-brackets-id='12' class="product_title">

</div>

<!-- end product_title -->

<div data-brackets-id='13' class="product_description">

</div>

<!-- end product_description -->

</div>

<!-- end product_information -->

<figure data-brackets-id='14' class="product_image">

<h3 data-brackets-id='15'>Product Image</h3>

</figure>

<!-- end product_image -->

</div>

<!-- end product_details -->

</body>

Happy days.....that's something else sorted out. Another tick for Brackets. I'm flippng back and forth between Brackets, Atom and DW now trying to decide which is best - Brackets and Atom running neck and neck but now I've sorted the 'server' issue out I think Brackets might just be in the lead for now.


You seem to have the mistaken impression that CC 2017 is Brackets and it's not.  Apart from the code engine, it's still very much DW.  It works pretty much as DW always has with some new improvements.

That said, I'm working with a PHP file right now.  See how it looks in Live View?  It does contain HTML code too.  Otherwise it would look like a blank page.  And that's to be expected.

Nancy

Nancy O'Shea— Product User & Community Expert