[fixed] Fatal error: Call to undefined function OpenTable()
-> AccountPlus

#1: [fixed] Fatal error: Call to undefined function OpenTable() Author: Dizfunkshunal PostPosted: Fri Jan 29, 2010 1:09 am
    ----
I upgraded to latest version of AccountPlus when trying to add a user through the add user in the admin section. After filling out all the info and selecting submit i get this error:
Code::
Fatal error: Call to undefined function OpenTable() in /var/www/clients/client1/web2/web/modules/Your_Account/functions.php on line 56


Initiated by Bugger (Original Entry) - Comments Here Please.

#2: Re: [wip] Fatal error: Call to undefined function OpenTable() Author: PhoenixLocation: Netizen PostPosted: Fri Jan 29, 2010 4:27 am
    ----
I'm a bit puzzled Diz - just tried that on this site and no issues Confused

Wouldn't be a theme template issue?

hmm, may have answered my own question - it may be the template.

Unfortunately I'm running the latest CVS which means it always adopts the default theme and I may not have updated that template.

nm, I can't make it error that way either.

#3: Re: [wip] Fatal error: Call to undefined function OpenTable() Author: radiogetswild PostPosted: Fri Jan 29, 2010 5:07 am
    ----
I will have a try and test out on my site see how it goes will report back

cheers Tim

#4: Re: [wip] Fatal error: Call to undefined function OpenTable() Author: radiogetswild PostPosted: Fri Jan 29, 2010 5:13 am
    ----
I tested add user from admin and also suspended and deleted no error problems came up on my site...


cheers Tim

#5: Re: [wip] Fatal error: Call to undefined function OpenTable() Author: PhoenixLocation: Netizen PostPosted: Fri Jan 29, 2010 7:12 am
    ----
Looking through the code, it may happen if there is an error resulting from adding a user through admin, so I'll have to adjust the code anyway.

Diz, try replacing this function in modules/Your_Account/functions.php from approx. line 55, with this:
Code::
function userCheckError($username, $user_email, $error) {
	require_once(BASEDIR.'header.php');
	OpenTable();
	echo '<div style="text-align:center;">';
	echo $error;
	echo '<br /><br /><input type="button" value="'._GO_BACK.'" onclick="self.location.href=\''.getlink('&amp;file=register&amp;agreed=1&amp;uname='.$username.'&amp;uemail='.$user_email,1,1).'\'" /></div>';
	CloseTable();
	require_once(BASEDIR.'footer.php');
	exit;
}
Note, I inserted:
require_once(BASEDIR.'header.php');

#6: Re: [fixed] Fatal error: Call to undefined function OpenTable() Author: greenday2k PostPosted: Mon Feb 01, 2010 9:43 pm
    ----
When the SMTP server is gone (when it takes to long to connect) when DF's is trying to send a message then an error related to OpenTable () is showed:

Fatal error: Call to undefined function OpenTable() some/script/php line 123
maybe Dizfunkshunal is having issues with his SMTP server (guess?).

#7: Re: [fixed] Fatal error: Call to undefined function OpenTable() Author: Dizfunkshunal PostPosted: Tue Feb 02, 2010 2:40 am
    ----
Well i cant remember which site I got this error on. I have tried again on all of them i have no error. smtp server issue shouldn't effect adding a user other then it would not send the email.

#8: Re: [fixed] Fatal error: Call to undefined function OpenTable() Author: PhoenixLocation: Netizen PostPosted: Tue Feb 02, 2010 3:25 am
    ----
Well, this error will only occur if there is some sort of irregularity in the data that admin is entering for a new member - the above will fix it and will be in the next release.



-> AccountPlus

All times are GMT

Page 1 of 1