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
14 Aug 2024
Topics
6
Posts
30

- [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.

» DASH.MC-SERVERS.TECH |

» STORE.MCST.IO |

_pvpsmash_ · over 2 years ago
Partydragen

Partydragen

Management
Joined
15 Jan 2016
Last Seen
20 Nov 2024
Topics
15
Posts
112

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 · over 2 years ago
_pvpsmash_

_pvpsmash_

Member
Joined
21 Jun 2022
Last Seen
14 Aug 2024
Topics
6
Posts
30

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.

» DASH.MC-SERVERS.TECH |

» STORE.MCST.IO |

_pvpsmash_ · over 2 years ago