I basically followed this guide https://getkirby.com/docs/guide/virtual-pages/content-from-database
to create Pages from a database.
With the Update to 3.6.3 to 3.6.4 one problem occurs:
Fields that are required:true somehow aren’t proper recognized anymore. I cannot publish pages, it gives me the exception that the required fields have no content - but they do.
There is field-content in the database, and if i dump $page->children() method, there is data in the fields too. I don’t use any status-hooks.
I read 3.6.4’s changelog but can’t quite figure it out. Everything was working perfect with Kirby 3.6.3
Edit: While debugging, I realized that this behaviour started with v3.6.4 not 3.7.
I updated the post accordingly. Maybe things become a little clearer now ? Thanks
Thank you so much for looking into this.
I installed a completely fresh copy with none of my plugins, model adjustments etc.
I exactly followed your guide mentioned above. It’s working fine in 3.6.3. But if i upgrade to 3.6.4 (and above) any required field gets not recognized and the panel doesn’t let me publish the page. Though the field gets saved in the db.
Even if i hardcode the value from any required field in the model - the panel still behaves as if there is no data in it.
Ok, I just checked this with a new Plainkit and at first thought I could reproduce the issue, until I noticed that I had a wrong field name in the table. After changing that, everything worked as expected, tested with 3.7.0.2, with and without requiring the field.
Hm no, i don’t have any wrong field names. It used to work for a long time … But: In the Plainkit there are no languages activated. And it works !
If you activate languages and add any language so that your content file is renamed to eg. comments.de.txt the error occours again. If I deactivate language and delete the language its all working fine again. So it seems to be an issue with language support maybe ? Thanks for your patience !
Oh, ok, that’s a different story. How have you implemented your languages in the database and in the model,then? Your model above doesn’t have any translations?
I actually don’t have any but the default language running. I just activated languages, because i always do … I’ll deactivate the languages for now - if translations will be needed i will dig deeper in the language implementation/database topic. Btw: Is there any cookbook/guide out there ? For now i’am happy to found the cause.
Thanks for bearing with me Have a good weekend !