Announcement

Collapse
No announcement yet.

Base ref issues with CSS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Base ref issues with CSS

    hi

    For some time we have had an annoying issue with the website affecting customers. Occassionally when a script is executed for search or checkout the returned page loses all styles and stops working.

    When this happens we normally get irrated customers and we have to send them an email asking them to clear their cache and their cookies and that seems to do the trick. This is obviously not ideal.

    I've been doing some digging and found the following in the source code for the search results page when it displayed the error.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> GetGeared.co.uk Search Results</TITLE><BASE HREF="http://www.getgeared.co.uk/productinfo/tests/"><META NAME="ACTINICTITLE" CONTENT="Search Results"><META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">


    You can see that the base href seems to have decided to go off on some random path to somewhere else where there is no style sheet or images.

    I then clear cache and cookies and do the same again and it works fine.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> GetGeared.co.uk Search Results</TITLE><BASE HREF="http://www.getgeared.co.uk/acatalog/"><META NAME="ACTINICTITLE" CONTENT="Search Results"><META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">

    Interestingly I had been looking at a file in
    http://www.getgeared.co.uk/productinfo/tests/

    before I did the search.

    Can any one help me fix this very annoying niggle, any help greatly appreciated.

    Many thanks

    Mark
    <a href="http://www.getgeared.co.uk">GetGeared.co.uk</a>

    #2
    Mark,

    I have tried several different things but have not been able to replicate the problem. It does look like a caching issue on the local PC, but I do not know what could cause this to happen.

    Would be great if we could have some examples as to what customers were doing when this happened, where they were taken etc.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Mark - do you have multi-site? And do you have the test site set up as a separate full site using /productinfo/ as the main folder? And could there be a confusion in script numbers? (i.e. are both 'sites' using the same script ID number?)

      With two sites running on the same server, unless the script numbers are different, then confusion can happen.
      Bill
      www.egyptianwonders.co.uk
      Text directoryWorldwide Actinic(TM) shops
      BC Ness Solutions Support services, custom software
      Registered Microsoft™ Partner (ISV)
      VoIP UK: 0131 208 0605
      Located: Alexandria, EGYPT

      Comment


        #4
        Hi

        There is only one site on the server and it is dedicated to us so no multi-site issues. I seem to be able to replicate this reliably with the following process.

        Try the following steps

        1. Go to GetGeared.co.uk

        2. Select "Textile Gear" from the left hand navigation menu

        3. Select "Winter Jackets" from the horizontal navigation along the top

        4. Select the "Vanucci Ventus III Jacket" at the bottom of the first section
        "Long Motorcycle Jackets"

        5. Click the "Read The Tests" button at the top of the text

        6. This will open a pop up, close the pop up

        7. Now in the search box at the top of the product page search for "205942"
        and click the search button (do not hit enter on the keyboard)

        8. You should see the results page with no images and styles because the
        base href is now pointing at the folder where the jacket tests file is
        stored which is not in acatalog and therefore cannot find the css or images

        Regards

        Mark

        P.S. The same also occurs if you do the above and rather than performing a search you add the jacket to the basket after opening the product test file, you will see that the basket page has lost all formatting and images as well i.e. it is effecting all scripts.
        <a href="http://www.getgeared.co.uk">GetGeared.co.uk</a>

        Comment


          #5
          There is no basehref statement in the popups. I would try adding <BASE HREF="http://www.getgeared.co.uk/acatalog/"> to the popup layout head section and expect that to resolve the problem.
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #6
            No joy

            hi bill

            I'd been thinking the same thing and tried inserting the base href line in the pop ups, but this does not resolve the issue.

            Take a look at this page, agin you need to click on the read the tests button.

            http://www.getgeared.co.uk/acatalog/...le_Jacket.html

            I've added the base href to the header but still get the same issue and I've tried

            <BASE HREF="http://www.getgeared.co.uk/acatalog/">

            as well as

            <BASE HREF="http://www.getgeared.co.uk/acatalog/CycleSpirit_CS0201_Product_Tests.html">

            any thoughts??

            Mark
            <a href="http://www.getgeared.co.uk">GetGeared.co.uk</a>

            Comment


              #7
              Get rid of the page name. The BASE HREF should end at acatalog/

              <BASE HREF="http://www.getgeared.co.uk/acatalog/">

              that all - and it now works for me. Try clearing your cached (temporary internet) files and check it again.
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment

              Working...
              X