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)
@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
@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:
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: