15 Replies Latest reply: Nov 5, 2014 9:56 AM by Nancy O. RSS

    Moving pages in DW cs6 files panel destroyed my site!!!

    JuanPablo1881

      So, I'm beyond furious. I'm building my first site in Windows 7 DW CS6. A lot of hours put in. I have about 7 pages done. I just set up my FTP with my hosting service. I was watching a tutorial on uploading files. Every file that was moved was done with the site defined and done within the files panel in DW. Supposedly, doing it this way will automatically update the links and keep everything working fine. This is ********.  I synced my local site to the remote server; things didn't go into the right place on the remote sever, so I moved files in the remote server within the the remote server to the 'public_html' folder.

       

      Okay, I hope this is making sense so far... I'm absolutely furious and can barely read right now. Anyway, I then did a 'get' from the remote onto my local. It was the 404 error page. This created a new folder called 'public_html' in my local which I know is where the files need to go that will actually be seen on the internet. So, in my local, I moved all my html pages into that new 'public_html' folder newly created in the local. Now, DW asked if I wanted to update the links. I said yes, duh, of course I want you to update it you idiot. It them said that it did so... which was ******** because now all the CSS, html, spry, images, etc, have been disassociated from the the html pages, and my index page looks like a drunk monkey on PCP and acid attempted to finger paint it together and created a monstrosity.

       

      I am so angry. I didn't back it up. Not like I'll ever make this mistake again so don't mention it. I looked up the broken links solution, but I don't know how to go about fixing them; I don't know what they're even referring to or how to fix them, so this option is out. I think I need to just delete everything and start from scratch. I am so pissed off right now... hulkishly so. There has to be a better way to do this. Someone who is a master please help me on this. I don't want to take my laptop and rip it in half over my head; then stomp in into the pavement in front of my car; then run it over and over and over with my car until it's so ingrained into the road that its basically disappeared.

       

      I repeat, the site is defined, and I moved all the pages within the files panel in DW. I followed the rules here, and my site got obliterated. I've scoured the internet for a solution before posting. I find it impossible that this hasn't happened to anyone else. Someone please offer a solution here. I'm desperate.

       

      ** This is a copy of the log when I try to move the index.html from local to remote server... every other page was actually alright upon inspection... why is only the index page a drunken monkey portrait? I mean if the index doesn't work the site is worthless.

       

      Started: 11/2/2014 11:49 PM

       

       

      public_html\index.html - Transferring

      public_html\index.html - Put operation successful

      css\stylesheet.css - Transferring

      css\Operatinginstructions.ttf - Transferring

      backgrounds\girl-with-apple.jpg - same - not transferred

      css\stylesheet.css - error occurred

      Fonts\eraserregular\stylesheet.css - same - not transferred

      css\Operatinginstructions.ttf - error occurred

      Fonts\eraserregular\eraserregular-webfont.eot - same - not transferred

      Fonts\eraserregular\eraserregular-webfont.woff - same - not transferred

      Fonts\eraserregular\eraserregular-webfont.ttf - same - not transferred

      Fonts\eraserregular\eraserregular-webfont.svg - same - not transferred

      CSS\mobile.css - same - not transferred

      SpryAssets\SpryMenuBarHorizontal.css - same - not transferred

      SpryAssets\SpryMenuBarDown.gif - same - not transferred

      SpryAssets\SpryMenuBarRight.gif - same - not transferred

      SpryAssets\SpryMenuBarDownHover.gif - same - not transferred

      SpryAssets\SpryMenuBarRightHover.gif - same - not transferred

      SpryAssets\SpryMenuBar.js - same - not transferred

      backgrounds\Logos\Cliff-side-logo.png - same - not transferred

      Connected to Inside Juan Pablo.

       

      File activity incomplete. 2 file(s) or folder(s) were not completed.

      Files updated: 1

      Files skipped: 14

       

      Files with errors: 2

      css\stylesheet.css

      css\Operatinginstructions.ttf

       

      Finished: 11/2/2014 11:49 PM

       

      **Alright... I got the pages to look normal in live view in DW; however, now pushing F12, the page will not load in chrome, as where it used to. Second, all pages look horrible in chrome when looking at them live on my hosting site. Third, I'm defiantly putting my files in the wrong folders in the remote server. I'm pretty sure about that. 

       

      Sincerely and obviously exasperated,

       

      Juan Pablo

        • 1. Re: Moving pages in DW cs6 files panel destroyed my site!!!
          Ben Pleysier CommunityMVP

          Can you give us the link to the remote site?

          • 2. Re: Moving pages in DW cs6 files panel destroyed my site!!!
            Nancy O. CommunityMVP

            Sounds to me like your site definition is not properly defined in DW.  You should NEVER have public_html in your local Files panel.  That must be defined under the remote server.  See screenshots.

            DW-CS6-LocalSiteFolderDef.jpg

            Servers:  Root Directory varies by host.  Commonly used ones are public_html, www, htdocs, html.CS6-remote-site-root-folder.jpg

            Under More Options triangle:

            DWCS6-moreOptions.jpg

             

             

            Nancy O.

            • 3. Re: Moving pages in DW cs6 files panel destroyed my site!!!
              Nancy O. CommunityMVP

              As for fixing your link paths, you might be able to salvage most of this with Find & Replace in Source Code.

               

              Find: <a href="public_html/

              Replace: <a href="


              But first & foremost, get your site definition fixed.  That's the source of your problems.

               

              Then move all your Local site files out of the public_html folder back into local site root folder with your Files panel. 

               

              Delete the public_html folder from your Local Files Panel.

               

              Local Files should resemble this:

              Site - YourSite (C:\YourSite)

                   about.html

                   contact.html

                   index.html

                   services.html

                   +images

                   +scripts

                   +styles

                   +Templates

               

               

               

              Nancy O.

              • 4. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                JuanPablo1881 Community Member

                By link to the remote server do you mean the website?That's insidejuanpablo.com. Or do you mean so that you can see the remote server? I'm sure how to do that, but here's a screen shot of my expanded files panel with the remote server.

                 

                Now,  after cooling down this morning. I tinkered a bit with the local files. The about page was very similar to the index.html page. So I 'saved as' the about page and renamed it index.html. This fixed all my issues in Dream Weaver. I can now F12 all the pages and they show up and function properly when opened in Chrome... but only in DW and off the local. When looking in the local you'll notice that the html pages are duplicated in the local to be in the main site file and under the 'public_html' file. when DW opens the files via F12 it opens it from the 'public_html' folder, and it functions properly. The html files that are under the main site look exactly like they do when accessing them from the web... which is horrible like a drunken monkey . screen shot for DW cs6.PNG

                • 5. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                  JuanPablo1881 Community Member

                  Nancy thanks for the in depth reply. So, i acquired the 'public_html' folder because I ran a 'get' from the remote server of the 404 page to my local; and, instead of putting the 404 in the site directory, it put it in its individual folder titled 'public_html'.

                   

                  Also, when I moved the files from the main site directory to the 'public_.html' folder, the index.html page became broken. All the other pages were okay. The about.html page was very similar to the index.html page so I just 'saved as' the about page into a new index.html, made a few changes, and all was fine in DW; both in live view and via F12.

                   

                  So the site is defined just as you have done so above. However, when I synced the local to the remote things weren't placed in the right place on the remote, and I ended up with the monstrosity you'll see if you go to insidejuanpablo.com.

                   

                  Now what it should look like should be similar to this screen shot... I'll but in the next post

                  • 6. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                    JuanPablo1881 Community Member

                    I am more angry than I was yesterday... something as simple as posting an image my computer refuses to do. It did it for Ben's reply, but I guess posting to images is just out of the damn question!!!!!! I tried as an image from local and even went through the trouble of loading it to an image hosting site. Nope no good. Eff

                    this computer!!! Sorry. This is an absolutely retarded thing to have an issue with. Not being able to post an image. You you kidding me.

                     

                    Sincerely and even more exasperated,

                     

                    Juan Pablo

                    • 7. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                      Nancy O. CommunityMVP

                      This web forum doesn't support attached e-mail files.  Come to the web forum.  Use the camera icon to insert your screenshot.

                       

                      To repeat my earlier reply.  You must NEVER have public_html in your LOCAL SITE FOLDER.  You must move all your web pages out of that folder and into the site ROOT.  Then delete public_html folder from LOCAL site Files panel.

                       

                      REMOTE site = your online web server.

                       

                      Nancy O.

                      • 8. Re: Re: Moving pages in DW cs6 files panel destroyed my site!!!
                        Nancy O. CommunityMVP

                        Change links to external style sheets as shown below:

                         

                        <style type="text/css">

                        @import url("../css/stylesheet.css");
                        @import url("../Fonts/eraserregular/stylesheet.css");
                        </style>

                        <--fonts-->

                        <link href="../Fonts/eraserregular/stylesheet.css" rel="stylesheet" type="text/css" media="only screen">

                        <!-- mobile -->

                        <link href="../CSS/mobile.css" rel="stylesheet" type="text/css" media="only screen and (max-width:800px)">

                        <style type="text/css">

                        <--desktop-->

                        <link href="../CSS/stylesheet.css" rel="stylesheet" type="text/css" media="only screen and (min-width: 801px)">

                         

                         

                        Having said that, I noticed you're using a lot of absolute positioning in your primary layout CSS which is a common newbie mistake.  It will come back to bite you later.  WHY?  Because Positioned elements are removed from the normal document flow.  As such, this is not a good approach for Responsive Web Designs.    My advice is to rebuild your layout without ANY positioning.  You don't need it.  Just use CSS Floats, margins and padding to align elements on screen.  See links below.

                         

                        Responsive Web Design

                        http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/

                         

                        Introduction to CSS Media Queries

                        http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html

                         

                        All About Floats

                        http://css-tricks.com/all-about-floats/

                         

                        Creating your first web site in DW CC -

                        https://helpx.adobe.com/dreamweaver/learn/tutorials/how-to/first-website-part1.html

                         

                         

                        Nancy O.

                        • 9. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                          Herbert2001 Community Member

                          The code, the folder organization, etc. are very messy - I am just being honest here.  I would look at this as a first attempt/iteration, and now that you've learned more about web page coding, I would suggest to start again from scratch. Nancy already pointed out that you should never use any absolutely positioned divs - avoid those unless you really know what you are doing.

                           

                          Some other suggestions:

                          - remove all those empty paragraphs

                          - avoid the use of "align="center" in your html. Use CSS to center text content with text-align:center.

                          - your html structure could be improved quite a lot. Use classes to name sections, headers, etc. (and be consistent how you name things)

                          - avoid @import in your css if you can.

                          - consolidate all your css in one main css file for a site like this

                          - avoid the use of any page-based css. You now have three <style></style> tags in your head. Put all that css in the main external css file.

                           

                          You stumble, you stand up, and try again. Best way to learn things and improve. :-)

                          • 10. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                            bregent CommunityMVP

                            Your remote site is not defined correctly which is the cause of your problems. When viewing remote, you should not be seeing public_html, public_ftp, www, etc.  The remote site definition must point to the public web site root only. You have defined it one level above site root.

                             

                            EDIT: Ok, looks like that's already been discussed - hard to follow this thread

                            • 11. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                              JuanPablo1881 Community Member

                              Hey Nancy, I obviously used the camera  icon to try and upload the screen shot. I worked when replying to Ben and then ceased to work again... come on meow. If the site doesn't support attached e-mail files then how did I get that first screen shot up there. My computer absolutely wouldn't upload the photograph either from the local or from a image hosting service. I'm not retarded. .  Sometimes tech just won't do what it's supposed to do. It happens.

                               

                              If that sounded curt I apologize. Also, I didn't create the directory in the remote server, that was pre-made. The reason I kept the 'public_html' folder in the local is because if I did not, when I synced the local to the remote, the files where coped into the remote's root, not into the remotes 'public_html' where they could actually be viewed on the web. But the main question I have is this: why shouldn't I have a 'Public_html' folder in my local? what harm does it do? If it will make communication with my remote simpler then why shouldn't I do it?

                               

                              Now your second post about absolute positioning, that is something I was thinking about when I did it. I thought it might bite me later. I really appreciate you letting me know about that. It's just hard to get away from it because it looks pretty good all three screen resolutions in DW: full, 800 px wide, and smart phone. I was using relative, but that was annoying when messing with the responsive screen. I'll obviously look into it a lot more now that you've brought it up. Thanks again for your input.

                              • 12. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                                JuanPablo1881 Community Member

                                Wait... what! So how do I correctly define my remote site? I have no idea how to do that Bregent. Any suggestions on how to correct this?

                                • 13. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                                  JuanPablo1881 Community Member

                                  I'll work on making a site wide CSS Herbert. I can't agree with you more on that. It would be much cleaner. The empty paragraphs are residual from adding and deleting content. I'll defiantly clean those up when getting closer to a launch. Thanks a lot for the tips Herbert, I'll work on that stuff.

                                  • 14. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                                    bregent CommunityMVP

                                    > Also, I didn't create the directory in the remote server, that was pre-made.


                                    Yes, we are aware of that.


                                    > The reason I kept the 'public_html' folder in the local is because if I did not, when I synced the local to the remote,

                                    >the files where coped into the remote's root, not into the remotes 'public_html' where they could actually be viewed on the web.


                                    Usually when you have a hosted site you have a server root which contains folders for various resources (scripts, logs, etc) which are not accessible on the web, and you have a public root folder (public_html, www, etc) one level down. DW is NOT able to manage files above the site root. The site MUST be defined at the public site root folder level. When you defined your site incorrectly, you essentially gave DW the wrong location of your site's root folder so it created the links incorrectly. When linked correctly, the folders above site root will not be visible in DW file manager.


                                    >But the main question I have is this: why shouldn't I have a 'Public_html' folder in my local? what harm does it do?

                                    >If it will make communication with my remote simpler then why shouldn't I do it?


                                    The harm it will do is what you've already encountered - your pages will be linked incorrectly. Trust us, it definitely will NOT work. Your site's remote definition must point to the public root, and the local site root must contain the same structure, not pushed into a sub-folder a level down. So when viewed in the file manager, the local and remote structure should look the same.

                                    • 15. Re: Moving pages in DW cs6 files panel destroyed my site!!!
                                      Nancy O. CommunityMVP

                                      So how do I correctly define my remote site? I have no idea how to do that

                                      Did you even look at the screenshots I posted above?  You need to define your Root Directory (public_html) in your Remote Server set-up.  Not in your Local Files Panel.

                                       

                                      Video:

                                      Define a site in Dreamweaver | Adobe Dreamweaver CC tutorials

                                       

                                       

                                      Nancy O.