Lets have a look at the account data you are trying to register.
After
PHP:
function user_create_account($register_data)
Write:
PHP:
echo '<pre>';
echo print_r($register_data);
echo '</pre><br>';
die("Script terminated for debugging purposes.");
Make an account with random/non personal data, then you will get to a white page with array data, post that here.
I think there is a problem with this line of code:
$account_id = user_id($register_data['name']);
Since user_id is probably trying to fetch account.id from account.name column (which don't exist on 7.4).
But if you intend to attempt to convert my AAC you should learn to debug it properly.
You can add this to general.php if it isn't there already for sweet easy debugging:
PHP:
<?
// Sweet error reporting
function data_dump($print = false, $var = false, $title = false) {
if ($title !== false) echo "<pre><font color='red' size='5'>$title</font><br>";
else echo '<pre>';
if ($print !== false) {
echo 'Print: - ';
print_r($print);
echo "<br>";
}
if ($var !== false) {
echo 'Var_dump: - ';
var_dump($var);
}
echo '</pre><br>';
}
?>
Then you could do something like
die(data_dump($register_data, false, "Register Data")); to easily present stored data.