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

Warnings when debug mode is enabled #15668

Closed
2 tasks done
swift2512 opened this issue Oct 15, 2024 · 1 comment
Closed
2 tasks done

Warnings when debug mode is enabled #15668

swift2512 opened this issue Oct 15, 2024 · 1 comment

Comments

@swift2512
Copy link

Debug mode

Describe the bug

image
Log is filled with
[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/snipeit/vendor/barryvdh/laravel-debugbar/src/DataCollector/QueryCollector.php on line 380
warninglog
[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/snipeit/vendor/barryvdh/laravel-debugbar/src/DataCollector/QueryCollector.php on line 380
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
warninglog[13:28:24] LOG.warning: strpos(): Passing null to parameter #1 ($haystack) of type string is depreca...
<...>

Reproduction steps

Debug mode enabled

Expected behavior

no warnings

Screenshots

No response

Snipe-IT Version

Latest pull 7.0.13

Operating System

ubuntu

Web Server

apache

PHP Version

8.3

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

It may got introduced with recent Snipe-IT updates because a month or so ago logs were empty. (Countered on different installs running latest version)

@snipe
Copy link
Owner

snipe commented Oct 15, 2024

That's fine - they're just warnings.

@snipe snipe closed this as completed Oct 15, 2024
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

2 participants