Deprecated: strip_tags() in searchMultipleTables
4 posts by 3 authors in: Forums > CMS Builder
Last Post: about an hour ago (RSS)
By ht1080z - 9 hours ago
Hi,
I use cmsb v3.71 with php 8.1 and receive error
Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /home/xxxxxxx/public_html/search.php on line 118
where i have:
list($searchRows, $searchDetails) = searchMultipleTables($searchTables, $searchOptions);
Is there anything I can do to fix this?
By kitsguru - 5 hours ago
in viewer_functions.php find "functionsearchMultipleTables($searchTables, $searchOptions)"
Look for
$record['_summary'] = strip_tags($record['_summary']);
// change to
$record['_summary'] = strip_tags($record['_summary'] ?? "");
By Dave - about an hour ago
Thanks all, for the report and fix! We'll include this in the next release.
interactivetools.com