shihjay2 / nosh2

NOSH ChartingSystem is an electronic health record system designed exclusively for doctors and patients. This is a new mobile-friendly version that is now based off of the Laravel PHP framework and jQuery. NOSH has FHIR, Bluebutton, ICD-10, GoodRX API, RXNorm API, Phaxio, and UMA support.
Other
75 stars 52 forks source link

Error with Docker login #154

Open DeGroote99 opened 3 years ago

DeGroote99 commented 3 years ago

Installed successfully with docker. Able to create an admin ID and practice demographics. Then logged out and got this error on my LAN

    if (!is_resource($this->stream)) {

        if (null === $this->url || '' === $this->url) {

            throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');

        }

        $this->createDir();

        $this->errorMessage = null;

        set_error_handler([$this, 'customErrorHandler']);

        $this->stream = fopen($this->url, 'a');

        if ($this->filePermission !== null) {

            @chmod($this->url, $this->filePermission);

        }

        restore_error_handler();

        if (!is_resource($this->stream)) {

            $this->stream = null;

            throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $this->url));

        }

    }

    if ($this->useLocking) {

        // ignoring errors here, there's not much we can do about them

        flock($this->stream, LOCK_EX);

    }

    $this->streamWrite($this->stream, $record);

    if ($this->useLocking) {

        flock($this->stream, LOCK_UN);

    }

}
shihjay2 commented 3 years ago

Can you verify if this error shows up on the browser or on the console when docker-compose is running?

DeGroote99 commented 3 years ago

This error is displayed on browser

Sent from my iPhone

On Jan 29, 2021, at 4:17 AM, Michael Shihjay Chen, MD notifications@github.com wrote:

 Can you verify if this error shows up on the browser or on the console when docker-compose is running?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shihjay2 commented 3 years ago

Fixed in commit 01fb5e81042aa34329f41ec6c5b66e8027bf3815