Open ddeimeke opened 1 year ago
Looks like a PHP compatibility issue; did you upgrade your PHP without upgrading Serendipity?
Or is serendipity['production']
not true? If you are not using a stable version like 2.4.0 that would need to be done manually. Also, the fix I just pushed in https://github.com/s9y/Serendipity/commit/6481a72817e2e3b57ed0f569ac974466504a250b might help.
I use the recent development version directly from Git.
Or is
serendipity['production']
not true? If you are not using a stable version like 2.4.0 that would need to be done manually. Also, the fix I just pushed in 6481a72 might help.
It looks slightly better now, but the error is still there.
The problem is that without serendipity['production'] == true
, those errors are expected. We simply did not fix all code that emit warnings in current PHP versions, not in all plugins.
And the autodetection for those errors is based on the version number, so it will not work for you when you use the git version.
I wanted to suggest to add serendipity['production'] = true;
to your serendipity_config_local.inc.php, but that file is actually read later.
Maybe you could solve this via the php.ini, by setting display_errors
to off there?
I turned it off in php.ini, but there are still some errors.
Can you switch back to PHP 8.0? PHP 8.1 would be done as part of https://github.com/s9y/Serendipity/pull/802, it's not in master yet.
No, I use the version in Ubuntu 22.04 - the php upgrade was part of the OS upgrade
I wanted to suggest to add serendipity['production'] = true; to your serendipity_config_local.inc.php, but that file is actually read later.
Testing this in my test installation, serendipity['production'] = true
in serendipity_config_local.inc.php did help in two test blogs. I'm not sure why I wrote above it would not help, maybe it would specifically not help for the serendipity_editor.js? I'd now recommend to try this first.
Though I assume this problem was solved by some server configuration by now?
I get this German language error message in the backend.
Leading to this error: