You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem
Passing result of a query to ee()->dbutil->csv_from_result().
Query rows contain values that are blank / empty as per image example:
When the "description" value in this row is processed, a deprecation warning is thrown by php.
Error Messages
Deprecated
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
ee/legacy/database/DB_utility.php, line 187
Severity: E_DEPRECATED
Screenshots / Videos / Template Code
The lines giving the error (from line 184 of DB_utility.php)
// Next blast through the result array and build out the rows
foreach ($query->result_array() as $row) {
foreach ($row as $item) {
$out .= $enclosure . str_replace($enclosure, $enclosure . $enclosure, $item) . $enclosure . $delim;
}
$out = rtrim($out);
$out .= $newline;
}
Environment Details:
Version: 7.4.11
PHP Version 8.2
Possible Solution
wrap line containing str_replace() with test for $item != ""
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Description of the problem

Passing result of a query to
ee()->dbutil->csv_from_result()
.Query rows contain values that are blank / empty as per image example:
When the "description" value in this row is processed, a deprecation warning is thrown by php.
Error Messages
Screenshots / Videos / Template Code
The lines giving the error (from line 184 of DB_utility.php)
Environment Details:
Possible Solution
wrap line containing
str_replace()
with test for$item != ""
The text was updated successfully, but these errors were encountered: