• Resolved regvdfregv

    (@regvdfregv)


    Hey when we are trying to import products on woocommerce we are getting the below errors from mailpoet. When the mailpoet plugin (premium as well) is deactivated the products imported correctly

    1 PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:59

    Stack trace:

    #0 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(59): PDOStatement->execute()

    #1 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(495): MailPoetVendor\Doctrine\DBAL\Driver\PDOStatement->execute()

    #2 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php(17): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery()

    #3 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query.php(143): MailPoetVendor\Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute()

    #4 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(506): MailPoetVendor\Doctrine\ORM\Query->_doExecute()

    #5 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(479): MailPoetVendor\Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()

    #6 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(373): MailPoetVendor\Doctrine\ORM\AbstractQuery->execute()

    #7 /public_html/wp-content/plugins/mailpoet/lib/Newsletter/NewslettersRepository.php(68): MailPoetVendor\Doctrine\ORM\AbstractQuery->getResult()

    #8 /public_html/wp-content/plugins/mailpoet/lib/Newsletter/Scheduler/PostNotificationScheduler.php(99): MailPoet\Newsletter\NewslettersRepository->findActiveByTypes()

    #9 /public_html/wp-content/plugins/mailpoet/lib/Newsletter/Scheduler/PostNotificationScheduler.php(91): MailPoet\Newsletter\Scheduler\PostNotificationScheduler->schedulePostNotification()

    #10 /public_html/wp-includes/class-wp-hook.php(307): MailPoet\Newsletter\Scheduler\PostNotificationScheduler->transitionHook()

    #11 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()

    #12 /public_html/wp-includes/plugin.php(476): WP_Hook->do_action()

    #13 /public_html/wp-includes/post.php(5303): do_action()

    #14 /public_html/wp-includes/post.php(4563): wp_transition_post_status()

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kel C. a11n

    (@kellymetal)

    Hi there @regvdfregv,

    Regarding that “Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away” error, we have a troubleshooting page for it at the link below. The error is generally caused when the server times out and disconnects, or receives a data packet that is bigger than it’s able to handle:
    https://kb.mailpoet.com/article/307-how-to-fix-general-error-2006-mysql-server-has-gone-away

    It seems that the WooCommerce product import is likely triggering a check for any MailPoet post notifications that are supposed to trigger for new Products, which is why disabling MailPoet clears up the issue.

    Please check with your hosting to ensure the server is configured with the variables mentioned in the article above at sufficient values.

    Hi there @regvdfregv,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin errors with import products’ is closed to new replies.