Open dirkjf opened 4 years ago
I rolled back PHP to version 7.3.12 to confirm the problem is linked to PHP 7.4. On 7.3.12 everything works as expected.
I also found two kind of errors in PHP 7.4 related to searching in Grav CMS:
??
Operator
return $docs->fetch(PDO::FETCH_ASSOC)['value'] ?? "";
{}
with []
// Line 396
return preg_match("#$c{2}$#", $str, $matches) && $matches[0][0] == $matches[0][1];
// Line 416 if (in_array($matches[1][2], ['w', 'x', 'y'])) { $return = false; }
Hope this help.
Hello,
I am facing same issue in php 7.4. I tried @iambudi 's solution but in TNTSearch.php, there is only 320lines of code, so where to do his changes ?
This is the stack trace if it helps. Not sure if it's error in implementation?
EDIT: fixed my issue turned out to be a nullable column issue caused higher up the chain.
After upgrading to PHP 7.4 I get a:
Notice: Trying to access array offset on value of type bool
on the search method when using: