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

AAC Account Creation Znote AAC problem

Obito

0x1337
Joined
Feb 17, 2011
Messages
351
Solutions
8
Reaction score
151
Location
Egypt
Hi, today I have installed @Znote AAC and this error suddenly pops up when I enter the website so I have changed the memory cache to false then while I'm creating the account it appears with a blank page and I don't know the reason. Using TFS 1.4/Latest the uniformserver.
Edit: I can create an account from the localhost only I dunno why it's isn't working from outside my virtual machine.
1639587322947.png
1639587619058.png
 
Last edited:
Well? I don't think it should be an error.

It could be a warning that is simply ignored if the extension is not found.

@Znote what do you 🤔?

You will avoid a lot of topics like this, that I'm seeing not for the first time if you ignore such simple configuration problems.

#edit
Or well, I misunderstood. If you say that you set memory to false then it must be problem with code.
 
Well? I don't think it should be an error.

It could be a warning that is simply ignored if the extension is not found.

@Znote what do you 🤔?

You will avoid a lot of topics like this, that I'm seeing not for the first time if you ignore such simple configuration problems.

#edit
Or well, I misunderstood. If you say that you set memory to false then it must be problem with code.
Well, what about APcu? how could I install it? if this the problem that accused the blank page?
 
I just tested, seems to work fine:
1639597447612.png

