Social Monitoring CRON Error: In AbstractIntegration.php line 774

Your software
My Mautic version is: v4.4.8
My PHP version is: 7.4.33
My Database type and version is: 10.5.19-MariaDB-0+deb11u2

Your problem
My problem is: Social Monitoring CRON Error: In AbstractIntegration.php line 774

These errors are showing in the log:

System Log:

In AbstractIntegration.php line 774:
                                                                       
  Undefined constant "Mautic\PluginBundle\Integration\CURLOPT_HEADER"  
                                                                       
mautic:social:monitoring [-i|--mid [MID]] [--batch-size BATCH-SIZE] [--query-count [QUERY-COUNT]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

Mautic Log:


[2023-05-08 00:00:05] mautic.NOTICE: Error: Undefined constant "Mautic\PluginBundle\Integration\CURLOPT_HEADER" (uncaught exception) at /mydomain.com/public_html/app/bundles/PluginBundle/Integration/AbstractIntegration.php line 774 while running console command `mautic:social:monitoring` [] {"hostname":"myserver.mydomain.com","pid":2611371}

Steps I have tried to fix the problem:
Nothing, don’t know where to start on this.

Anybody?

We set this cron for every 30 minutes and every time it runs we get the error.
The cron is for the mautic:social:monitoring

Any suggestions are appreciated.

Hi, are we talking about Twitter here?

@joeyk - Yes, sorry about not mentioning that this is for Twitter.

As far as I know Twitter API has changed and is payed on the Twitter side now, are sure it’s configured fine?

1 Like

@joeyk - Do you mean we need to pay Twitter for this function? Or did you mean that the

/console mautic:social:monitoring

function is no longer valid?

Bump? Anybody have some input on this?