• 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!

Account Creation Problem

Wusse

Member
Joined
Oct 3, 2023
Messages
95
Solutions
2
Reaction score
23
Hello, im using Uniserver, MySQL and the Atomio template.
TFS 1.4.2
Atomio: [MyAAC][Plugin][Template] AtomIO template (https://otland.net/threads/myaac-plugin-template-atomio-template.285072/)

The issue im having is in Account Creation page. when i create a account and a character the page loads for around 21 seconds each time, this doesnt occur anywhere else. the weird part is that the Character and Account themlesves are created within milliseconds (prooven by debugging)

Ive tried everything i could think of.

in Config.php:
ive disabled:
account_mail_verify (false)
account_country (false)
account_country_recognize (false)
recaptcha_enabled (false)

and nothing seem to work it still takes 21 seconds on load time before coming to the next page (success.html.twig),
ive tried with older www folders, other tempaltes (tibiacom) still the same 21 seconds delay on loadtime for the page.

ive had ideas that maybe using my own localhost ip could be the issue since its not public but im new to everything that has to do with website and how it works so im clueless.

ive been with this issue for 2 days now, and i dont really expect a solution randomly here im simply curious if anyone has had this issue before and could maybe pinpoint me to the right direction...

(willing to display php files that needs to be looked at, but as i said just wanted to know if this is something someone has experienced before)

Files ive been looking at:

www/config.php
www/system/createaccount.php
www/system/libs/CreateCharacter.php
www/system/templates/account.create.html.twig
www/system/templates/account.create.js.html.twig
www/system/templates/success.html.twig

EDIT:
Note: The creation of account and character works. the person creating the account will be taken to the success.html.twig page with everything working fine. its simply the load time thats taking 21 seconds (im assuming getting timedout and then sent to the correct page)
 
Last edited:
Solution
What myaac version is that? You can see in common.php

Anyway, I think the problem is with mailing system. Did you try to disable it?

You can do that by setting in config.local.php:

$config['mail_enabled'] = false;
What myaac version is that? You can see in common.php

Anyway, I think the problem is with mailing system. Did you try to disable it?

You can do that by setting in config.local.php:

$config['mail_enabled'] = false;
 
Solution
What myaac version is that? You can see in common.php

Anyway, I think the problem is with mailing system. Did you try to disable it?

You can do that by setting in config.local.php:

$config['mail_enabled'] = false;
Myacc Version: 0.8.14-dev

MY GOD that worked?

what is actually happening here and what functions does mail_enabled actually handle?
im assuming everything that has to do with email, which includes recovering passwords and lost accounts?

is there a possible fix?

THANK YOU!
 
i havent taken the time to configure it yet, no.

ive been working on the look for the website when i noticed the problem i had.

and yes i do wish to use the mail system for sending players their lost accounts etc.
 
Ok, so you will need a smtp/mail host for that.

Google "mail host smtp".

You can use gmail, but it has limit of 100 emails (if i'm correct) per day.
 
Thank you so much!

i fixed it by setting up the configuration for email with a free smtp service program. (that wasnt so easy actually i got really confused but managed to make it work)
 
Back
Top