Latest uniform server: <The Uniform Server (https://www.uniformserver.com/)>
TFS 1.4.1: <Release The Forgotten Server 1.4.1 · otland/forgottenserver (https://github.com/otland/forgottenserver/releases/tag/v1.4.1)>
- (Had a weird issue extracting items file, so had to grab the data folder from [Source code (zip)] download)
Znote AAC 2.0-alpha: <Release Znote AAC 2.0-alpha · Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/releases/tag/2.0-alpha)>

But I had to disable memory cache in config.php:
PHP:
// How often do you want highscores (cache) to update?
$config['cache'] = array(
    // If you have two instances installed on same server, make each instance prefix unique
    'prefix' => 'znote_',
    // 60 * 15; // 15 minutes.
    'lifespan' => 5,
    // Store cache in memory/RAM? Requires PHP extension APCu
    'memory' => false
);

Since I tested with default download and run TFS, I also had to change town names and configuration in config.php:
PHP:
// Town ids and names: (In RME map editor, open map, click CTRL + T to view towns, their names and their IDs.
// townID => 'townName' ex: [1 => 'Rookgaard']
$config['towns'] = array(
    1 => 'Trekolt',
    2 => 'Rhyves',
    3 => 'Varak',
    4 => 'Jorvik',
    5 => "Saund"
);

And:
PHP:
// Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
// Town IDs are the ones from $config['towns'] array
$config['available_towns'] = array(1,2,3,4,5);

Edit: I can create an account from the localhost only I dunno why it's isn't working from outside my virtual machine.
I think uniform server by default has an .htaccess file that blocks remote traffic. Look for a hidden .htaccess file in www folder and remove it.

And since your already familiar with using a VM, you should absolutely try to get Ubuntu running on it. APCu is not included by default with UniformServerZ, and is painsome to install in Windows. While in ubuntu you type in one command and it just works.

Well? I don't think it should be an error.

It could be a warning that is simply ignored if the extension is not found.

@Znote what do you 🤔?

You will avoid a lot of topics like this, that I'm seeing not for the first time if you ignore such simple configuration problems.
I'm not fond of ignore-fallback approaches. But I regret not disabling it by default x) I tend to forget and leave it on while tagging releases. >.<. Its cool and increases performance, but not needed at all for new projects.
 
Last edited:
I just tested, seems to work fine:
View attachment 64007

Latest uniform server: <The Uniform Server (https://www.uniformserver.com/)>
TFS 1.4.1: <Release The Forgotten Server 1.4.1 · otland/forgottenserver (https://github.com/otland/forgottenserver/releases/tag/v1.4.1)>
- (Had a weird issue extracting items file, so had to grab the data folder from [Source code (zip)] download)
Znote AAC 2.0-alpha: <Release Znote AAC 2.0-alpha · Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/releases/tag/2.0-alpha)>

But I had to disable memory cache in config.php:
PHP:
// How often do you want highscores (cache) to update?
$config['cache'] = array(
    // If you have two instances installed on same server, make each instance prefix unique
    'prefix' => 'znote_',
    // 60 * 15; // 15 minutes.
    'lifespan' => 5,
    // Store cache in memory/RAM? Requires PHP extension APCu
    'memory' => false
);

Since I tested with default download and run TFS, I also had to change town names and configuration in config.php:
PHP:
// Town ids and names: (In RME map editor, open map, click CTRL + T to view towns, their names and their IDs.
// townID => 'townName' ex: [1 => 'Rookgaard']
$config['towns'] = array(
    1 => 'Trekolt',
    2 => 'Rhyves',
    3 => 'Varak',
    4 => 'Jorvik',
    5 => "Saund"
);

And:
PHP:
// Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
// Town IDs are the ones from $config['towns'] array
$config['available_towns'] = array(1,2,3,4,5);


I think uniform server by default has an .htaccess file that blocks remote traffic. Look for a hidden .htaccess file in www folder and remove it.

And since your already familiar with using a VM, you should absolutely try to get Ubuntu running on it. APCu is not included by default with UniformServerZ, and is painsome to install in Windows. While in ubuntu you type in one command and it just works.


I'm not fond of ignore-fallback approaches. But I regret not disabling it by default x) I tend to forget and leave it on while tagging releases. >.<. Its cool and increases performance, but not needed at all for new projects.
Thanks for the reply, I found two .htaccess files one of them located in www and the other one located in www\special tried to remove both of them still didn't work and this is the IP of my test server Znote AAC (http://20.126.32.105/) u can see it still doesn't create the acccount.
 
Thanks for the reply, I found two .htaccess files one of them located in www and the other one located in www\special tried to remove both of them still didn't work and this is the IP of my test server Znote AAC (http://20.126.32.105/) u can see it still doesn't create the acccount.
1639601844006.png

hmm... Works great? :p
 
Sounds kinda weird but look at this GIF
Thats weird. I went through that without any error, on my local installation and through your IP.
Perhaps your web browser (Brave) is acting up somehow. Or you have a weird password or something that breaks the account registration. 🤔

Got any error messages in UniServerZ\core\apache2\logs\error.log?
 
Thats weird. I went through that without any error, on my local installation and through your IP.
Perhaps your web browser (Brave) is acting up somehow.

Got any error messages in UniServerZ\core\apache2\logs\error.log?
Yes i got some.
Code:
[Wed Dec 15 15:53:36.021368 2021] [core:warn] [pid 5356:tid 720] AH00098: pid file R:/UniServerZ/core/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Dec 15 15:53:36.083931 2021] [mpm_winnt:notice] [pid 5356:tid 720] AH00455: Apache/2.4.46 (Win32) PHP/8.0.3 configured -- resuming normal operations
[Wed Dec 15 15:53:36.083931 2021] [mpm_winnt:notice] [pid 5356:tid 720] AH00456: Apache Lounge VC15 Server built: Feb 18 2021 09:53:33
[Wed Dec 15 15:53:36.083931 2021] [core:notice] [pid 5356:tid 720] AH00094: Command line: 'R:\\UniServerZ\\core\\apache2\\bin\\httpd_z.exe -d R:/UniServerZ/core/apache2 -f R:\\UniServerZ\\core\\apache2\\conf\\httpd.conf -d R:\\UniServerZ\\core\\apache2'
[Wed Dec 15 15:53:36.099517 2021] [mpm_winnt:notice] [pid 5356:tid 720] AH00418: Parent: Created child process 6912
[Wed Dec 15 15:53:36.943244 2021] [mpm_winnt:notice] [pid 6912:tid 864] AH00354: Child: Starting 150 worker threads.
[Wed Dec 15 15:56:53.191752 2021] [php:warn] [pid 6912:tid 1920] [client ::1:50689] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35
[Wed Dec 15 15:56:53.442755 2021] [php:warn] [pid 6912:tid 1920] [client ::1:50689] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35, referer: http://localhost/
[Wed Dec 15 16:03:09.593518 2021] [php:warn] [pid 6912:tid 1912] [client 197.34.61.211:1027] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35
[Wed Dec 15 16:03:09.918862 2021] [php:warn] [pid 6912:tid 1912] [client 197.34.61.211:1027] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35, referer: http://20.126.32.105/
[Wed Dec 15 16:03:11.948703 2021] [php:warn] [pid 6912:tid 1944] [client 197.34.61.211:1032] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35
[Wed Dec 15 16:03:12.130150 2021] [php:warn] [pid 6912:tid 1944] [client 197.34.61.211:1032] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35, referer: http://20.126.32.105/
[Wed Dec 15 16:03:13.280820 2021] [php:warn] [pid 6912:tid 1944] [client 197.34.61.211:1032] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35
[Wed Dec 15 16:03:13.417658 2021] [php:warn] [pid 6912:tid 1944] [client 197.34.61.211:1032] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35, referer: http://20.126.32.105/
[Wed Dec 15 16:03:16.189451 2021] [php:warn] [pid 6912:tid 1928] [client 20.126.32.105:50875] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35
[Wed Dec 15 16:03:16.253450 2021] [php:warn] [pid 6912:tid 1928] [client 20.126.32.105:50875] PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for user 'tfs13'@'localhost' (using password: YES) in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35, referer: http://20.126.32.105/
[Wed Dec 15 16:48:55.526044 2021] [php:error] [pid 6912:tid 1912] [client 197.34.61.211:1156] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 16:49:27.930587 2021] [php:error] [pid 6912:tid 1912] [client 197.34.61.211:1164] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 16:59:30.710100 2021] [php:error] [pid 6912:tid 1928] [client 197.34.61.211:26623] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 18:06:51.367091 2021] [php:warn] [pid 6912:tid 1920] [client 35.242.153.24:32886] PHP Warning:  Undefined array key "HTTP_USER_AGENT" in R:\\UniServerZ\\www\\index.php on line 1
[Wed Dec 15 18:40:49.037161 2021] [php:warn] [pid 6912:tid 1948] [client 34.159.253.246:32890] PHP Warning:  Undefined array key "HTTP_USER_AGENT" in R:\\UniServerZ\\www\\index.php on line 1
[Wed Dec 15 20:48:00.892661 2021] [php:error] [pid 6912:tid 1948] [client 197.34.61.211:1143] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 20:48:33.117195 2021] [php:error] [pid 6912:tid 1920] [client 197.34.61.211:1162] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 20:49:05.361109 2021] [core:warn] [pid 6864:tid 648] AH00098: pid file R:/UniServerZ/core/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Dec 15 20:49:05.376102 2021] [mpm_winnt:notice] [pid 6864:tid 648] AH00455: Apache/2.4.46 (Win32) PHP/8.0.3 configured -- resuming normal operations
[Wed Dec 15 20:49:05.376102 2021] [mpm_winnt:notice] [pid 6864:tid 648] AH00456: Apache Lounge VC15 Server built: Feb 18 2021 09:53:33
[Wed Dec 15 20:49:05.376102 2021] [core:notice] [pid 6864:tid 648] AH00094: Command line: 'R:\\UniServerZ\\core\\apache2\\bin\\httpd_z.exe -d R:/UniServerZ/core/apache2 -f R:\\UniServerZ\\core\\apache2\\conf\\httpd.conf -d R:\\UniServerZ\\core\\apache2'
[Wed Dec 15 20:49:05.380105 2021] [mpm_winnt:notice] [pid 6864:tid 648] AH00418: Parent: Created child process 7072
[Wed Dec 15 20:49:06.340843 2021] [mpm_winnt:notice] [pid 7072:tid 796] AH00354: Child: Starting 150 worker threads.
[Wed Dec 15 20:49:07.355838 2021] [php:warn] [pid 7072:tid 1944] [client ::1:53686] PHP Warning:  mysqli::__construct(): (HY000/2002): No connection could be made because the target machine actively refused it in R:\\UniServerZ\\www\\engine\\database\\connect.php on line 35
[Wed Dec 15 20:49:10.427319 2021] [php:error] [pid 7072:tid 1920] [client 197.34.61.211:1175] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 20:49:32.569050 2021] [php:error] [pid 7072:tid 1928] [client 197.34.61.211:1194] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 20:50:47.744136 2021] [php:error] [pid 7072:tid 1948] [client 197.34.61.211:1215] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 20:56:43.131380 2021] [php:error] [pid 7072:tid 1928] [client 197.34.61.211:1272] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 20:58:55.101127 2021] [php:error] [pid 7072:tid 1936] [client 197.34.61.211:1306] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 21:01:10.748415 2021] [php:error] [pid 7072:tid 1944] [client 197.34.61.211:1437] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
[Wed Dec 15 21:01:57.076001 2021] [php:error] [pid 7072:tid 1944] [client 197.34.61.211:1497] PHP Fatal error:  Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\\UniServerZ\\www\\engine\\function\\general.php:234\nStack trace:\n#0 R:\\UniServerZ\\www\\engine\\function\\general.php(234): long2ip()\n#1 R:\\UniServerZ\\www\\register.php(83): validate_ip()\n#2 {main}\n  thrown in R:\\UniServerZ\\www\\engine\\function\\general.php on line 234, referer: http://20.126.32.105/register.php
 
Hmm, looks like it fails to validate your ip, perhaps because it recognizes you locally through the VM network. (Or an issue with IPv6 address space)

Set $config['log_ip'] and $config['validate_IP'] to false in config.php and see if that resolves the problem
 
Hmm, looks like it fails to validate your ip, perhaps because it recognizes you locally through the VM network. (Or an issue with IPv6 address space)

Set $config['log_ip'] and $config['validate_IP'] to false in config.php and see if that resolves the problem
They were already false I didn't change them
edit: this is my config
 
Hmm try this:

1: in uniserverz, stop apache

2: Turn on PHP development configuration
1639603698745.png

3: Start apache, do a new register. Do you get any errors popping up?
 
Hmm try this:

1: in uniserverz, stop apache

2: Turn on PHP development configuration
View attachment 64016

3: Start apache, do a new register. Do you get any errors popping up?
Yes this error appeared
Code:
Fatal error: Uncaught TypeError: long2ip(): Argument #1 ($ip) must be of type int, string given in R:\UniServerZ\www\engine\function\general.php:234 Stack trace: #0 R:\UniServerZ\www\engine\function\general.php(234): long2ip('3307355603') #1 R:\UniServerZ\www\register.php(83): validate_ip('197.34.61.211') #2 {main} thrown in R:\UniServerZ\www\engine\function\general.php on line 234
1639604037452.png
 
This above did not solve my issue, i got the same issue as @Shalaby.. tho the solution noted by Znote is already in my files

Lua:
/ Checks if an IPv4(or localhost IPv6) address is valid
function validate_ip($ip) {
    $ipL = safeIp2Long($ip);
    $ipR = long2ip((int)$ipL);

Any ideas?
 
if i log in the site dont is possible and take one bug with myaccount.php. any people can help me? sorry my english
 

Attachments

  • imagem_2023-07-07_234150919.png
    imagem_2023-07-07_234150919.png
    22.6 KB · Views: 5 · VirusTotal
  • imagem_2023-07-07_234237738.png
    imagem_2023-07-07_234237738.png
    143.3 KB · Views: 5 · VirusTotal
Back
Top