Menu

mysterious error (Apache2?)

Help
Anonymous
2003-04-15
2012-10-11
  • Anonymous

    Anonymous - 2003-04-15

    Hi,

    I have installed phpwiki 1.3.4 on my linux with
    Apache 2.0.44
    PHP 4.3.1
    MySQL 3.23.41

    I can install the database and initialize ist. But when I call the index.php in my browser I get a lot of unreadable hex characters.
    When I start the php standalone the result is an correct HTML-page.
    I think the problem is the LANG or CHARATER setting, but I have no idea what I can do.
    Is there an problem with Apache 2?

    Thanks for any help
    Steffen

     
    • Russell McOrmond

      I have seen the same problem.  If I try to access the same URL with 'wget' or 'lynx' I see the page without a problem, but with Mozilla I see garbage.

      I came to the forum today to try to see if anyone else had seen this problem, and found a solution.

       
    • Russell McOrmond

      Seems the problem relates to the flush() function.  If you go into display.php and comment out the flush() calls then things look OK.

      I suspect eithor PHP or Apache has an uninitialized variable somewhere.

       
    • NemoN

      NemoN - 2003-05-15

      same problem here, i comment out flush(), but no change. i analyzed the raw stream:

      this is the gziped index.php, the i unzip this file, it looks fine :/

      this must be a problem of phpwiki & apache2, beause others sites with active mod_gzip etc looks fine.

       
    • Anonymous

      Anonymous - 2003-06-17

      I think this is the same problem I had. If so, you need to edit /lib/display.php

      There are two lines in the code which say:

      header("Content-Type: text/html; charset=" . CHARSET);

      Try adding inserting this line before both of those:

      header("Content-Encoding: gzip");

      -PH

       
    • Paul Handly

      Paul Handly - 2003-11-10

      Another fix is to fiddle with the "COMPRESS_OUTPUT" option - define it to 'false' in index.php and that should fix the problem without monkeying with display.php

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.