Field input from parent gets passed to subpage

Hello! :slightly_smiling_face:

I’ve got this weird bug and I don’t understand whats causing it. I have a page with some fields, f.ex pageText that is a writer-field. Its child pages also have the same field with the same name and functionality. What happens is that the input on the parent page will automatically overwrite whats inside of the field on the child.

So for example if parent page’s pageText field has the input ‘some text’, the child’s pageText field will also be ‘some text’. Happens both in kirby 4 and kirby 3.9 and only on the live server.

Anyone got an idea to what could be is causing this?

Hard to tell, but maybe some server-side caching issue.

1 Like

Thanks for your response @texnixe! I’ll ask my client if they have serverside caching activated. Another thing, while the site is being developed I have a protection on it to prevent none kirby users to view it, using this snippet:

<?php if (!$kirby->user() && $site->maintenance()->isTrue() && $page->uid() != 'maintenance') {
  go('maintenance');
} ?>

But the maintenance page doesn’t load as there is to many redirects, my client suggested that it could be an error in the .htaccess file that caused this, but I can’t see what that could be. We are using kriby’s standard .htaccess, the only extra thing is the addType php 8.1.

Never had this problem with the snippet earlier and the only thing thats different this time is that site currently is living on a subdomain. Do you have a clue to what could cause this?

I’m sorry if the should have been a different thread.

It was an error on my part, so you can ignore my post!

It was server side caching that was the issue, thanks for helping me with this @texnixe!