I wish to run a PHPR app from a Windows 2019 server using IIS. On the same server, I have PHP v8.2x installed which runs another couple small unreleated apps. I also have a Ubuntu Hyper-V VM running Ubuntu 24.04LTS. The Ubuntu VM is where I have a Postgres database being hosted within a Docker container.
Using the PHPR app from my windows 11 workstation, all works well, listing / adding / editing records but I do not wish to continually have to build the app each time I wish to run it so, I setup a site in IIS and copied all the app files to the server into it's own directory that were generated by PHPR when the app was built. I have all but one of the PHP dependencies enabled including the PHP dependency for Postgres.
When I run the app from a web browser with the server URL, it generates this error:
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in C:\inetpub\wwwroot\BidList\classes\projectsettings.php:2289 Stack trace: #0 C:\inetpub\wwwroot\BidList\classes\projectsettings.php(2289): array_keys() #1 C:\inetpub\wwwroot\BidList\classes\runnerpage.php(1032): ProjectSettings->getGridTabs() #2 C:\inetpub\wwwroot\BidList\classes\menupage.php(9): RunnerPage->construct() #3 C:\inetpub\wwwroot\BidList\menu.php(45): MenuPage->construct() #4 {main} thrown in C:\inetpub\wwwroot\BidList\classes\projectsettings.php on line 2289
Tried to find an answer but not quite finding any information about it. I initially assumed it was due to not finding the database listed in the PHPR configuration file but all looked fine. Ideas?