• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

MyACC error occorred on register

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,067
Solutions
5
Reaction score
63
Hello,
so im getting two errors/warnings

1. So this is the first one after registration
bf7526737bac9565bb7bd6b5b22e9f63.png
2. This one is in account manager
Nuejus i account manager.png
 
so i need your tfs version too, because in my accounts ban its different than what is written in your code
Mine (TFS1.3) using my AAC
1599577499685.png

also you should set mailer to false in config.php so this error won't fetch till you setup you mail server
 
1. Mailer is not properly configured (config file)
2. account_bans table exists?
1. Mailer? I think i didnt changed anything only ip's and file locations of server
2. There account_bans
so i need your tfs version too, because in my accounts ban its different than what is written in your code
Mine (TFS1.3) using my AAC
View attachment 49615

also you should set mailer to false in config.php so this error won't fetch till you setup you mail server
Its tfs 1.2
it is false in config
PHP:
    // account
    'account_management' => true, // disable if you're using other method to manage users (fe. tfs account manager)
    'account_mail_verify' => false, // force users to confirm their email addresses when registering account
    'account_mail_unique' => true, // email addresses cannot be duplicated? (one account = one email)
    'account_premium_days' => 3, // default premium days on new account
    'account_premium_points' => 0, // default premium points on new account
    'account_welcome_mail' => true, // send welcome email when user registers
    'account_mail_change' => 2, // how many days user need to change email to account - block hackers
    'account_country' => true, // user will be able to set country of origin when registering account, this information will be viewable in others places aswell
    'account_country_recognize' => true, // should country of user be automatically recognized by his IP? This makes an external API call to http://ipinfo.io
    'account_change_character_name' => false, // can user change their character name for premium points?
    'account_change_character_name_points' => 30, // cost of name change
    'account_change_character_sex' => false, // can user change their character sex for premium points?
    'account_change_character_sex_points' => 30, // cost of sex change
    'characters_per_account' => 10,    // max. number of characters per account

    // mail
    'mail_enabled' => false, // is aac maker configured to send e-mails?
    'mail_address' => '[email protected]', // server e-mail address (from:)
    'mail_admin' => '[email protected]', // admin email address, where mails from contact form will be sent
    'mail_signature' => array( // signature that will be included at the end of every message sent using _mail function
        'plain' => ''/*'--\nMy Server,\nhttp://www.myserver.com'*/,
        'html' => ''/*'<br/>My Server,\n<a href="http://www.myserver.com">myserver.com</a>'*/
    ),
 
bump
Post automatically merged:

system/logs/error.text this is what it says

[Wed, 09 Sep 2020 11:03:21 +0200] [createaccount.php] An error occorred while sending email: Could not instantiate mail function.. Error: Array
(
[type] => 2
[message] => mail(): Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set()
[file] => C:\xampp\htdocs\system\libs\phpmailer\class.phpmailer.php
[line] => 702
)
 
Last edited:
bump
Post automatically merged:

system/logs/error.text this is what it says

[Wed, 09 Sep 2020 11:03:21 +0200] [createaccount.php] An error occorred while sending email: Could not instantiate mail function.. Error: Array
(
[type] => 2
[message] => mail(): Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set()
[file] => C:\xampp\htdocs\system\libs\phpmailer\class.phpmailer.php
[line] => 702
)
check config.local.php if it contains anything about mail might be activated from there.
 
check config.local.php if it contains anything about mail might be activated from there.
Fuck yea mailer was true in config.local.php it fixed that error now only this one left

Notice: Trying to access array offset on value of type bool in C:\xampp\htdocs\system\libs\pot\OTS_Account.php on line 784
In account manager
 
u need to remove the red lines and add the green ones in your OTS_Account.php from here:

Or just replace the whole OTS_Account.php file, which should be easier ;)

 
Or just replace the whole OTS_Account.php file, which should be easier ;)

Well replacing cant even enter account manager now

Fatal error: Uncaught Error: Call to undefined method OTS_DB_MySQL::hasColumn() in C:\xampp\htdocs\system\libs\pot\OTS_Account.php:179 Stack trace: #0 C:\xampp\htdocs\system\libs\pot\OTS_Account.php(203): OTS_Account->load('13') #1 C:\xampp\htdocs\system\login.php(63): OTS_Account->find('LOPAS') #2 C:\xampp\htdocs\index.php(204): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\system\libs\pot\OTS_Account.php on line 179
 
Well replacing cant even enter account manager now

Fatal error: Uncaught Error: Call to undefined method OTS_DB_MySQL::hasColumn() in C:\xampp\htdocs\system\libs\pot\OTS_Account.php:179 Stack trace: #0 C:\xampp\htdocs\system\libs\pot\OTS_Account.php(203): OTS_Account->load('13') #1 C:\xampp\htdocs\system\login.php(63): OTS_Account->find('LOPAS') #2 C:\xampp\htdocs\index.php(204): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\system\libs\pot\OTS_Account.php on line 179
why you didn't update your whole AAC to the latest version seems to be versions issue
 
why you didn't update your whole AAC to the latest version seems to be versions issue
Uff because 90% of it is custom. I would love to update, but updating it to new version would coast so much resources and i wont be capable to transfer some stuff or adjust it for new version
 
u need to remove the red lines and add the green ones in your OTS_Account.php from here:
Yea it fixed it thanks
so do this change only to your old OTS_Accounts.php or whatever the file name is
Yea changing few lines helped
 
@Shadow_

Hello good Morning.
So this way, I already followed a tutorial once about this, but it always gives this error

$config['mail_enabled'] = true;
$ config ['email'] = '[email protected]';
$ config ['mail_admin'] = '[email protected]';
$ config ['mail_address'] = '[email protected]';

and already did the same as these two topics there


 
Last edited:
@Shadow_

Hello good Morning.
So this way, I already followed a tutorial once about this, but it always gives this error

$config['mail_enabled'] = true;
$ config ['email'] = '[email protected]';
$ config ['mail_admin'] = '[email protected]';
$ config ['mail_address'] = '[email protected]';

and already did the same as these two topics there


i can't help you because you didn't install it correctly check how to install SMTP or disable it to solve the issue
 

Similar threads

Back
Top