Composer self-update killed OpenEMR

(Sherwin Gaddis) #1

I was installing Twig. I noticed that the composer was out of date. So I tried running Composer self-update. Well that did not work. I was getting a similar error to this one with the dompdf

So, I ran this command sudo chown -R $USER ~/.composer.

Apache went down hard after doing that. I tried to undo the comand by running

      sudo chown -R root:root ~/.composer

The did nothing to reverse the issue.

The error message in the error log is

   Uncaught Error: Class 'OpenEMR\\Common\\Logging\\Logger' not found in /var/www/html/t/services/VersionService.php:47

This tells me that namespace or something is not working. I tried to pull up just a plain HTML page and it would not load to the browser (Any Browser)

Have not tried to reinstall apache.

OpenEMR Version
I’m using OpenEMR version 5.0.1(4)

I’m using: All of them

Operating System
I’m using: Ubuntu 18.04

Did you check the logs? Was there anything pertinent in them? Paste them here (surround with three backticks (```) for readability

Uncaught Error: Class 'OpenEMR\\Common\\Logging\\Logger' not found in /var/www/html/t/services/VersionService.php:47

(Sherwin Gaddis) #2

CLI installed worked to fix the problem.

The problem was the composer.phar file got deleted.
Once that was restored. All things came back into being.