6 Replies Latest reply: Oct 30, 2010 9:05 PM by Al Sparber RSS

    Changed file names, now can't update files

    Budo Cat Community Member

      Help!!!!  I switched the names of my files this morning to the domain name that I've purchased. Doing so, however, appears to prevent me from updating my pages. Now, when I click on Modify>Library>Update Page, I get a message that reads, "Error Acessing file... file not found (error code -43)" .

       

      I *think* the problem is with the template name. The 60 pages that I first designed were built on the original  template name, "2000." All of these pages continue to say "Templates/2000_template.dwt" at the top of the pages, as this snippet shows:

       

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/2000_template.dwt" codeOutsideHTMLIsLocked="false" -->
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <!-- InstanceBeginEditable name="doctitle" -->.

       

       

      I'm guessing that, because I have changed the name of the template (as well as the file it's stored in), the child pages will not recognize the new template and subsequently not allow me to update the page.

       

      How do I get out of this fix? I can't change the template name on each page, as it's in a noneditable region. Do I have to backstep and rename all of my files to the original (and now incorrect) name I was working off of?

       

      Thanks to anyone who can help.

        • 1. Re: Changed file names, now can't update files
          Zabeth69-YATPtk Community Member

          Hey, Budo Cat,

           

          What do you mean that you have changed your file names to match your domain name? Usually, pages sit within the domain, they don't bear the domain name itself.

           

          Regarding actually changing filenames, you are best advised to do that in the Files Panel in Dreamweaver, so that DW can keep track of links, etc.

           

          The actual name of the Template is immaterial. When you cast child pages from a Template, you give each of them a new name. Dreamweaver keeps track of which pages are made by which Template.

           

          Why are you moving Templates out of the Templates folder? Beware; there be dragons...

           

          I do think you will have to re-rename your pages to match what Dreamweaver thinks they are. Then, don't change page names anywhere but in the Files Panel.

           

          Do you have a link so we can see what you are working with?

           

          Beth

          • 2. Re: Changed file names, now can't update files
            Budo Cat Community Member

            Hi Beth,

             

            Frankly, I don't know what I did.I didn't rename the template, at least I don't think I did. I was trying to rename some of the files that hold the pages for the website. I got a new domain name, not the once that I thought I was going to use, so I was just trying to make everything consistent. I thought I could just rename files like I would in a wordprocessing program.

             

            Now, I can't I can't modify>update my files. Dreamweaver says "2000," the origianl file name, doesn't exists. Says there's no template, although I can plainly see it in the files. I don't know what/where Derameweaver thinks

             

            I speant hours trying to backtrack and fix my error, but couldn't figure out what to do. I've decided to just define a new site, copy the css page and what I can of the 60 or so HTML files. I dread the thought of starting over.  But at least I have a general idea of what to do.

             

            Thanks for helping out.

            • 3. Re: Changed file names, now can't update files
              mhollis55 CommunityMVP

              I think that what you may have done is either change the filename for your template outside of Dreamweaver or you have broken the link to the template.

               

              I do rename some templates on my websites to keep things neat, as sometimes I "inherit" websites that are poorly constructed. I have two that are entirely tables-based and they are five-fingered boogers (the kind you can't just flick off easily). These tend to come complete with clients who don't want to pay to have their websites redesigned. No extra charge for that option.

               

              You can try doing a Modify>Templates>Apply Template to page for all of your pages and it might help a lot to automate that: Open a page that needs to be attached to your template, Go to Commands>Start Recording, pull down Modify>Templates>Apply Template and choose the template, stop your recording then pull down Commands>Play recorded command for each page you need to reattach the renamed template to.

               

              Another cause here is that you may have inadvertently changed the path to the template. If you do renaming and moving from within Dreamweaver the links to templates are not supposed to break -- but sometimes this does happen.

              • 4. Re: Changed file names, now can't update files
                Budo Cat Community Member

                Well, I don't know what I did, beyond making a big mess and a lot of work for myself. I think I have finally backed out of the mess, and have my pages talking to each other again. But in doing so, I have created a phantom CSS page.

                 

                Once I renamed my template and moved it back into position, I had to link the template to CSS. That got all the pages squared away, but now at the top of Dreamweaver, just below the Code, Split and Design, I have three tabs that read:

                 

                Source Code     layout css    layout css

                 

                The first and third tabs are valid. But when I click on the second tab, I get a long yellow strip that says,

                 

                " 'layout.css' cannot be found. If the file exists on the server, use the Files panel to get the file from the server. (close)"

                 

                Is there a way *safely* get rid of this tab? I've tried right-clicking on it, but it won't let me. After what I've already been through, I'm reluctant to try anything else lest I blow up my site again.

                • 5. Re: Changed file names, now can't update files
                  Al Sparber Community Member

                  If layout.css is listed twice that probably means you have it linked

                  twice in the code of your document. Look in the head region of your

                  page's source code for a duplicate link. Make sure you delete the

                  duplicate with the incorrect file path.

                   

                   

                  --

                  Al Sparber - PVII

                  http://www.projectseven.com

                  Dreamweaver Menus | Galleries | Widgets

                  http://www.projectseven.com/go/hgm

                  The Ultimate Web 2.0 Carousel