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

'filename' is not a local file

New Here ,
Sep 29, 2017 Sep 29, 2017

Hi everyone,

I have a website done with Dreamweaver CS6. Each web page refers to files to be included such as .css and .js. In Dreamweaver CS6, those files can be easily opened by clicking on it in the status bar.

However, if I open the very same web site in Dreamweaver CC, there comes an error message "'filename.css' is not a local file", together with a link to download the file from the remote server. If I follow that link, it says 'filename is not on a defined site". (The error messages might be slightly different because I translated them from German to English.)

I tried to export the site from CS6 and import in CC, to no avail.

I know, there was a discussion in 2013 saying the problem will be fixed… but apparently it hasn't or I'm missing something…

Thank you for your help!

1.3K
Translate
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 , Oct 07, 2017 Oct 07, 2017
Translate
Community Expert ,
Sep 29, 2017 Sep 29, 2017

You must define your local site folder in DW CC.

Go to Site > New Site and select the appropriate folder on your hard drive.

CC-localsite.jpg

You Files Panel should resemble this where MyTestSite is the local site folder.

CC-StarterPageAssets.jpg

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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
New Here ,
Sep 30, 2017 Sep 30, 2017

Thank you, Nancy. I did that even before posting my question. The folder is correctly defined, I believe; however, some files are marked with a question mark. They open when I double-click on it (so they're definitively there) but they don't open in the status bar.

Bildschirmfoto 2017-09-30 um 13.27.13.jpg

Bildschirmfoto 2017-09-30 um 13.33.09.png

The problem with that is that some functions like Live View don't work if the file is this way "unavailable".

Any idea?

Translate
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 ,
Sep 30, 2017 Sep 30, 2017

You're working with PHP files.  Do you have a local testing server defined in DW?

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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
New Here ,
Sep 30, 2017 Sep 30, 2017

I had set the local testing server defined as the same path where all the web site files reside. I tried to update that path, then I deleted the testing server setting in the site definition. Both to no avail.

I found that Apache is not working on my Mac any more since the update to El Capitan. On the other hand, I was never using Apache to test the site. Nonetheless, why is it working in CS6 and not in CC???

Translate
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 ,
Sep 30, 2017 Sep 30, 2017

Restore Preferences

Unusual behavior in Dreamweaver? Try restoring preferences.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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
New Here ,
Sep 30, 2017 Sep 30, 2017

I restored preferences. Nothing changed.

Translate
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 ,
Sep 30, 2017 Sep 30, 2017

I can't work with PHP files in Live View unless my Testing Server is running with all PHP & Apache processes.    See screenshots.  This is a contact form with my testing server turned off.   As you can see Live View produces nothing but Design View works.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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
New Here ,
Sep 30, 2017 Sep 30, 2017

Dear Nancy,

thank you so much for your effort!

I'm aware that PHP can't work if there's no server to interpret the scripts. But why doesn't Dreamweaver find the .css files either?

Probably I have to get Apache running so I really have a local test server functioning. DW CC probably relies on that. I think you point into the right direction.

Still it's weird that it works with CS6 fine and not with CC.

Thank you again.

Bernhard

Translate
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
New Here ,
Oct 05, 2017 Oct 05, 2017

Hi,

I set up my local testing server which is working fine now, including SSI, JS, and PHP. The only thing is, the problem with Dreamweaver persists. Nothing has changed.

Thank you for your help,

Bernhard

Translate
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 ,
Oct 05, 2017 Oct 05, 2017

Assuming your testing server is properly defined in DW and all processes are running correctly, you might have a local .htaccess file that's creating conflicts.  Try renaming it to OLD_.htaccess. 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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
New Here ,
Oct 06, 2017 Oct 06, 2017

Did it. No change.
In the meantime I contacted Adobe support about this, they tried out a lot of things (and made me download my whole web site from the remote server, among other things), all of them to no avail.

Translate
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 ,
Oct 06, 2017 Oct 06, 2017

Have you checked the links in the code are correct.

e.g.

You are using document relative file paths, and you should be using root relative file paths?

Translate
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
New Here ,
Oct 06, 2017 Oct 06, 2017

Yes. I clicked on the folder icon next to the link and have DW insert the link with a relative path. Bildschirmfoto 2017-10-06 um 16.24.50.png Still it won't find the file.

Translate
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
New Here ,
Oct 06, 2017 Oct 06, 2017

I tried root relative path. No change.

Translate
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 ,
Oct 06, 2017 Oct 06, 2017

Try inserting the file as root relative, (full file path).

If the file is then not found, it is either a problem with Dw, or possibly something is wrong with the site definition.

Nancy has already suggested recreating preferences, but you could also try deleting the Dw cache -

https://forums.adobe.com/message/2260933

Translate
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
New Here ,
Oct 07, 2017 Oct 07, 2017

Deleted the cache. No change.

Translate
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 ,
Oct 06, 2017 Oct 06, 2017

When you say this...

"I tried to export the site from CS6 and import in CC, to no avail."

...what, exactly, do you mean?

What steps did you take to export from CS6 and import to CC, and what went wrong exactly?

That basic process should be a relatively foolproof way to get a functioning site from CS6 into CC with identical settings.

Translate
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
New Here ,
Oct 07, 2017 Oct 07, 2017

What I meant is that I exported the working site definition file from CS6 and imported it in CC. That was indeed foolproof, the site definition is there. However, the problem I described occurs with CC but not with CS6.

Translate
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 ,
Oct 07, 2017 Oct 07, 2017

Can you open the CSS file in code view?

Does it contain errors?

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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 ,
Oct 07, 2017 Oct 07, 2017

Have you had a look at Re: "file not on the local disk" warning when it absolutely is

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
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
New Here ,
Oct 09, 2017 Oct 09, 2017
LATEST

Thank you very much, Ben! Moving the site folder to a different hard disk solved it.
(I'm sorry, I ​did a research in the forums before I posted but did not find the thread Ben posted.)

Translate
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