From: Shimmie <sh...@sh...> - 2004-01-08 12:09:29
|
Thanks Zot, thats it, problem solved. Should I FAQ this? I am getting now a boat load of warnings though. Is that because I'm on php4.3.2 or just because phpwiki 1.3.7 is still beta? Here are some: lib/Request.php:220: Warning[2]: Cannot modify header information - headers already sent by (output started at /usr/local/www/wiki/lib/Template.php(125) : eval()'d code:6) PHP Warnings lib/WikiDB/backend/PearDB.php:682: Notice[8]: unserialize(): Error at offset 21 of 126 bytes lib/plugin/BackLinks.php (In template 'browse') (In template 'body') (In template 'html'):112: Notice[1024]: 7 Simon. ----- Original Message ----- From: "Zot O'Connor" <zo...@wh...> To: "phpwiki list" <Php...@li...> Sent: Thursday, January 08, 2004 8:59 PM Subject: Re: [Phpwiki-talk] Weird Character Garbage Installation Problem > This looks like the compression problem. > > >From a note I sent to a friend: > > It turns out the issue was not (only at least) gdbm, but > compression on > the outgoing side. > > By editing lib/Request.php, by commenting the lines out, I got > rid of > that garbage out problem. > > I sent that n October. I think if you search the archives back then, > you will see it. > > Found it in version (1.3.2-jeffs-hacks): > > 114 function compress_output() { > 115 //if (function_exists('ob_gzhandler')) { > 116 //ob_start('ob_gzhandler'); > 117 //$this->_is_compressing_output = true; > 118 //} > 119 } > > I think this broke when PHP was upgraded. > > But I do not use that version any more (at least there). > > In a newer version (1.3.5pre) I see the file is greatly changed: > 285 function buffer_output($compress = true) { > 286 if (defined('COMPRESS_OUTPUT')) { > 287 if (!COMPRESS_OUTPUT) > 288 $compress = false; > 289 } > 290 elseif (!function_exists('version_compare') > 291 || version_compare(phpversion(), '4.2.3', "<")) > { > 292 $compress = false; > 293 } > 294 > 295 if (!function_exists('ob_gzhandler')) > 296 $compress = false; > 297 > > > > > On Thu, 2004-01-08 at 01:41, Shimmie wrote: > > Hi everyone, > > > > I've installed everything ok... but when I hit the main page, > > everything comes out in garbled characters. > > > > Have a look at: http://www.scrapegoat.com/wiki/index.php > > Mozilla shows the characters, but IE 6 won't have a bar of it (throws > > an error message). > > > > Php seems to be installed correctly because I can run other scripts > > just fine (including pMachine). > > > > I've got: > > > > php4.3.2RC4 > > FreeBSD: 5.1 RELEASE > > Apache2.0.46 > > phpwiki 1.3.7 > > > > If I telnet directly to the port and request the file (GET > > /wiki/index.php http/1.0), it works a dream and I get: > > > > crunch# telnet localhost 80 > > Trying ::1... > > telnet: connect to address ::1: Connection refused > > Trying 127.0.0.1... > > Connected to localhost. > > Escape character is '^]'. > > get /wiki/index.php http/1.0 > > > > HTTP/1.1 200 OK > > Date: Thu, 08 Jan 2004 09:25:32 GMT > > Server: Apache/2.0.46 (Unix) PHP/4.3.2RC4 > > X-Powered-By: PHP/4.3.2RC4 > > Set-Cookie: PHPSESSID=3a5c3e8ce10cf1d6936df82bcb6139c3; path=/ > > ETag: W/"ff3e6697e7a18b7cc5c8322fc05c1947" > > Last-Modified: Thu, 08 Jan 2004 06:11:36 GMT > > Cache-Control: no-cache > > Expires: Thu, 08 Jan 2004 09:25:14 GMT > > Vary: Cookie > > Connection: close > > Content-Type: text/html; charset=iso-8859-1 > > > > <?xml version="1.0" encoding="iso-8859-1"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <!-- Begin head --> > > <head> > > <meta http-equiv="Content-Type" content="text/html; > > charset=iso-8859-1" /> > > <meta name="robots" content="index,follow" /> > > <meta name="keywords" content="Home Page, ShimmieWiki" /> > > ... > > ... > > > > > > Please help, > > > > Thanks, > > > > Simon. > -- > Zot O'Connor > > http://www.ZotConsulting.com > http://www.WhiteKnightHackers.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > |