• Resolved Nazar Hotsa



    I’m seeing this in PHP error log every now and then:

    PHP Fatal error: Uncaught Exception: could not find driver in .../wp-content/plugins/mailpoet/lib/Models/Model.php:373
    Stack trace:
    #0 .../wp-content/plugins/mailpoet/lib/API/MP/v1/API.php(244): MailPoet\Models\Model::__callStatic('where', Array)
    #1 .../wp-content/plugins/uncanny-automator/src/integrations/mailpoet/actions/mailpoet-addsubscribertolist-a.php(41): MailPoet\API\MP\v1\API->getLists()
    #2 .../wp-content/plugins/uncanny-automator/src/integrations/mailpoet/actions/mailpoet-addsubscribertolist-a.php(32): Uncanny_Automator\MAILPOET_ADDSUBSCRIBERTOLIST_A->define_action()
    #3 .../wp-content/plugins/uncanny-automator/src/core/classes/set-up-automator.php(298): Uncanny_Automator\MAILPOET_ADDSUBSCRIBERTOLIST_A->__construct()
    #4 .../wp-content/plugins/uncanny-automator/src/core/classes/set-up-automator.php(153): Uncanny_Automator\Set_Up_Automator->initialize_triggers_actions_closures()
    #5 / in .../wp-content/plugins/mailpoet/lib/Models/Model.php on line 373

    I’m not sure if the error is caused by MailPoet or Uncanny Automator?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Uncanny Owl


    Hi @bugnumber9

    This error seems to originate from an attempt to get the existing subscriber lists from Mailpoet. The code that the errors refer to seems to indicate that Mailpoet isn’t running the latest version.

    Could you check and confirm that both Automator and Mailpoet have been updated to the latest available versions?

    Could you also check and confirm that there are existing lists available in Mailpoet for the action to work correctly?

    Finally, this error can come from a broken database connection that can happen temporarily because of a heavy load. That might explain why it shows up infrequently.

    Could you check with your hosting provider about any issues that your database server may have experienced that coincide with these errors? They would also be able to help with finding out why the database service goes away from time to time and what could be done to fix it.

    Thread Starter Nazar Hotsa



    Both Uncanny Automator and MailPoet are of the latest versions. All lists are there too.
    DB connection is fine, otherwise, we’d see other DB errors.

    Looks like the error happens when the trigger fires, yet the action works fine and users get added to the list.

    Plugin Author Uncanny Owl


    Thanks for the update. One of our developers wonders if this might be happening when Automator is initially loaded if MailPoet’s database provider isn’t instantiated yet. Can you also confirm if a mail service provider was set up in MailPoet?

    We can’t replicate it on our side. We are wondering if we could possibly move this one to our Help Desk system (via any of the forms on our website) if getting temporary admin access might be possible to take a closer look.

    Thread Starter Nazar Hotsa


    I was able to replicate the issue.

    Indeed, you were right – it happens when there’s a problem connecting to the database. It turned out that during traffic spikes the website is hitting resource limits.

    Thanks for the tip!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error’ is closed to new replies.