• Resolved bruce-s

    (@3ruce)


    I’m running 3.18.2 and get this error every time cron runs… Does anyone have any ideas?

    PHP Fatal error: Uncaught TypeError: Argument 1 passed to MailPoet\Cron\Daemon::__construct() must be an instance of MailPoet\Cron\Workers\WorkersFactory, none given, called in /public_html/wp-content/plugins/mailpoet/mailpoet-cron.php on line 38 and defined in /public_html/wp-content/plugins/mailpoet/lib/Cron/Daemon.php:14
    Stack trace:
    #0 /public_html/wp-content/plugins/mailpoet/mailpoet-cron.php(38): MailPoet\Cron\Daemon->__construct()
    #1 {main}
    thrown in /public_html/wp-content/plugins/mailpoet/lib/Cron/Daemon.php on line 14

    Fatal error: Uncaught TypeError: Argument 1 passed to MailPoet\Cron\Daemon::__construct() must be an instance of MailPoet\Cron\Workers\WorkersFactory, none given, called in /public_html/wp-content/plugins/mailpoet/mailpoet-cron.php on line 38 and defined in /public_html/wp-content/plugins/mailpoet/lib/Cron/Daemon.php:14
    Stack trace:
    #0 /public_html/wp-content/plugins/mailpoet/mailpoet-cron.php(38): MailPoet\Cron\Daemon->__construct()
    #1 {main}
    thrown in /public_html/wp-content/plugins/mailpoet/lib/Cron/Daemon.php on line 14

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi there @3ruce,

    Are you using the Linux cron option for the task scheduler? If so, can you paste the cron job you are using for that, please?

    Thanks!

    Thread Starter bruce-s

    (@3ruce)

    Yeah, this is the cron job I’m using with the full path’s removed

    */5 * * * * php /public_html/wp-content/plugins/mailpoet/mailpoet-cron.php /public_html/

    Thread Starter bruce-s

    (@3ruce)

    I’ve copied this from the plugin page…

    Thread Starter bruce-s

    (@3ruce)

    Do you guys have any more thoughts on this error?

    We have the same problem trying to use the Linux cron:

    PHP Fatal error: Uncaught TypeError: Argument 1 passed to MailPoet\Cron\Daemon::__construct() must be an instance of MailPoet\Cron\Workers\WorkersFactory, none given, called in /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/mailpoet-cron.php on line 38 and defined in /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/lib/Cron/Daemon.php:14
    Stack trace:
    #0 /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/mailpoet-cron.php(38): MailPoet\Cron\Daemon->__construct()
    #1 {main}
    thrown in /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/lib/Cron/Daemon.php on line 14

    Fatal error: Uncaught TypeError: Argument 1 passed to MailPoet\Cron\Daemon::__construct() must be an instance of MailPoet\Cron\Workers\WorkersFactory, none given, called in /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/mailpoet-cron.php on line 38 and defined in /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/lib/Cron/Daemon.php:14
    Stack trace:
    #0 /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/mailpoet-cron.php(38): MailPoet\Cron\Daemon->__construct()
    #1 {main}
    thrown in /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/lib/Cron/Daemon.php on line 14

    The cron job copied from the settings:

    php /var/www/clients/client1/web9/web/wp-content/plugins/mailpoet/mailpoet-cron.php /var/www/clients/client1/web9/web/

    Hi All,

    This error is now fixed in MailPoet 3.19.0. The cron job remains the same just update to 3.19.0 and then it’ll work correctly. ??

    Thanks!

    Thread Starter bruce-s

    (@3ruce)

    Cool, thanks, this has been fixed on my server…

    PLEASE HELP – after years of using (and loving) MailPoet, this is what happened after your update yesterday, 19 March 2019.

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Uncaught TypeError: Argument 1 passed to Twig\Lexer::__construct() must be an instance of Twig\Environment, instance of Twig_Environment given, called in /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Config/Renderer.php on line 92 and defined in /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/vendor/twig/twig/src/Lexer.php:56 Stack trace: #0 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Config/Renderer.php(92): Twig\Lexer->__construct(Object(Twig_Environment), Array) #1 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Config/Renderer.php(49): MailPoet\Config\Renderer->setupSyntax() #2 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Subscribers/NewSubscriberNotificationMailer.php(39): MailPoet\Config\Renderer->__construct(true, false) #3 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(637): MailPoet\Subscribers\NewSubscriberNotificationMailer->__construct() #4 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/generated in /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/vendor/twig/twig/src/Lexer.php on line 56

    @gosouthonline: same problem here.

    @codac let’s hope for some HELP!

    MailPoet (@wysija)

    PLEASE HELP – after years of using MailPoet, this is what happened after your update on 19 March 2019.

    Plugin cannot be activated as it triggers a fatal error.

    Fatal error: Uncaught TypeError: Argument 1 passed to Twig\Lexer::__construct() must be an instance of Twig\Environment, instance of Twig_Environment given, called in /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Config/Renderer.php on line 92 and defined in /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/vendor/twig/twig/src/Lexer.php:56 Stack trace: #0 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Config/Renderer.php(92): Twig\Lexer->__construct(Object(Twig_Environment), Array) #1 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Config/Renderer.php(49): MailPoet\Config\Renderer->setupSyntax() #2 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/lib/Subscribers/NewSubscriberNotificationMailer.php(39): MailPoet\Config\Renderer->__construct(true, false) #3 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(637): MailPoet\Subscribers\NewSubscriberNotificationMailer->__construct() #4 /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/generated in /usr/www/users/gosouxknhj/wp-content/plugins/mailpoet/vendor/twig/twig/src/Lexer.php on line 56

    @codac
    Having cleaned out my history all now works okay!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘3.18.2 Fatal error Uncaught TypeError: Argument 1 passed to MailPoet\Cron\Daemon’ is closed to new replies.