Well, thank everyone for their input thus far but this is what I have found out now.
@growlingflea your suggestion is the first thing I do always no exceptions.
The composer is breaking the code.
Let me tell you how I got to that conclusion.
In the clean install that works, I started moving the code changes. One of my code changes was to the composer.json file. There was one line put in that file that is this.
"OpenEMR\\Staff\\" : "library/staff/src"
Yes, the syntax is correct because it works on the Windows server. I added code and trying to be all studious and use namespace. I know that once lines are added composer. The command “composer update” has to be run to update the dependencies.
Once I run the update, the instance starts doing the
PHP Fatal error: Uncaught Error: Class 'OpenEMR\\Common\\Logging\\Logger' not found in /var/www/html/mindfulemr3/services/VersionService.php:47\nStack trace:\n#0 /var/www/html/mindfulemr3/interface/globals.php(517): OpenEMR\\Services\\VersionService->__construct()\n#1 /var/www/html/mindfulemr3/interface/main/tabs/main.php(30): require_once('/var/www/html/m...')\n#2 {main}\n thrown in /var/www/html/mindfulemr3/services/VersionService.php on line 47, referer: http://52.35.13.101/mindfulemr3/interface/login/login.php?site=default
So I copied all the clean install files back and reset the sqlconf and everything goes back to working.
What is the proper way to update namespace using composer in Linux?
Here is more defined what was added.
"psr-4" : {
"OpenEMR\\Common\\" : "common",
"OpenEMR\\Entities\\" : "entities",
"OpenEMR\\Services\\" : "services",
"OpenEMR\\Repositories\\" : "repositories",
"OpenEMR\\Encounter\\Services\\" : "interface/patient_file/encounter/Services",
"OpenEMR\\Admin\\" : "library/admin/src",
"OpenEMR\\Core\\" : "library/core/src",
"OpenEMR\\Menu\\" : "library/menu/src",
"OpenEMR\\Calendar\\" : "library/calendar/src",
"OpenEMR\\Sample\\" : "library/sample/src",
"OpenEMR\\Reminder\\" : "library/reminder/src",
"OpenEMR\\Billing\\" : "library/billing/src",
"OpenEMR\\Pdf\\" : "library/pdf/src",
"OpenEMR\\Rx\\Weno\\" : "library/weno/src",
"OpenEMR\\Staff\\" : "library/staff/src"
}
},
If I don’t run the dependencies update then my code does not find the library file.