boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

index.php displays only a blank screen

 
Post new topic   Reply to topic    boardom Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
kato_jenkina



Joined: 19 Nov 2002
Posts: 4
Location: Indianapolis

PostPosted: Tue Nov 19, 2002 5:23 pm    Post subject: index.php displays only a blank screen Reply with quote

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
View user's profile Send private message Visit poster's website
Tanner



Joined: 06 Jul 2002
Posts: 55
Location: Germany

PostPosted: Tue Nov 19, 2002 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Tue Nov 19, 2002 10:47 pm    Post subject: Re: index.php displays only a blank screen Reply with quote

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
View user's profile Send private message Send e-mail
kato_jenkina



Joined: 19 Nov 2002
Posts: 4
Location: Indianapolis

PostPosted: Wed Nov 20, 2002 4:59 pm    Post subject: hmmm, still stuck... Reply with quote

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
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Wed Nov 20, 2002 6:57 pm    Post subject: Reply with quote

I have NO problem running my blog in a sub directory of my site.

See this topic for info http://tidakada.com/board/viewtopic.php?t=766&start=0&postdays=0&postorder=asc&highlight=

Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kato_jenkina



Joined: 19 Nov 2002
Posts: 4
Location: Indianapolis

PostPosted: Thu Nov 21, 2002 5:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Thu Nov 21, 2002 6:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kato_jenkina



Joined: 19 Nov 2002
Posts: 4
Location: Indianapolis

PostPosted: Thu Nov 21, 2002 6:49 pm    Post subject: rock and roll Reply with quote

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
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Thu Nov 21, 2002 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Larsson



Joined: 17 Apr 2003
Posts: 5
Location: Nottingham, UK

PostPosted: Tue Aug 17, 2004 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group