Saving changes in panel throws error with AutoId installed

I recently faced a strange issue with AutoId plugin. Since the repository was archived a few days ago I cannot react in the issue I created there, so I try to ask here.

I have Starter Kit (Kirby 3.7.5) with AutoId 2.8.0 installed. The hosting runs on PHP 7.4, so the latest Kirby and AutoId versions are not an option. Whenever I change anything in the panel and hit Save, * The JSON response could not be parsed* error is thrown. After I dismiss the error message, sometimes the changes are saved, sometimes not. Sometimes another popup is shown stating *Exception: undefined *.

I do not even have to put autoid field in any blueprint. After I remove AutoId from plugin folder, panel works again as expected.

Has anyone experienced similar problems?

hi @czJonny ,

i will try to replicate your issue and report back within a day or two.

osx valet, php 7.4, kirby 3.7.5 starterkit zip, autoid plugin 2.8.0 zip

added plugin to folder. saving content works fine.
added autoid field to notes blueprint. saving content works fine. notes get assigned missing autoids as expected.

sorry i can not replicate the issue.

Thanks for the efford! I was able to get it working on localhost, which means the problem is buried somewhere inside the hosting setup… So far I have no idea what is wrong specifically, but I will keep trying.

Just a little update on my ongoing investigation.

I get errors depending on the action I make, be it saving a page, renaming or changing its status. Sometimes it is JSON response could not be parsed, sometimes even Premature end of script headers: index.php .

At first I suspected SQLite library. But I was able to connect to the sqlite file in the template, even insert new rows. So it should not be the cause of the error messages.

Then I discovered that even though I get error every time, AutoID seems to assign the IDs correctly. Which is really confusing. :face_with_raised_eyebrow: