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
if (!function_exists('errorToExceptionHandler')) {
I think that the stacktrace part of that is broken. Right now for example I get this message in my log:
[10-Jun-2020 15:58:10] WARNING: [pool www] child 11420 said into stderr: "Stack trace:"
[10-Jun-2020 15:58:10] WARNING: [pool www] child 11420 said into stderr: "#0 /var/www/virtual/onli2/html/s9y_dev/include/compat.inc.php(254): errorToExceptionHandler(1, 'Uncaught ErrorE...', '/var/www/virtua...', 38)"
[10-Jun-2020 15:58:10] WARNING: [pool www] child 11420 said into stderr: "#1 [internal function]: fatalErrorShutdownHandler()"
[10-Jun-2020 15:58:10] WARNING: [pool www] child 11420 said into stderr: "#2 {main}"
[10-Jun-2020 15:58:10] WARNING: [pool www] child 11420 said into stderr: " thrown in /var/www/virtual/onli2/html/s9y_dev/include/admin/images.inc.php on line 38"
Note how the #0 args get shortened.
In the browser, I get this error:
Fatal error: Uncaught ErrorException: Warning: Use of undefined constant NO_FILE_SELECTED - assumed 'NO_FILE_SELECTED' (this will throw an Error in a future version of PHP) in /var/www/virtual/onli2/html/s9y_dev/include/admin/images.inc.php:38
Stack trace:
#0 /var/www/virtual/onli2/html/s9y_dev/include/admin/images.inc.php(38): errorToExceptionHandler(2, 'Use of undefine...', '/var/www/virtua...', 38, Array)
#1 /var/www/virtual/onli2/html/s9y_dev/serendipity_admin.php(115): include('/var/www/virtua...')
#2 {main}
thrown in /var/www/virtual/onli2/html/s9y_dev/include/admin/images.inc.php on line 38
Note how #0 and #1 gets shorted, while at least here the real error message is helpful enough.
Somehow related discussion was in #399 (comment) and the linked commit.
The text was updated successfully, but these errors were encountered:
To the cause of the error: This is because i pulled out the fix of the empty media upload from my branch, missing the added constant. Simplest solution is to cherry-pick the lastest version of the language constants from my branch, that should cover everything.
Right now, we have a setup to control how PHP reacts to errors and exceptions. It is defined in
Serendipity/include/compat.inc.php
Line 122 in dafaae8
Note how the #0 args get shortened.
In the browser, I get this error:
Note how #0 and #1 gets shorted, while at least here the real error message is helpful enough.
Somehow related discussion was in #399 (comment) and the linked commit.
The text was updated successfully, but these errors were encountered: