From: Sandy M. <mat...@bt...> - 2003-03-30 20:31:10
|
I have just set up the latest CVS version to look at the recent changes in PhpWiki, but all I get on loading the new WIKI is a blank page. The initial set up of pages works correctly, but when I try to access any pages all I get is a blank page. Any ideas as to what I have done wrong? I am using MySQL as the database and am running on Apache. Sandy Matheson |
From: Jeff D. <da...@da...> - 2003-04-01 17:29:19
|
On Sun, 30 Mar 2003 21:26:24 +0100 "Sandy Matheson" <mat...@bt...> wrote: > I have just set up the latest CVS version to look at the recent changes > in PhpWiki, but all I get on loading the new WIKI is a blank page. > > The initial set up of pages works correctly, but when I try to access > any pages all I get is a blank page. > > Any ideas as to what I have done wrong? Try replacing this giant nested if block at the bottom of index.php: if (defined('VIRTUAL_PATH') and defined('USE_PATH_INFO')) { if ($HTTP_SERVER_VARS['SCRIPT_NAME'] == VIRTUAL_PATH) { include "lib/main.php"; } } else { if (defined('SCRIPT_NAME') and ($HTTP_SERVER_VARS['SCRIPT_NAME'] == SCRIPT_NAME)) { include "lib/main.php"; } elseif (strstr($HTTP_SERVER_VARS['PHP_SELF'],'index.php')) { include "lib/main.php"; } } with a simple: include "lib/main.php"; Let us know whether that helps or not... |
From: aphid <me...@ap...> - 2003-04-01 18:04:17
|
On Tuesday, April 1, 2003, at 09:28 AM, Jeff Dairiki wrote: > > Try replacing this giant nested if block at the bottom of index.php: > > [...] > > with a simple: > > include "lib/main.php"; > > > Let us know whether that helps or not... > > I've actually been getting the blank page too since I switched php over to the cgi version.. I tried making the above change and the following happened: It actually loaded the page, but with no CSS. This was at the top of the page: lib/Request.php:240: Warning[2]: session_start() [<a href='http://www.php.net/function.session-start'>function.session- start</a>]: Cannot send session cookie - headers already sent lib/Request.php:240: Warning[2]: session_start() [<a href='http://www.php.net/function.session-start'>function.session- start</a>]: Cannot send session cache limiter - headers already sent lib/display.php:135: Warning[2]: Cannot modify header information - headers already sent This was at the bottom of the page: PHP Warnings lib/config.php:258: Notice[8]: Undefined index: SCRIPT_NAME lib/config.php:276: Notice[8]: Undefined variable: SCRIPT_NAME lib/Request.php:143: Warning[2]: ob_gzhandler() [<a href='http://www.php.net/ref.outcontrol'>ref.outcontrol</a>]: output handler 'ob_gzhandler' cannot be used twice |
From: Jeff D. <da...@da...> - 2003-04-01 18:22:31
|
> I've actually been getting the blank page too since I switched php over > > to the cgi version.. I tried making the above change and the following > happened: > > lib/Request.php:240: Warning[2]: session_start() [<a > href='http://www.php.net/function.session-start'>function.session- > start</a>]: Cannot send session cookie - headers already sent > > lib/Request.php:240: Warning[2]: session_start() [<a > href='http://www.php.net/function.session-start'>function.session- > start</a>]: Cannot send session cache limiter - headers already sent > > lib/display.php:135: Warning[2]: Cannot modify header information - > headers already sent Something is creating text (HTML) output before it should. More than likely, you inadvertently added a blank line or two after the '?>' at the end of index.php. > This was at the bottom of the page: > PHP Warnings > > lib/config.php:258: Notice[8]: Undefined index: SCRIPT_NAME > > lib/config.php:276: Notice[8]: Undefined variable: SCRIPT_NAME This is fixed (I think) in the current CVS version. For older versions, try defining SCRIPT_NAME explicitly in index.php to work around this problem. > lib/Request.php:143: Warning[2]: ob_gzhandler() [<a > href='http://www.php.net/ref.outcontrol'>ref.outcontrol</a>]: output > handler 'ob_gzhandler' cannot be used twice Not quite sure what causes this yet (though it's been reported before.) To work around this, disable output compression by PhpWiki. How to do this is (again) version dependent. In recent code, you can define COMPRESS_OUTPUT to false in index.php. In older code, you need to edit lib/Request.php, and remove (or comment out) the guts of method Request::compress_output(). -- -- Jeff Dairiki <da...@da...> |
From: Sandy M. <mat...@bt...> - 2003-04-02 14:12:26
|
> Try replacing this giant nested if block at the bottom of index.php: > > with a simple: > > include "lib/main.php"; > > > Let us know whether that helps or not... I have replaced this and there is no change at all. I still get a blank page. Any more ideas?? Sandy |