- Issue created by @joachim
I'm getting the same error.
I made the last argument to the function optional, now it works:
function backtrace_error_handler($error_level, $message, $filename, $line, $context = [])
However I don't really know what's happening here and whether this is right or not. $filename, $line and $context are not used at all by this function.
- ๐ฌ๐งUnited Kingdom joachim
Duplicate of #2947291: Missing argument 5 for _drupal_error_handler() โ .
- ๐บ๐ธUnited States johne
I'm running drupal core 8.6.13 where the patch from #2947291 has been committed. The same change is needed, but to devel.module, not bootstrap.inc in drupal core. Here's a patch.
-
willzyx โ
committed
ce53ffb โ
on 8.x-2.x authored by
johne โ
Issue #3028204 by johne: Uncaught ArgumentCountError: Too few arguments...
-
willzyx โ
committed
ce53ffb โ
on 8.x-2.x authored by
johne โ
Automatically closed - issue fixed for 2 weeks with no activity.
- ๐บ๐ธUnited States loopy1492
So apparently there's no devel/issues page on drupal.org? I can't submit a new issue for the d7 version of this error so I guess I'll put it here.
Error:Error message
ArgumentCountError: Too few arguments to function backtrace_error_handler(), 4 passed and exactly 5 expected in backtrace_error_handler() (line 698 of /var/www/docroot/modules/contrib/devel/devel.module).The resolution is exactly the same as for these other issues, just on a different line in the code.
My patch:
diff --git a/devel.module b/devel.module index ebbbd02d..dfffece7 100755 --- a/devel.module +++ b/devel.module @@ -695,7 +695,7 @@ function devel_boot() { * An array that points to the active symbol table at the point the error * occurred. */ -function backtrace_error_handler($error_level, $message, $filename, $line, $context) { +function backtrace_error_handler($error_level, $message, $filename = NULL, $line = NULL, $context = NULL) { // Hide stack trace and parameters from unqualified users. if (!user_access('access devel information')) { // Do what core does in bootstrap.inc and errors.inc.
- ๐ฌ๐งUnited Kingdom oily Greater London
andrew.farquharson โ made their first commit to this issueโs fork.