• Resolved reeper6868

    (@reeper6868)


    Hi,
    Am getting these errors from mailpoet in error_log:

    PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:59
    Stack trace:
    #0  /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(59): PDOStatement->execute(NULL)
    #1   /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(495): MailPoetVendor\Doctrine\DBAL\Driver\PDOStatement->execute()
    #2   /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(476): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery('SELECT t0.name ...', Array, Array)
    #3   /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php(73): MailPoetVendo in /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 91

    Please help. Thanks in advance

    Mailpoet version: 3.103.1
    Wordpress version: 6.1
    Woocommerce version:7.1.0
    Theme: Flatsome

    • This topic was modified 2 years ago by reeper6868.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there @reeper6868,

    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

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

    Thread Starter reeper6868

    (@reeper6868)

    @kellymetal thank you so much for the help I have reconfigured the server with the variables mentioned. Will get back to you by the end of this week if the error persists.

    Thread Starter reeper6868

    (@reeper6868)

    hi @kellymetal,
    Got new errors after doing the manual update:

    [14-Nov-2022 01:32:02 UTC] PHP Fatal error: Uncaught Error: Class ‘WPSEO_Taxonomy_Sitemap_Provider’ not found in /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php:123
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(308): WPSEO_Sitemaps->init_sitemaps_providers(”)
    #1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /wp-settings.php(595): do_action(‘after_setup_the…’)
    #4 /wp-config.php(83): require_once(‘/home/doxzqmmy/…’)
    #5 /wp-load.php(50): require_once(‘/home/doxzqmmy/…’)
    #6 /wp-blog-header.php(13): require_once(‘/home/doxzqmmy/…’)
    #7 /index.php(17): require(‘/home/doxzqmmy/…’)
    #8 {main}
    thrown in /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php on line 123
    [14-Nov-2022 01:41:06 UTC] PHP Fatal error: Uncaught Error: Interface ‘YoastSEO_Vendor\Psr\Container\ContainerInterface’ not found in /wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/ContainerInterface.php:23
    Stack trace:
    #0 /wp-content/plugins/cloudflare/vendor/composer/ClassLoader.php(444): include()
    #1 /wp-content/plugins/cloudflare/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile(‘/home/…’)
    #2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘YoastSEO_Vendor…’)
    #3 /wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/ResettableContainerInterface.php(20): spl_autoload_call(‘YoastSEO_Vendor…’)
    #4 /wp-content/plugins/cloudflare/vendor/composer/ClassLoader.php(444): include(‘/home/…’)
    #5 /wp-content/plugins/cloudflare/vendo in /home//wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/ContainerInterface.php on line 23

    I have checked that the files mentioned are present.
    Please get back to me thanks`

    • This reply was modified 2 years ago by reeper6868.
    • This reply was modified 2 years ago by reeper6868.
    • This reply was modified 2 years ago by reeper6868.
    Thread Starter reeper6868

    (@reeper6868)

    Apologies ignore the last message entered in the wrong plugin area.

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    thank you so much for the help I have reconfigured the server with the variables mentioned. Will get back to you by the end of this week if the error persists.

    Sounds good, please let us know how it goes! Hopefully those changes do the trick.

    Apologies ignore the last message entered in the wrong plugin area.

    No worries! Yes, that last error appears to be from the WordPress SEO plugin.

    Take care, and have a good one! We’ll be waiting to hear back about the initial error you reported.

    Thread Starter reeper6868

    (@reeper6868)

    @kellymetal
    hi again,
    got the error again:

    [18-Nov-2022 07:50:04 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:59
    Stack trace:
    #0 /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(59): PDOStatement->execute(NULL)
    #1 /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(495): MailPoetVendor\Doctrine\DBAL\Driver\PDOStatement->execute()
    #2 /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(375): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery(‘SELECT t0.wp_us…’, Array, Array)
    #3 /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php(78): MailPoetVendo in /wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 91

    below are mysql config server settings:
    InnoDB Log File Size 128000000
    Max Allowed Packet 268435456
    Wait Timeout 28800

    Hi there @reeper6868,

    Thanks for getting back to us!

    Can you please let us know if you receive this error during some specific actions such as sending a newsletter? If so, how many subscribers are you sending to?

    Looking forward to hearing back from you!

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    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 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Getting a PHP Fatal Error’ is closed to new replies.