PDA

View Full Version : line 4308 error in functions.php


CyberRanger
10-19-2005, 10:17 PM
I'm converting one of my sites to vb3.5.0 and I'm struggling with this error.

For example: with 3.0.9 - http://www.ncmb.uscourts.gov/registration/regform.php?id=90&pend=0

With 3.5.0 - http://www.ncmb.uscourts.gov/registration/regform350.php?id=90&pend=0

The page displays right except for the error at the bottom. I'm using vb to check security and format the header, sidebar, and footer. The "Attendees" information is pulled from another mysql database on the same server as the forum db. My guess is that something in the second db's config file is overwriting a needed vb variable but I can't pin it down.

Thanks for any help!

Andreas
10-19-2005, 10:31 PM
Are you running PHP 5?

CyberRanger
10-19-2005, 10:55 PM
The solution ended up being so simple ... once I fixed it! When I was making the call to my second database, I was using:
$db = mysql_connect($db_host,$db_user,$db_password) or die(mysql_error()); by changing that to:
$dbclasses = mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
the error calling $vbulletin->db->unlock_tables(); went away. :banana:

Cryo
10-23-2005, 08:40 PM
Just wanted to add that this solved the problem I was having too. Thanks for posting the followup, westpointer. :)