NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Bug API error nameless:invalid_post_contents (meta: {"field":"tps"})
Started by _pvpsmash_

_pvpsmash_

_pvpsmash_

Member
Joined
21 Jun 2022
Last Seen
20 Aug 2022
Topics
6
Posts
22

- [Wed 15:05:54 ERROR NamelessMC] Cannot connect to your website, got an unexpected API error: API error nameless:invalid_post_contents (meta: {"field":"tps"}). Run /forums last_error to retrieve the full stack trace.

 

 

Any clue to how to fix this or why its spamming my entire console? Forums are linking up, so idk why its throwing this spam.



Please help. thx.

FOUNDER OF; PVPSMASH.COM, PVPSMASH.NET & TITAN-MC.NET MINECRAFT NETWORKS.

_pvpsmash_ · about 1 month ago
Partydragen

Partydragen

Management
Joined
15 Jan 2016
Last Seen
20 Aug 2022
Topics
14
Posts
109

HI @_pvpsmash_

 

This is a bug with is fixed in next release, However you can fix this by editing the file /modules/Core/includes/endpoints/ServerInfoEndpoint.php then change line 23 from

$api->validateParams($_POST, ['server-id', 'max-memory', 'free-memory', 'allocated-memory', 'tps']);

to 

$api->validateParams($_POST, ['server-id', 'max-memory', 'free-memory', 'allocated-memory']);

 

You see the github commit here https://github.com/NamelessMC/Nameless/commit/d3de874575293b6ee2991050d8d9539e66983de4

My minecraft name: Partydragen
My Website: https://partydragen.com/
Owner of CubedCraft network: https://cubedcraft.com/

Partydragen · about 1 month ago
_pvpsmash_

_pvpsmash_

Member
Joined
21 Jun 2022
Last Seen
20 Aug 2022
Topics
6
Posts
22

Thank you! Loving it so far!

 

One more thing - where is the absolute path to change the CSS/DEFAULT server banner that goes by server name? - ADMINCP does not allow, tried manually too.

FOUNDER OF; PVPSMASH.COM, PVPSMASH.NET & TITAN-MC.NET MINECRAFT NETWORKS.

_pvpsmash_ · about 1 month ago