Hi-
Yes, this is the "main" (ergo top-level) script for a utility that I am finishing up to migrate a Lefora forum to vBulletin. I looked at a few examples of top level scripts, especially the impex stuff and tried to follow suit. I don't recall seeing anything about $phrasegroups, but that is indeed the relevant section of code where the failure occurs. I will go back and take another look, I could have easily missed something.
BTW, this failure occurs no matter which require statement is used, either the global script or my own modules. If any of those lines are uncommented, boom, I get the error. What is interesting is that the simplistic version of the db code that immediately follows these require_once statements produces the correct results. By commenting out these require_once statements the error disappears and I still see the same correct results. Wha-?
This:
Code:
$conn = mysql_connect( $lmConfig[ 'dbserver' ], $lmConfig[ 'username' ],$lmConfig[ 'password' ] );
$lmDB = mysql_select_db( $lmConfig[ 'vbdatabase' ] );
$query = 'SELECT * FROM ' . $lmConfig[ 'vbtableprefix' ] . 'user';
$resultSet = mysql_query( $query );
while( $row = mysql_fetch_array( $resultSet ) )
{
print $row['username'] . " " . $row['userid'] ."\n";
}
mysql_close( $conn );
produces:
Code:
admin 1
joeuser 2
testuser 3
I'll keep playing around with it and see if I can find the answer. Any help is appreciated; I'll post the result when I figure it out so as to possibly help someone else in the future.
Thanks!