My website is printing unknown character at the end of the page

Hi, i like the service of this host. But i have a problem, my website is used as server for an application that im developing. And, when i test the app with my website, it prints an unknown character like below:

This makes the response invalid, I’m trying to fix it but I don’t see the error, somebody can help me, please? if I test the app with localhost, it works.

This is the part of code called on the image: (by order)

https://k60.kn3.net/5/1/8/6/2/0/EFE.png    

https://k60.kn3.net/0/B/4/F/A/1/A0F.png

https://k61.kn3.net/2/C/A/9/9/2/2B3.png

@bra101yan Your “Status.php” and other files have “ob_start()” function which has been disabled 2 days ago by Admin.
Remove “ob_start()” function and then try again.

Thanks for your fast reply. But I removed ob_start(); and ob_end_flush(); and still doesn’t work. I can’t sanitize the server response due I don’t know the unknown character. If I copy him, it doesn’t exist.

This are a JSON code response of the server:

If I need an account with more privileges to make this work, I can pay for that. Thanks

Hi @bra101yan!

Please lower your PHP version and try again: cPanel > Settings > General > Change PHP version > 5.6

@bra101yan [quote=“bra101yan, post:1, topic:72600”]
my website is used as server for an application that im developing. And, when i test the app with my website, it prints an unknown character like below:
[/quote]

Can your be more specific about your issue?? what are your trying to do?
Here “app” refers to??
If possible post screenshot.

Hi, sorry for the misunderstood. It’s an Android app which works as a level editor. And I developed all the project on my computer with XAMPP, so I just uploaded all the files and set up the databases, and all seems fine. But when I test my app with the server, it returns “invalid response” due to an invalid character in the response. When I uploaded the files, the server was working fine. But a few hours later, the responses were bad, and I had this problem. The app basically receives JSON code and decode it, then convert it into an array and use it on the app. My app is in Spanish, but there is a screenshot of the error:

If I remove the part that checks the JSON code the compiler throws an error because it doesn’t detect the server response as JSON.

So, if I connect the client with localhost, it will run fine:

<a href=“https://k60.kn3.net/2/B/4/E/1/0/8B7.png” ">second img

But, like I’d said, hmm, the server was working when I uploaded. A few hours later, this was the trouble. I don’t know if is an unknown character, but works fine the app with XAMPP, and with the server, the same files, the same DBs, all, and I have this problem. Again, this is the HTTP_RESPONSE of the application:

third image

If this isn’t fixable, I will need to wait until I can buy a VPS to install XAMPP.
I’ll try to re-upload the website. I hope will fix that.

Thanks @NGiNX
I changed the PHP Version but is still not working.

1 Like

Nevermind, please close this thread. My problem was fixed by uploading again the files. Thanks for the attention!. :smiley:

1 Like

@bra101yan I’m glad that issue is solved :slight_smile:
Do post if you’ve any issues.