TWDB writing to the same database.json file

What is in your .htaccess file, and what permissions are set on your server folders?

Apologies, mine are called storevalue.php and getvalue.php

image

image

This is the server that works fine, the new one is set up the same.

You do have storeavalue.php not Storevalue.php!
Make sure they are all named the same in the subfolders

I have my database.json files set with permission 600, this prevents outside access (but is OK for the php files to write to)

I still feel you issue is either urls in the app or filenames on the server....

Yes they are all the same as they have been copied and pasted.
Thanks, I'll double check everything, but I'm pretty sure we exhausted all those options before posting here.