Linked Javascript and CSS errors

Discussion in 'Apache' started by jpaxtons, Sep 10, 2007.

  1. #1
    Greetings!

    Background: I successfully run Apache on Win2k (2 sites/machines) and on WinXP (2 sites/machines) The XP machines are development where Apache runs as localhost. the w2k are serving pages to the world. ( http://thedce.com in a testing mode )

    The problem:
    I have an additional XP machine where in either localhost or as a remotely accessed machine, the linked files (javascript and CSS) are not served correctly.

    I have checked configurations, compared them with the working machines, all the normal stuff. Been hunting for weeks for the source of this problem.

    The apache error log shows no errors.
    The access log reports serving the same number of bytes as the windows property window shows the file contains, but when they get to the browser, lines at the beginning are missing.

    Notes on trunkated link files

    example: dhtmlXMenuBar.js

    Apache access log reports 25714 bytes served
    Apache error log reports no errors

    Windows properties report file size at 25714 bytes

    In the remote browser (Firefox), a syntax error in the file is reported.
    The file is brought up in the error console viewer, and it is obvious
    that some beginning lines are missing.
    The file is saved locally using the save function on the Firefox error console viewer.
    Windows then reports the saved file as 24714 bytes although, comparing
    the file on the httpd server with the file saved on the remote show the
    remote file is missing the first 150 lines.

    similar results for all linked javascript files


    CSS errors are more complicated.

    A file such as dhtmXMenufoot.css reports errors
    Apache log shows bytes served is the same as the properties file size, 3987

    comparing the source in the remote browser viewer with the original file on the server
    shows:
    the first 2 lines are missing, the first line showing is a fragment: inter;

    The first 10 lines showing are a repeat of the last 10 lines of the file
    The breaks are not at the line boundary, and from inspecting the last
    lines, we see that lnter; is a fragment of -- cursor: pointer;

    the 13th line then exactly matches the 5th line in the original file and
    continues correctly to the end

    Any ideas of where to look?
    What apache module(s) is/are involved?

    Thanks for any direction.

    Paxton Scott
    (you can probably see this behavior at http://dev.thedce.com )
     
    jpaxtons, Sep 10, 2007 IP