climate icon indicating copy to clipboard operation
climate copied to clipboard

ERROR: #0 [internal function]()

Open Fossil01 opened this issue 2 years ago • 5 comments

I have been getting quite a few of these in my Laravel error logs. Running PHP 8.1.1 and league/climate 3.8.1 right now.

[2022-02-07 15:32:59] REMOVED.ERROR: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/REMOVED/vendor/league/climate/src/Util/Writer/StdOut.php(14): fwrite()
#2 /var/www/REMOVED/vendor/league/climate/src/Util/Output.php(183): League\CLImate\Util\Writer\StdOut->write()
#3 /var/www/REMOVED/vendor/league/climate/src/TerminalObject/Router/BasicRouter.php(37): League\CLImate\Util\Output->write()
#4 /var/www/REMOVED/vendor/league/climate/src/TerminalObject/Router/Router.php(99): League\CLImate\TerminalObject\Router\BasicRouter->execute()
#5 /var/www/REMOVED/vendor/league/climate/src/CLImate.php(384): League\CLImate\TerminalObject\Router\Router->execute()
#6 /var/www/REMOVED/vendor/league/climate/src/CLImate.php(399): League\CLImate\CLImate->buildTerminalObject()
#7 /var/www/REMOVED/vendor/league/climate/src/CLImate.php(435): League\CLImate\CLImate->routeRemainingMethod()
#8 /var/www/REMOVED/Blacklight/ColorCLI.php(94): League\CLImate\CLImate->__call()
#9 /var/www/REMOVED/Blacklight/REMOVED.php(997): Blacklight\ColorCLI->primary()
#12 {main}
$this->colorCli->primary('Some sprintf formatted string goes here');

Fossil01 avatar Feb 07 '22 14:02 Fossil01

Hi @Fossil01 it's difficult to tell what your error is as the actual error message appears to have been removed, are you able to post the error message being raised from StdOut.php?

duncan3dc avatar Feb 07 '22 15:02 duncan3dc

Hi,

I only removed some other files where my own functions are called. But the error really starts at ColorCLI->primary(). REMOVED was my sites hostname. Other than that this is the full error.

I have no clue what ERROR: #0 [internal function] means.

Fossil01 avatar Feb 07 '22 15:02 Fossil01

Are you able to provide a small reproduction script instead then?

duncan3dc avatar Feb 07 '22 16:02 duncan3dc

I'll try in the next few days. Sick in bed currently -.-

Fossil01 avatar Feb 09 '22 10:02 Fossil01

Get well soon!

duncan3dc avatar Feb 09 '22 10:02 duncan3dc