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

bin2hex(): Passing null to parameter #1 ($string) of type string is deprecated #959

Closed
deric opened this issue Jan 19, 2024 · 0 comments · Fixed by #1005
Closed

bin2hex(): Passing null to parameter #1 ($string) of type string is deprecated #959

deric opened this issue Jan 19, 2024 · 0 comments · Fixed by #1005
Assignees
Labels
area/view Affects an entire view bug Something isn't working
Milestone

Comments

@deric
Copy link

deric commented Jan 19, 2024

Deprecated: bin2hex(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Redis/VolatileStateResults.php on line 135

relevant part of code:

134             if ($type === 'service' && $row->host instanceof Host) {
135                 $hostStates[bin2hex($row->host->id)] = $row->host->state;
136                 if (empty($hostStateKeys)) {
137                     $hostStateKeys = $row->host->state->getColumns();
138                 }
139             }

To Reproduce

  1. Load data from redis
  2. Open icingaweb

Expected behavior

Don't show deprecation warnings

Your Environment

  • Icinga DB Web version (System - About):
  • Icinga Web 2 version (System - About): 2.12.1
  • Icinga 2 version (icinga2 --version): r2.14.1-1
  • Icinga DB version (icingadb --version): v1.1.1
  • PHP version used (php --version): 8.2.7
@nilmerg nilmerg self-assigned this Apr 9, 2024
@nilmerg nilmerg added bug Something isn't working area/view Affects an entire view labels Apr 9, 2024
@nilmerg nilmerg modified the milestones: 1.1.2, 1.2.0 Apr 9, 2024
@nilmerg nilmerg linked a pull request Apr 9, 2024 that will close this issue
@nilmerg nilmerg modified the milestones: 1.2.0, 1.1.3 Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/view Affects an entire view bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants