PHP8.1 CI3 deprecated errors |
-
SwellFellar Newbie

-
Posts: 1
Threads: 0
Joined: Sep 2016
Reputation:
0
(11-07-2023, 02:26 PM)akeni Wrote: I'm looking to migrate from PHP7.4 to PHP 8.1 and I get errors like:
PHP Error was encountered
Severity: 8192
Message: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
Filename: libraries/Javascript.php
Line Number: 658
Line Number Trace:
$str = $this->_open_script($external_file);
}
elseif (strpos($this->_javascript_location, 'http://') !== FALSE)
{
$str = $this->_open_script($this->_javascript_location.$external_file);
I thought CI3 can support PHP 8? Has anyone ran into these same issues?
You have to update that section to this:
Code: elseif (!empty($this->_javascript_location) && strpos($this->_javascript_location, 'http://') !== FALSE)
{
$str = $this->_open_script($this->_javascript_location.$external_file);
}
}
|
Messages In This Thread |
RE: PHP8.1 CI3 deprecated errors - by SwellFellar - 09-12-2024, 05:14 PM
|