Closed hannob closed 1 year ago
Can you confirm that line 122 in your installation looks like this:
return substr($serendipity['dbConn']->quote($string ?? ''), 1, -1);
Because the ?? ''
was added to avoid the message and seems correct to me. But if the warning appeared only once anyway the change might have been ineffective and I'm missing something...
I don't see that code. Line 122: https://github.com/s9y/Serendipity/blob/master/include/db/pdo-sqlite.inc.php#L122 currently says:
return substr($serendipity['dbConn']->quote($string), 1, -1);
But I can confirm that changing the code to your version fixes the issue. Maybe you made the change locally and haven't committed it yet?
Maybe you made the change locally and haven't committed it yet?
Exactly :/ I pushed them now, https://github.com/s9y/Serendipity/commit/d3f6e74b556b6d03b08331125fc2aaa9ed18738d
So we're done here.
I'm getting warnings in the backend with PHP 8.2 and GIT head (using sqlite) like this:
It only happens on first load of the backend interface. To reproduce, I need to clear the templates_c directory.
Here' s a stack trace: