View previous topic :: View next topic |
Author |
Message |
kato_jenkina
Joined: 19 Nov 2002 Posts: 4 Location: Indianapolis
|
Posted: Tue Nov 19, 2002 5:23 pm Post subject: index.php displays only a blank screen |
|
|
I configured and installed b2 and everything seems to work OK except when I try to access index.php all I get is a blank white screen. The source looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
Yet strangely, all the other .php files load and work correctly. I can log in, post stories, change my password, etc but index.php is always blank?
Does anyone know what causes this?
Thanks, Kato
(some variables from my config file:
$siteurl = 'http://nimbleswitch.com/b2/index.php';
$blogfilename = 'index.php';
and
$pathserver = 'http://nimbleswitch.com/b2';
I've never been sure if $pathserver and $siteurl are supposed to look like this.) |
|
Back to top |
|
 |
Tanner
Joined: 06 Jul 2002 Posts: 55 Location: Germany
|
Posted: Tue Nov 19, 2002 9:29 pm Post subject: |
|
|
Try Code: | $siteurl = 'http://nimbleswitch.com/b2'; |
From the Config:
# $pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !)
# by default b2 is set to run in the folder your blog resides, same as $siteurl
|
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Tue Nov 19, 2002 10:47 pm Post subject: Re: index.php displays only a blank screen |
|
|
Hi kato_jenkina,
kato_jenkina wrote: | I configured and installed b2 and everything seems to work OK except when I try to access index.php all I get is a blank white screen. The source looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
|
If this is what the top of your index.php file actually looks like, then you missing some things.
be sure to include the following at the top of your file and before <html>:
Code: |
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
Quote: |
Yet strangely, all the other .php files load and work correctly. I can log in, post stories, change my password, etc but index.php is always blank?
Does anyone know what causes this?
Thanks, Kato
(some variables from my config file:
$siteurl = 'http://nimbleswitch.com/b2/index.php';
$blogfilename = 'index.php';
and
$pathserver = 'http://nimbleswitch.com/b2';
I've never been sure if $pathserver and $siteurl are supposed to look like this.) |
The site url should not include the 'index' file name. e.g."
Code: |
$siteurl = 'http://nimbleswitch.com/b2';
|
If this does not resolve the issues, post your index.php file.
Michael e |
|
Back to top |
|
 |
kato_jenkina
Joined: 19 Nov 2002 Posts: 4 Location: Indianapolis
|
Posted: Wed Nov 20, 2002 4:59 pm Post subject: hmmm, still stuck... |
|
|
Thanks for everyone's suggestions. I'm realizing that this probably belongs in installation problems rather than bug reports so thanks for your patience everyone.
It's probably not a problem with index.php because it's stock. I haven't modified it at all.
I'm wondering if the problem might be the $b2inc variable. If it can't find the includes directory, that would explain why the problem occurs
$b2inc = './b2-include';
I tried
$b2inc = 'b2/b2-include';
$b2inc = './b2/b2-include';
and even
$b2inc = '/usr/www/htdocs/nimbleswitch/b2/b2-include';
and that didn't work either.
I may try search-and-replace on every $b2inc call and hardcode the path.
b2 just isn't made to go into a different directory that the root directory and that's too bad. I think a majority of users would rather have their blog as a section of their site rather than it be "the site itself."
I will post my findings if I can come up with a solution.
Thanks again all!
kato |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
|
Back to top |
|
 |
kato_jenkina
Joined: 19 Nov 2002 Posts: 4 Location: Indianapolis
|
Posted: Thu Nov 21, 2002 5:23 pm Post subject: |
|
|
so mike, were you able to leave the b2inc variable as this?
$b2inc = './b2-include';
or did you change that value too?
thanks, Kato |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Thu Nov 21, 2002 6:42 pm Post subject: |
|
|
No, my b2inc is the same:
$siteurl = "http://zed1.com/b2";
$pathserver = "http://zed1.com/b2";
$b2inc = './b2-include';
Mike _________________ Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't." |
|
Back to top |
|
 |
kato_jenkina
Joined: 19 Nov 2002 Posts: 4 Location: Indianapolis
|
Posted: Thu Nov 21, 2002 6:49 pm Post subject: rock and roll |
|
|
thanks man, i'm gonna blow away my database and start from scratch following your instructions to the letter.
your detailed post on how to do it is much appreciated. thanks!
kato |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Thu Nov 21, 2002 10:30 pm Post subject: |
|
|
I hope you can get it working.
They weren't my instructions by the way, they were Nessahead's with other people contributing.
Mike _________________ Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't." |
|
Back to top |
|
 |
Larsson
Joined: 17 Apr 2003 Posts: 5 Location: Nottingham, UK
|
Posted: Tue Aug 17, 2004 5:08 pm Post subject: |
|
|
I also get this problem, but only in IE funnily enough. If I check out the site in Mozilla it's fine!?!?
http://daddylonglegsattack.co.uk/_v2/glog.php
My friend who I did the site for, hasn't complained about this, but he also uses IE like I do!?!? |
|
Back to top |
|
 |
|