What upgrade first - NextCloudPi (from v1.52.1 to v1.52.2) or PHP (from 7.4.33 to 8.0)

So do you have a working backup to go back to?
You might find the solution in tgis thread helpfull

Or even in my thread i have linked thereā€¦

What i did to get everything back working was a fresh install of NCP, set up everything and then restore the NC-Backup and update that to 26.0.1
Then i had to manage to switch to the correct php version in apache2 and cli and i was save.