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

PHP message: PHP Fatal error: Uncaught TypeError: file_exists(): Argument #1 ($filename) must be of type string, null given in /src/vendor/rollbar/rollbar/src/DataBuilder.php:502 #571

Closed
marcrichard2013 opened this issue May 9, 2022 · 0 comments · Fixed by #572
Assignees
Labels
Type: Bug Fix a component so that its behavior aligns with its documentation.

Comments

@marcrichard2013
Copy link

marcrichard2013 commented May 9, 2022

Hi,

Regular I obtain this error in my log. I use PHP 8.1.4 and PHP Rollbar 3.1.2

  | 2022/05/09 13:50:52 [error] 9#9: *17 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: file_exists(): Argument #1 ($filename) must be of type string, null given in /src/vendor/rollbar/rollbar/src/DataBuilder.php:502
  | Stack trace:
  | #0 /src/vendor/rollbar/rollbar/src/DataBuilder.php(502): file_exists(NULL)
  | #1 /src/vendor/rollbar/rollbar/src/DataBuilder.php(489): Rollbar\DataBuilder->addCodeContextToFrame(Object(Rollbar\Payload\Frame), NULL, NULL)
  | #2 /src/vendor/rollbar/rollbar/src/DataBuilder.php(453): Rollbar\DataBuilder->makeFrames(Object(Rollbar\ErrorWrapper), true)
  | #3 /src/vendor/rollbar/rollbar/src/DataBuilder.php(414): Rollbar\DataBuilder->makeTrace(Object(Rollbar\ErrorWrapper), true, 'E_WARNING')
  | #4 /src/vendor/rollbar/rollbar/src/DataBuilder.php(403): Rollbar\DataBuilder->getErrorTrace(Object(Rollbar\ErrorWrapper))
  | #5 /src/vendor/rollbar/rollbar/src/DataBuilder.php(374): Rollbar\DataBuilder->getBody(Object(Rollbar\ErrorWrapper), Array)
  | #6 /src/vendor/rollbar/rollbar/src/Config.php(725): Rollbar\DataBuilder->makeData('error', Object(Rollbar\ErrorWrapper), Array)
  | #7 /src/vendor/rollbar/rollbar/src/RollbarLogger.php(215): Rollbar\Config->getRollbarData('error', Object(Rollbar\ErrorWrapper), Array)
  | #8 /src/vendor/rollbar/rollbar/src/RollbarLogger.php(120): Rollbar\RollbarLogger->getPayload('d3b0fdf896cd489...', 'error', Object(Rollbar\ErrorWrapper), Array)
  | #9 /src/vendor/rollbar/rollbar/src/Handlers/ErrorHandler.php(46): Rollbar\RollbarLogger->log('error', Object(Rollbar\ErrorWrapper), Array)
  | #10 [internal function]: Rollbar\Handlers\ErrorHandler->handle(2, 'fopen(/src/writ...', '/src/vendor/cod...', 84)
@danielmorell danielmorell self-assigned this May 13, 2022
@danielmorell danielmorell added the Type: Bug Fix a component so that its behavior aligns with its documentation. label May 13, 2022
danielmorell added a commit that referenced this issue May 13, 2022
Fixed #571 added null check on $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix a component so that its behavior aligns with its documentation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants