• 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 Znote, PHPMailer times website out

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,088
Solutions
15
Reaction score
379
Location
Sweden
YouTube
Joriku
Hi,
so.. recently tried to add PHPMailer onto Znote acc. However, as soon as you hit recover account. It 504 the whole website and does not print anything out in nginx logs. Anyone had the same issue or any idea of how I can manage to get errors out of this?
Using the latest Mailer version, located inside main directory.

- Tried setting up a fresh system, same thing happens
1696295294501.png
 
Last edited:
Update, this happens while creating an account on MyAcc aswell..

504 Gateway Time-out​

Currently, no clue why..

Will keep updated if I manage to figure this out, if anyone got any tips or can point me towards the fault. It would be appreciated.

Update:
Myacc gave prints.


Nginx logs
Lua:
2023/10/04 20:07:09 [error] 44042#44042: *1679 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 85.147.172.85, server: azuriaot.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com"2023/10/04 20:07:23 [error] 44042#44042: *1691 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 45.128.38.240, server: azuriaot.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com"2023/10/04 20:07:25 [error] 44042#44042: *1691 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 45.128.38.240, server: azuriaot.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com"2023/10/04 20:07:28 [error] 44042#44042: *1691 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 45.128.38.240, server: azuriaot.com, request: "GET /?account/create HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com", referrer: "https://azuriaot.com/"2023/10/04 20:07:31 [error] 44042#44042: *1696 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 45.128.38.240, server: azuriaot.com, request: "POST /?account/create HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com", referrer: "https://azuriaot.com/?account/create"2023/10/04 20:07:32 [error] 44042#44042: *1696 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 45.128.38.240, server: azuriaot.com, request: "GET /tools/validate.php?account=12341234&uid=0.4856632643452674 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com", referrer: "https://azuriaot.com/?account/create"2023/10/04 20:08:04 [error] 44042#44042: *1692 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 45.128.38.240, server: azuriaot.com, request: "GET /tools/validate.php?password=admin123&password2=admin123&uid=0.16554512796135712 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com", referrer: "https://azuriaot.com/?account/create"2023/10/04 20:08:06 [error] 44042#44042: *1692 FastCGI sent in stderr: "PHP message: PHP Notice:  unserialize(): Error at offset 0 of 12 bytes in /var/www/azuria/system/libs/pot/OTS_DB_MySQL.php on line 102" while reading response header from upstream, client: 45.128.38.240, server: azuriaot.com, request: "GET /tools/validate.php?name=Jorima&uid=0.6565047493893259 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "azuriaot.com", referrer: "https://azuriaot.com/?account/create"

Leaving window blank results in error upon entering webpage
Lua:
// cache system. by default file cache is used    'cache_engine' => 'auto', // apc, apcu, eaccelerator, xcache, file, auto, or blank to disable.

OTS_DB_MYSQL.php
Replacing: (line 101)
Lua:
$tmp = unserialize($tmp);


With
Lua:
try {                    $tmp = unserialize($tmp);                } catch (Throwable $e) {                    // Handle the unserialize error and log it to a file                    $errorMessage = "Unserialize Error: " . $e->getMessage();                    error_log($errorMessage, 3, "/var/www/azuria/error/504_error.log");                    // Optionally, you can also display a user-friendly error message on the web page                    echo "An error occurred while processing your request. Please try again later.";                }

Does not print error message nor give it out inside an log file


Update again:
Using an fresh installed MyAcc version does not have this issue.
Using an already setup version of the same myacc using a template has this issue.

Solved, quick solution:
Take edited template over to a fresh installed MyAcc version

Znote acc PHPMailer issue still remains unsolved.
 
Last edited:
I don't think it can, since my tries have been unsuccessful..

Tried both clean setups and old setup.

Current thought:
Godaddy domain blocking 25, 465 and 587 ports / smtp servers since they're really strict regarding it.

Todo:
Virtual Machine without a domain name running a clean znote acc installation -> current install and try SMTP server connections. - This will answer the Godaddy question / others.

587 Results in errors while 465 results in timeout.


Issue has been solved, managed to figure things out.
1. Gmail's old method is no longer working to use (Less secure apps)

2. Setup of API key is needed.

3. A method to import API key is needed, example below:
config.php
Lua:
'apiKey' => "Your_apiKey", // Api key from sendgrid as an example.

mail.php
Lua:
// Use your SendGrid API key as the SMTP username
$mail->Username = 'apikey';

 // Use your SendGrid API key as the SMTP password
$mail->Password = $this->_config['apiKey'];

4. Using right ports, avoid any blockage of ports. UFW, Godaddy etc.
 
Last edited:
Back
Top