Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnexpectedValueException #6

Closed
ubback2 opened this issue Oct 29, 2021 · 4 comments
Closed

UnexpectedValueException #6

ubback2 opened this issue Oct 29, 2021 · 4 comments

Comments

@ubback2
Copy link

ubback2 commented Oct 29, 2021

/var/www/peralta/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
/**
* {@inheritdoc}
*/
protected function write(array $record)
{
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(array($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: '.$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);
    }
}
@dclipca
Copy link
Member

dclipca commented Oct 29, 2021

@ubback2 where do you get this? I have never encountered this error. It's very likely you installed Eckmar incorrectly.

@dclipca
Copy link
Member

dclipca commented Oct 29, 2021

@botdigit-admin can you take a look?

@ubback2
Copy link
Author

ubback2 commented Oct 29, 2021

installed Eckmar incorrectly. my fault

@frostytsnowman
Copy link

@ubback2 how did you install incorrectly, I am running into the same error and can't seem to find a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants