PDA

View Full Version : install.php error



LutzArnold
Mon 14th May '01, 6:52am
After installing PHP and MySQL I get the following error running "install.php".

Any suggestion is appreciated!

Lutz

Error Log
-----------
Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 14

Welcome to vBulletin Lite version 1.0.1 Lite. Running this script will do a clean install of vBulletin onto your server.

Click here to continue ->


Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 25

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 93

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 98

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 163

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 187

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 272

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 305

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 318

Warning: Undefined variable: step in d:\inetpub\wwwroot\vblite\admin\install.php on line 370

Sven
Mon 14th May '01, 8:24am
You need to set the error reporting in your php.ini to 7 ;)

LutzArnold
Mon 14th May '01, 9:47am
Thank you for the immediate reply :) I have got my database now but I get an error in "http://localhost/vblite/index.php".

Thanks for any help.

Lutz

error log vblite 1.0.1
=============
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")."\");"); } ?>

LutzArnold
Tue 15th May '01, 8:34am
switching "short_open_tag = Off" to "On" in PHP.INI will help
:p

mixman
Thu 24th May '01, 4:09am
i'm havingthe same problem and it would be nice to show where the lines are at in the pnp.ini file because i can't find them in my pnp.ini file some would like to shead a little light on this thanks

LutzArnold
Mon 28th May '01, 5:28am
Important are two lines in php.ini:

; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
short_open_tag = On

; Enable the PHP scripting language engine under Apache.
engine = On

Hope this helps :)
Lutz

petemay
Sun 3rd Jun '01, 2:59am
Originally posted by Sven
You need to set the error reporting in your php.ini to 7 ;)

Sven mentions that you need to set the error reporting to 7 in the php.ini. Being a newbie to all this it took me a bit of time to find the php.ini. I found it in the 'c:\winnt' directory. Not the directory where I told 'php' to install to (that was actually empty??)

Once I found and opened the php.ini, I found that the error reporting parameter is actually called 'error_reporting' and it appears that it normally takes symbolic values that are references to numeric values that are 'and'ed together. I commented out the existing error_reporting parameter, and coded a new one as recommended and I was GOOD TO GO!

example:
;error_reporting = E_ALL; display all errors, warnings and notices
error_reporting = 7


Just thought I would try to clarify that original post. Thanks Sven!!! :)