Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nalle Jacobsson 32 posts 55 karma points
    Feb 17, 2010 @ 10:40
    Nalle Jacobsson
    0

    Errors - Module trying to compress images!?

    It seems like the module is trying to compress my images?! I get an error in my eventlog for every image the browser loads, example:

    ---

    Request URL: http://dev/media/2689/logo.jpg

    type=System.Web.HttpException

    message=Server cannot append header after HTTP headers have been sent.

    stack=
       at System.Web.HttpResponse.AppendHeader(String name, String value)
       at PeterD.Compress.HttpModule.context_PostReleaseRequestState(Object sender, EventArgs e)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    ---

    If I edit the config file to exclude all my directories with images (like the media dir), the problem goes away. But why is this happening, how can I fix it?

     

    /N

     

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 17, 2010 @ 11:08
    Peter Dijksterhuis
    0

    Hi,

    what is the OS your server is running?

    Are you using .net 2 or .net 3.5 to run your site?

    What does your PeterDCompress.config file look like?

    I vaguely remember seeing the same, but not sure. With the info I asked, I can try to investigate the problem.

    Regards,

    Peter

  • Nalle Jacobsson 32 posts 55 karma points
    Feb 17, 2010 @ 18:11
    Nalle Jacobsson
    0

    It's Windows 2003 Server and .NET 3.5

    IIS has been set up for friendly URLs according to these instructions:

    http://our.umbraco.org/wiki/install-and-setup/setting-up-umbraco-for-friendly-urls

    config file looks like this:

    ---

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <configSections>
        <sectionGroup name="PeterD">
        <section name="Compress" type="PeterD.Compress.Configuration, PeterD.Compress"/>
        </sectionGroup>
      </configSections>
      <PeterD>
        <Compress  compressionType="GZip" FrontEnd="true" BackEnd="true">
          <IncludedMimeTypes>
            <add mime="text/html" />
          </IncludedMimeTypes>
          <ExcludedPaths>
            <add path="umbraco/plugins/tinymce3/" />
            <add path="standard" />
            <add path="umbraco/users/PermissionEditor.aspx" />
          </ExcludedPaths>
        </Compress>
      </PeterD>
    </configuration>

    ---

    Thanks!

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 17, 2010 @ 23:33
    Peter Dijksterhuis
    0

    Ok, I've seen the same error, however, it occured only once on my system so far (only for 1 image on the whole site, a gif-image).

    It appears to be the first image being loaded after a compressed file. Does it happen to all of your images on the site? 

    I'll try to investigate more.

     

  • Nalle Jacobsson 32 posts 55 karma points
    Feb 18, 2010 @ 03:19
    Nalle Jacobsson
    0

    Yes, it's happening all over the site. Both for images in the media dir and other Umbraco dirs.

    On my local machine running Win 7 and the Visual Studio dev server everything works fine though, no errors.

    Thanks for looking into it.

    Maybe I'll check out the source code and see if I can find something there.

Please Sign in or register to post replies

Write your reply to:

Draft