Seldaek/monolog · error · MissingExtensionException
The curl extension is needed to use the IFTTTHandler
Error message
The curl extension is needed to use the IFTTTHandler
What it means
Error "The curl extension is needed to use the IFTTTHandler" thrown in Seldaek/monolog.
Source
Thrown at src/Monolog/Handler/IFTTTHandler.php:43
* value3 will be the log record's message
*
* @author Nehal Patel <nehal@nehalpatel.me>
*/
class IFTTTHandler extends AbstractProcessingHandler
{
private string $eventName;
private string $secretKey;
/**
* @param string $eventName The name of the IFTTT Maker event that should be triggered
* @param string $secretKey A valid IFTTT secret key
*
* @throws MissingExtensionException If the curl extension is missing
*/
public function __construct(string $eventName, string $secretKey, int|string|Level $level = Level::Error, bool $bubble = true)
{
if (!\extension_loaded('curl')) {
throw new MissingExtensionException('The curl extension is needed to use the IFTTTHandler');
}
$this->eventName = $eventName;
$this->secretKey = $secretKey;
parent::__construct($level, $bubble);
}
/**
* @inheritDoc
*/
public function write(LogRecord $record): void
{
$postData = [
"value1" => $record->channel,
"value2" => $record["level_name"],
"value3" => $record->message,
];View on GitHub (pinned to 57eb102834)
When it happens
Trigger: Thrown at src/Monolog/Handler/IFTTTHandler.php:43 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Seldaek/monolog@57eb102834 (2026-08-17).
Data as JSON: /api/errors/5c6b7664f8421b56.
Report an issue: GitHub.