you should share the file OTS_Account.php or even from like 760 to 800
1. Mailer? I think i didnt changed anything only ip's and file locations of server1. Mailer is not properly configured (config file)
2. account_bans table exists?
Its tfs 1.2so 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
// 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>'*/
),
check config.local.php if it contains anything about mail might be activated from there.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 "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
[file] => C:\xampp\htdocs\system\libs\phpmailer\class.phpmailer.php
[line] => 702
)
Fuck yea mailer was true in config.local.php it fixed that error now only this one leftcheck config.local.php if it contains anything about mail might be activated from there.
u need to remove the red lines and add the green ones in your OTS_Account.php from here:
![]()
Fix some 7.4 notices about OTS_Account bans · slawkens/myaac@259cda1
Example: Notice: Trying to access array offset on value of type bool in C:\UniServerZ\www\system\libs\pot\OTS_Account.php on line 784github.com
Well replacing cant even enter account manager nowOr just replace the whole OTS_Account.php file, which should be easier
![]()
myaac/system/libs/pot/OTS_Account.php at 259cda150decb912156a3740af85407ff277de5a · slawkens/myaac
Automatic Account Creator (AAC) for Open Tibia Servers written in PHP - slawkens/myaacgithub.com
why you didn't update your whole AAC to the latest version seems to be versions issueWell 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
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 versionwhy you didn't update your whole AAC to the latest version seems to be versions issue
u need to remove the red lines and add the green ones in your OTS_Account.php from here:
![]()
Fix some 7.4 notices about OTS_Account bans · slawkens/myaac@259cda1
Example: Notice: Trying to access array offset on value of type bool in C:\UniServerZ\www\system\libs\pot\OTS_Account.php on line 784github.com
Yea it fixed it thanksu need to remove the red lines and add the green ones in your OTS_Account.php from here:
![]()
Fix some 7.4 notices about OTS_Account bans · slawkens/myaac@259cda1
Example: Notice: Trying to access array offset on value of type bool in C:\UniServerZ\www\system\libs\pot\OTS_Account.php on line 784github.com
Yea changing few lines helpedso do this change only to your old OTS_Accounts.php or whatever the file name is
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^check config.local.php if it contains anything about mail might be activated from 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@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
![]()
AAC - [MyACC] [POSTFIX] [SquirrelMail] Problem with configuring the mail system
Hello, When creating an account on MyACC receives the message: An error occorred while sending email ([email protected])! Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting More info in system/logs/error.log Error.log: [Thu, 01 Aug 2019 18:59:20 +0200]...otland.net
![]()
AAC - Support in configuring the sending of e-mails confirming the account registration in MyACC
Hey, I am asking for support in configuring the sending of e-mails confirming the account registration in MyACC. For configuration, I have: // mail 'mail_enabled' => false, // is aac maker configured to send e-mails? 'mail_address' => '[email protected]', // server e-mail...otland.net