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

 #152 » Fatal error: Call to undefined function OpenTable
 Date Open: Jan 28, 2010 at 20:15:07    Last Update: Jan 28, 2010 at 23:18:22 Bugger Off: Jan 28, 2010 at 23: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:
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:
 Jan 28, 2010
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.
 Jan 28, 2010
I will have a try and test out on my site see how it goes will report back

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

cheers Tim
 Jan 28, 2010
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:
function userCheckError($username, $user_email, $error) {
	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>';
Note, I inserted:
 Feb 01, 2010
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?).
 Feb 01, 2010
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.
 Feb 01, 2010
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.