PDA

View Full Version : Getting Error in VB



Dan
May 7th, 2007, 23:00
Ok.
When I go to view a thread or post in VB, I get the following error on the top of the page and no thread showing:


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/exstream/public_html/forums/includes/class_postbit.php(300) : eval()'d code on line 242

I tried installing a Warning System from vbulletin.org and got that error. I unistalled the mod again but still no goot and it's like 4am and I am tired :D

Anyone got any ideas?

I checked line 242 in class_postbit.php but there's nothing on that line.

Dan
May 7th, 2007, 23:49
Ok this is fixed. I just had to revert the templates.

Jan
May 8th, 2007, 00:59
Maybe you can be a bit clearer about what needed to be done. I did a google search earlier and it appears to be a common error, but the few I clicked on didn't have a solution.

Dan
May 8th, 2007, 01:10
Basically, I went to admin-cp and to Edit Templates. Clicked Revert All Templates and that was it.

DarkBlood
May 8th, 2007, 09:24
Here's what this problem usually means, if you have:

$sql="select * from Admin where AdminName='$_POST['username']' and AdminPassword='$_POST['password']'";

It should be

$sql="select * from Admin where AdminName='$_POST[username]' and AdminPassword='$_POST[password]'";

OR

$sql="select * from Admin where AdminName='{$_POST['username']}' and AdminPassword='{$_POST['password']}'";