0

A PHP Error was encountered Severity: Notice Message: Trying to access array offset on value of type null Filename: mysqli/mysqli_driver.php Line Number: 120

This is what I have on the line in the specified file:

// Do we have a socket path?
if ($this->hostname[0] === '/')
{
    $hostname = NULL;
    $port = NULL;
    $socket = $this->hostname;
}
else
{
    $hostname = ($persistent === TRUE)
        ? 'p:'.$this->hostname : $this->hostname;
    $port = empty($this->port) ? NULL : $this->port;
    $socket = NULL;
}
RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
Atsa'am
  • 27
  • 5
  • 1
    it means `$this->hostname` is null – yhu420 Mar 14 '23 at 01:21
  • So what should I do because it has always run through in other applications I have hosted. – Atsa'am Mar 14 '23 at 06:05
  • please added detail for your CI framework version. If this old CI, please upgrade into new. If this is new or late (3.* ), you can report this into CI group, because this consider a bug.. There is 3 solution: hide the warning, fix to make sure no warning, or submit the bug and the community fixed it – user2905554 Mar 14 '23 at 06:07
  • Thank you, I have hid the warning. I will download a new CI and start working with it. – Atsa'am Mar 14 '23 at 06:49

0 Answers0