View Full Version : The forums page won't come up!!
Jak
Fri 22nd Sep '00, 10:30pm
This is what occurs when you click on the forums page after you do the complete install and create the forums in the admin section.
query("SELECT forumid,title,description,displayorder,lastpost,re plycount,threadcount,allowposting FROM forum WHERE active=1 AND displayorder<>0 ORDER BY displayorder"); while ($forum=$DB_site->fetch_array($forums)) { // do light bulb if ($lastvisitdate=="Never") { $onoff="on"; } else { if ($bblastvisit<$forum[lastpost]) { $onoff="on"; } else { $onoff="off"; } } if ($forum[allowposting]==0) { $onoff.="lock"; } // prepare template vars $forumid=$forum[forumid]; $forumtitle=htmlspecialchars($forum[title]); if ($showforumdescriptions==1) { $forumdescription=$forum[description]; } // post and thread counts $numberposts=$forum[replycount]; $numberthreads=$forum[threadcount]; // dates if ($forum[lastpost]>0) { $lastpostdate=date($dateformat,$forum[lastpost]+($timeoffset*3600)); $lastposttime=date($timeformat,$forum[lastpost]+($timeoffset*3600)); } else { $lastpostdate="Never"; $lastposttime=""; } eval("\$forumbits .= \"".gettemplate("forumhomebit")."\";"); } // while forums eval("echo dovars(\"".gettemplate("forumhome")."\");"); } ?>
here is the URL
http://www.filanet.com/vblite/index.php3
chrispadfield
Sat 23rd Sep '00, 1:29am
Server istn't configured correctly i don't think. It is not treating php3 files as php files and processing them correctly.
For a test, download that index.php3 file and rename it to both index.php and also to index.php4 and then upload them. See what happens when you run them.
Jak
Sun 24th Sep '00, 11:25pm
I tried the re-name idea. it still comes up with the same thing.
My website is php based.
All other files have .php3 exts.
So i don't know what the problem is.. do i have to
<include> the index file ??
look thru the site and see if the php is working properly..
I would really like to purchase the Complete VEr. of Vbulletin .. but like the LITE ver to work 1st...
http://www.filanet.com
Mike Sullivan
Sun 24th Sep '00, 11:42pm
Open up global.php3 and go down to line 62, and replace
global $DB_site
with
global $DB_site;
If that doesn't fix it, I dunno. I find it strange that IE only prints out stuff after the call to $DB_site's member function, query...
Hmm... thinking out loud here :) Make sure you have short open tag support enable, or change the "<?"'s to "<?php"'s.
Jak
Sun 24th Sep '00, 11:45pm
I changed the DB problem b4 ...
it still comes up the same ..
Jak
Sun 24th Sep '00, 11:47pm
Also in the global and index file it is <?php
Jak
Mon 25th Sep '00, 12:23am
I don't know if this is new information .. but when you go view source on http://www.filanet.com/vblite/index.php3
that page ... the top come out <? instead of <?php
but the index.php3 file has <?php in it..
just wanted to let you know.. if that helps or not.
Jak
Mon 25th Sep '00, 2:16pm
Can I get more help on this subject.. about
installing VBLITE and why doesn't the Forum come up after I do the setup.
Also is Vbulletin the real vers. easier to setup than
VBLITE??
Thanks
chrispadfield
Mon 25th Sep '00, 2:30pm
Um i am not sure. It may be worth contacting James through the support section of the site to see what he suggests.
JimF
Mon 25th Sep '00, 2:45pm
First, don't listen to chrispadfield. The only official support offered via the support section of the site is for the FULL VERSION, not the lite version. All support issues for vB Lite should be posted in this forum.
Originally posted by Jak
Can I get more help on this subject.. about
installing VBLITE and why doesn't the Forum come up after I do the setup.
If somebody knew the answer, we would certainly help you out. The only time I've seen something like that is when PHP is not being parsed correctly. Since you say that PHP is in use on the rest of your site, and also since it only outputs a small portion of the script - not the entire thing; this is not the answer. There must be something else involved that is causing this problem.
Originally posted by Jak
Also is Vbulletin the real vers. easier to setup than
VBLITE??
They are both the same to setup; the vBlite much easier since it has less options.
Do these two things:
1) List the steps you took in setting up the script,
2) Make a file called phpinfo.php, and put the following lines of code in it:
<?php
phpinfo();
?>
And then give me the URL to the file.
With these two things we should be able to get a better understanding of where the problem lies.
-jim
[Edited by JimF on 09-25-2000 at 01:50 PM]
Jak
Mon 25th Sep '00, 2:54pm
I will re-install the VBLITE and document what I am doin.. and i'll create that file that you suggested..
thanks
chrispadfield
Mon 25th Sep '00, 3:12pm
Oops. sorry JimF. I thought that as he was just trying out the software to check it worked James might answer. I got good replies from them before I had purchased the software as the forums could not help. It had been a few days here and no answer was forthcoming (admittingly, yours had not been suggested when i posted).
but understood.
Jak
Mon 25th Sep '00, 3:12pm
http://www.filanet.com/phpinfo.php
so far i have uploaded the files onto the server and
about to run the install.php3 file
Jak
Mon 25th Sep '00, 3:19pm
Well i went thru the entire install .. everything was good.. i didn't add a new forum.. i just clicked on
"forums home page" on the Control Panel...
and the same junk came up...
Jak
Mon 25th Sep '00, 3:21pm
also the page where the forum should come up is
http://www.filanet.com/upload/index.php3
JimF
Mon 25th Sep '00, 3:58pm
Thanks for the info.
So you did the install.php, and no errors came back?
What happens when you go into the control panel and try to create a new forum?
-jim
JimF
Mon 25th Sep '00, 4:42pm
Another question is; each time you tried doing the install, did you drop the exisiting tables? So are you installing on an empty database each time or at least resetting the database before install?
Jak
Mon 25th Sep '00, 5:06pm
I can create a new forum.. no problem with that..
the name comes up and everything..
umm... yeah i reset the tables in the begining when it says to do that...
JimF
Mon 25th Sep '00, 5:13pm
when you did the re-install, did you download a new .zip of the program? Or did you just re-upload the original? If it was the same one, try downloading a new one and try again. This time do a total fresh install into an empty database. Delete all previous versions of the scripts and everything. Report any errors here, and email me the control panel password when you get it up and running.
-jim
Jak
Mon 25th Sep '00, 5:16pm
is there anyway i can talk to you verbally???
JimF
Mon 25th Sep '00, 5:26pm
We could chat via ICQ, but that's setup on my home computer. And for the sake of others who may have this same problem in the future, I feel it is imperitive to document all correspndance here in the forums. If we all solved everyone's problems via ICQ, the solutions wouldn't be here at everyone's disposal.
I'm already taking time out of my work day to help via the BBS, at this point a phone call is not an option. So unless you live in the Metro New York area and want to join me for a Yankees game tonight or Happy Hour or something, there is little chance we could talk verbally ;).
Just provide as much detailed, accurate information here as possible - and when needed I'll ask for something sent to me via email (such as an admin password). If you are uncomfortable sending me the admin password for the vBlite that doesn't work on your server, then there is little more I can do than suggest things here that you've already tried.
-jim
JimF
Mon 25th Sep '00, 5:33pm
If you view the source for the page that you are having trouble with, you see this:
<?
require("global.php3");
if (isset($action)==0 or $action=="") {
$action="showforums";
}
if ($action=="bbcode") {
eval("echo dovars(\"".gettemplate("bbcode")."\");");
}
if ($action=="faq") {
eval("echo dovars(\"".gettemplate("faq")."\");");
}
if ($action=="showforums") {
// if user is know, then welcome
if ($bbusername!="") {
$username=$bbusername;
eval("\$welcometext = \"".gettemplate("welcometext")."\";");
}
// make the forum bits
$forums=$DB_site->query("SELECT forumid,title,description,displayorder,lastpost,
replycount,threadcount,allowposting FROM forum WHERE active=1 AND displayorder<>0 ORDER BY displayorder");
while ($forum=$DB_site->fetch_array($forums)) {
// do light bulb
if ($lastvisitdate=="Never") {
$onoff="on";
} else {
if ($bblastvisit<$forum[lastpost]) {
$onoff="on";
} else {
$onoff="off";
}
}
if ($forum[allowposting]==0) {
$onoff.="lock";
}
// prepare template vars
$forumid=$forum[forumid];
$forumtitle=htmlspecialchars($forum[title]);
if ($showforumdescriptions==1) {
$forumdescription=$forum[description];
}
// post and thread counts
$numberposts=$forum[replycount];
$numberthreads=$forum[threadcount];
// dates
if ($forum[lastpost]>0) {
$lastpostdate=date($dateformat,$forum[lastpost]+($timeoffset*3600));
$lastposttime=date($timeformat,$forum[lastpost]+($timeoffset*3600));
} else {
$lastpostdate="Never";
$lastposttime="";
}
eval("\$forumbits .= \"".gettemplate("forumhomebit")."\";");
} // while forums
eval("echo dovars(\"".gettemplate("forumhome")."\");");
}
?>
And in your phpinfo config file located at: http://www.filanet.com/phpinfo.php, you have PHP configured to disable short tags. Try changing the tags in the index.php3 file, and the global.php3 file to <?php instead of <?.
I think that is probably your culprit.
-jim
Jak
Mon 25th Sep '00, 5:38pm
http://www.filanet.com/vblite/admin/index.php3
Jak
Mon 25th Sep '00, 5:45pm
Parse error: parse error, expecting `','' or `';'' in /ds0_slot4/s0e0/pro/filanet/public_html/htdocs/vblite/global.php3 on line 62
Fatal error: Call to a member function on a non-object in /ds0_slot4/s0e0/pro/filanet/public_html/htdocs/vblite/index.php3 on line 30
http://www.filanet.com/vblite/index.php3
these are new errors that occur on that page..
Jak
Mon 25th Sep '00, 5:50pm
Jim:
Hey... I got it to work... i don't know how... but i got it to work...
I put ; on Line 62 on the global.php3 file
and now it works....
so do you think I should download the real verison..
and if i need help.. could you help me??
By the way.. thanks a Lot for your help...
I really appreaciate it...
Thank You.
http://www.filanet.com/vblite/index.php3
Mike Sullivan
Mon 25th Sep '00, 6:57pm
Umm... not to sound like a jackass, but...
Did you even read my message on page 1? :) I gave you the answers there. :p
Jak
Mon 25th Sep '00, 7:00pm
Hey..
it was more than the the line 62 error....
and i did read your answer and it didn't help at that time..
thanks..
JimF
Tue 26th Sep '00, 1:36am
So just for reference, did you add in <?php as your opening tag? And then you got the line 62 error? If that's the case, than the answer was given on the first page. If not, can you tell us what steps you took to fix this so that if it happens again we know what you did?
And of course I think you should buy the full version :). I will offer any help I can, though this place is filled with tons of people who are willing to help.
-jim
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.