Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Bugger
 
of 6

 #152 » Fatal error: Call to undefined function OpenTable
 Date Open: Jan 28, 2010 at 21:15:07    Last Update: Jan 29, 2010 at 00:18:22 Bugger Off: Jan 29, 2010 at 00:18:22 
 Description: 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
 Request: Bug
 Application: Module
 Module: your_account
 Solution: fixed
 Bugger From: Dizfunkshunal
 Debugger: Phoenix
 Group Access: All Visitors
 DiscussIt Forum: AccountPlus
 DiscussIt Topic: Fatal error: Call to undefined function OpenTable
 Status: Done
 Priority: High
 Topic Replies:
 Phoenix
 Jan 28, 2010
 21:27:45
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.
 radiogetswild
 Jan 28, 2010
 22:07:49
I will have a try and test out on my site see how it goes will report back

cheers Tim
 radiogetswild
 Jan 28, 2010
 22:13:53
I tested add user from admin and also suspended and deleted no error problems came up on my site...


cheers Tim
 Phoenix
 Jan 29, 2010
 00:12:59
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');
 greenday2k
 Feb 01, 2010
 14:43:54
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?).
 Dizfunkshunal
 Feb 01, 2010
 19:40:00
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.
 Phoenix
 Feb 01, 2010
 20:25:55
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.
150 buggers listed, 109 buggered off, 31 declined, 8 on hold.