Can't open the panel in remote server: internal error ('The JSON response from the API could not be parsed')

Hi there,
I have a website that is hosted in a shared server in ‘domain.com’. The website is live for almost a year and it worked perfectly. Last week I made some changes in the website (added some fields to the yml file and also updated a .txt file in one of the pages inside the content folder) and published it to the website in the remote server. since then I get this error when trying to get into the panel:

sometime I manage to login and sometimes I can’t even get to the login page.
when I am in the panel every click or refresh sends me to this error message.

In the console log I see this:

and it keeps popping every few seconds.

I talked to the support of the server asked them to turn off varnish cache but it was already off.

I looked at many threads that mentioned this error but nothing seems to work.
Any idea please?
Thanks a lot

The question is if this error is due to changes you made, or if this is just a coincidence and your provider made changes.

Please explain exactly, what sort of changes you made (post blueprint, template) and if these changes also included any template changes (if you added fields, you probably also change the logic to render those fields).

Also, what is your Kirby version and PHP version.

Thanks for the reply

I tried to upload this website to a different host (cloudways) and there the panel works great. In addition I tried to upload a different website (that works) instead of the site that doesn’t work and it is also gives error when trying to reach the panel - so I assume it is a server error (?).

I wish to have another try here - the host support say that the log error is this and this is something that needs to be changed in code, any idea what this means:

“Uncaught Error: Class ‘Kirby’ not found in /hermes/bosnacweb05/bosnacweb05/bosnacweb05ab/b1569/dom.studiaathena91386/public_html/index.php:5
Stack trace:
#0 {main}
thrown in /hermes/bosnacweb05/bosnacweb05/bosnacweb05ab/b1569/dom.studiaathena91386/public_html/index.php on line 5”

BTW - This site uses kirby version 3.5.7.1
The php of the host is 7.4

Thanks a lot!

Hm, that is the main index file that creates the Kirby object and then renders it. I somehow doubt that this is the issue, because then Kirby wouldn’t run at all, i.e. the frontend wouldn’t run either.

On a side note, PHP 7.4 has reached end of life, so I’d suggest you update to 8.0.

It might be worth trying if a fresh Starterkit works on that server.

you think I should try use the latest kirby version?
What version of php it requires? 8?

Thanks!

The latest Kirby version requires PHP 8+. But what I meant was to try a Starterkit (of course in a version that fits your installed PHP version), to check if even something basic like that doesn’t work on that server.

If not, then changing the provider makes the most sense, at least if they cannot help you to get it to run.

If the Starterkit works, but your projects don’t, then it might be worth looking further into why they don’t.

I see
How can I get a fresh starterkit of my version actually?

In the getkirby site its only the latest, isnt it?

The latest 7.4 compatible version is tag 3.7.5