Yes, it was a normal upgrade no mods involved. I did the OS upgrade from 20.04 to 22.04 of Ubuntu first. Once that was completed and rebooted. I did not check to see if the current v6 was still working properly after the OS upgrade. I did not find out that the OS upgrade was wonky until I tried to login page of v7. That is when I found that the OS upgrade broke Apache. Apache was not parsing PHP.
This page helped to fix the issue. Once I updated the mods enabled. Then it would parse the page but it seems like the page only sends the HTML portion and not the stuff that PHP would parse during the page load. I burnt a lot of time trying stuff to fix it so that if anyone else had this issue. There could be answer out here. But nothing has panned out.
So, one of my troubleshoot tricks is to go back to the beginning and set the config to 0 so I can run the install. That is when I got this error.
PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/var/www/html/ehr/library/classes/../../sites/default/documents/6/6): Failed to open directory: Permission denied in /var/www/html/ehr/setup.php:50\nStack trace:\n#0 [internal function]: RecursiveDirectoryIterator->__construct()\n#1 /var/www/html/ehr/setup.php(50): RecursiveDirectoryIterator->getChildren()\n#2 /var/www/html/ehr/setup.php(1618): recursive_writable_directory_test()\n#3 {main}\n thrown in /var/www/html/ehr/setup.php on line 50
I deleted the patient chart, because I could put it back later, and redid the permissions on all of the folders. Then walked through the install. That is when I could see that PHP is working normally. Go through the enter install process and created a new database. Then, no joy.
I have seen this before in the error log of v7 but as you said. No one complained about the pages not working properly, yet.
I have another clean install of v7 on PHP 8.1.3. I have not had any issues with it yet.
I checked and smarty is writing the cache directory. But still page does not display correctly.