We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5532
    • 251 Posts
    Hi There,

    I have a weird issue on a site I’ve upgraded to 1.0.3. Because the site is live, I decided to perform the upgrade locally, test it, then upload it to the server. After successfully upgrading and testing the site, I uploaded the site to the server. But when the site is viewed the links are trying to connect to the local MAMP domain, there are no content images and no CSS applied to the pages - just content and markup.

    I can’t quite workout what is causing the issues - it just seems weird that the upgraded site works perfectly locally but fails when on the server.

    I’ve tried the following:
    - Quit MAMP
    - Reset Safari and Firefox
    - Restarted my machine
    - Used the same .htaccess file as the old site (they look identical anyway)
    - Tested the site on another computer on the same network
    - Reset DNS on our internal server
    - Tested the site at a different location/network
    - Checked permissions on the images folder

    Not sure how to trouble shoot this - I’m sure it’s simple and has something to do with the .htaccess file maybe?

    Any help would be much appreciated

    Cheers



      • 5532
      • 251 Posts
      Have triple checked the .htaccess files and the one for the new site is identical to the old one:

      # For full documentation and other suggested options, please see  
      # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions  
      # including for unexpected logouts in multi-server/cloud environments  
        
      Options +FollowSymlinks  
      RewriteEngine On  
      RewriteBase /
        
      # Fix Apache internal dummy connections from breaking [(site_url)] cache  
      RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]  
      RewriteRule .* - [F,L]  
        
      # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin  
      #RewriteCond %{HTTP_HOST} .  
      #RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]  
      #RewriteRule (.*) http://www.example.com/$1 [R=301,L]  
        
      # Exclude /assets and /manager directories from rewrite rules  
      RewriteRule ^(manager|assets) - [L]  
        
      # For Friendly URLs  
      RewriteCond %{REQUEST_FILENAME} !-f  
      RewriteCond %{REQUEST_FILENAME} !-d  
      RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]  
        
      # Reduce server overhead by enabling output compression if supported.  
      php_flag zlib.output_compression On  
      php_value zlib.output_compression_level 5 

        • 8609
        • 607 Posts
        Some suggestions:

        1. Did you check the paths in your manager config?
        2. Did you clear your site cache after completing the migration

          • 5532
          • 251 Posts
          I have the new site in a subdirectory on the server and can login - everything looks fine.

          I’ve triple checked that:
          - The resource and file manager paths are correct
          - That I can see and browse for images in the content areas - which I can

          I’m sure this is a simple mistake that I’ve made a long the way...

          Will retrace my steps again
            • 5532
            • 251 Posts
            Good old clearing the cache - so obvious!

            Thanks you so much Mary!!!!

            Cheers

            Ben
              • 8609
              • 607 Posts
              wink

              That one’s caught me out a few times! Glad I could help.
                • 5532
                • 251 Posts
                If I haven’t thanked you already, thanks for the series of site tutorials over at http://www.codingpad.com/. They’re a great Modx resource.

                Cheers

                Ben