PHP-Minecraft-Query-API icon indicating copy to clipboard operation
PHP-Minecraft-Query-API copied to clipboard

Serious problem

Open lxzcl opened this issue 5 years ago • 1 comments

The following is normal

http://api.mymc.xyz/json.php?host=mc.hypixel.net&port=25565

This

http://api.mymc.xyz/json.php?host=evermc.net&port=25565

There are more errors in the returned data, which prevents my project from using this aip normally.

The error is as follows

<br /> <b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/www/wwwroot/api.mymc.xyz/closeTags.php</b> on line <b>9</b><br /> <br /> <b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/www/wwwroot/api.mymc.xyz/closeTags.php</b> on line <b>10</b><br /> { "status": "Online", "motd": {...........

lxzcl avatar Feb 26 '21 11:02 lxzcl

The problem is solved by: in json.php /*require_once 'closeTags.php';*/ /*'html' => closeTags($hostNameHtml)*/ /*'html' => closeTags($hostNameHtml)*/

But the fundamental problem is still not solved. . . Hope to improve

lxzcl avatar Feb 26 '21 11:02 lxzcl