• Resolved divano

    (@divano)


    In the error.log is repeatedly notified of “General error: 2006 MySQL server has gone away in”, the solution to which is given at this link, but the configuration of my.cnf already has the values you suggest, so I ask if anything else can be done to solve.

    Thanks so much in advance.

    PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:2
    Stack trace:
    #0 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(2): PDOStatement->execute(NULL)
    #1 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(520): MailPoetVendor\Doctrine\DBAL\Driver\PDOStatement->execute()
    #2 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(1924): MailPoetVendor\Idiorm\ORM::_execute('SELECT * FROM '...', Array, 'default')
    #3 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(702): MailPoetVendor\Idiorm\ORM->_run()
    #4 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Paris/paris.php(153): MailPoetVendor\Idiorm\ORM->find_one(7)
    #5 [internal function]: MailPoetVendor\Paris\ORMWrapper->find_one(7)
    #6 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(2284): call_user_func_array(Array, Array)
    #7 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/Widget.php(200): MailPoetVendor\Idiorm\ORM->__call('findOne', Array)
    #8 /home/*****/public_html/wp-includes/class-wp-widget.php(393): MailPoet\Form\Widget->widget(Array, Array)
    #9 /home/*****/public_html/wp-includes/widgets.php(831): WP_Widget->display_callback(Array, Array)
    #10 /home/*****/public_html/wp-content/themes/***/vc_templates/vc_widget_sidebar.php(41): dynamic_sidebar('secondary-sideb...')
    #11 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(271): require('/home/*****/...')
    #12 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(244): WPBakeryShortCode->loadTemplate(Array, '')
    #13 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(366): WPBakeryShortCode->content(Array, '')
    #14 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(1317): WPBakeryShortCode->output(Array, '')
    #15 /home/*****/public_html/wp-includes/shortcodes.php(356): vc_do_shortcode(Array, '', 'vc_widget_sideb...')
    #16 [internal function]: do_shortcode_tag(Array)
    #17 /home/*****/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(bs\\-te...', 'do_shortcode_ta...', '[bs-text title=...')
    #18 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode('[bs-text title=...')
    #19 /home/*****/public_html/wp-content/themes/***/vc_templates/vc_column.php(136): wpb_js_remove_wpautop('[bs-text title=...')
    #20 /home/*****/public_html/wp-content/themes/***/includes/libs/better-framework/page-builder/compatibility/vc/vc_column.php(27): include('/home/*****/...')
    #21 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(271): require('/home/*****/...')
    #22 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(244): WPBakeryShortCode->loadTemplate(Array, '[bs-text title=...')
    #23 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(366): WPBakeryShortCode->content(Array, '[bs-text title=...')
    #24 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(1317): WPBakeryShortCode->output(Array, '[bs-text title=...')
    #25 /home/*****/public_html/wp-includes/shortcodes.php(356): vc_do_shortcode(Array, '[bs-text title=...', 'vc_column')
    #26 [internal function]: do_shortcode_tag(Array)
    #27 /home/*****/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(bs\\-mi...', 'do_shortcode_ta...', '[vc_column widt...')
    #28 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode('[vc_column widt...')
    #29 /home/*****/public_html/wp-content/themes/***/vc_templates/vc_row.php(176): wpb_js_remove_wpautop('[vc_column widt...')
    #30 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(271): require('/home/*****/...')
    #31 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php(40): WPBakeryShortCode->loadTemplate(Array, '[vc_column widt...')
    #32 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(366): WPBakeryShortCode_Vc_Row->content(Array, '[vc_column widt...')
    #33 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(1317): WPBakeryShortCode->output('', '[vc_column widt...')
    #34 /home/*****/public_html/wp-includes/shortcodes.php(356): vc_do_shortcode('', '[vc_column widt...', 'vc_row')
    #35 [internal function]: do_shortcode_tag(Array)
    #36 /home/*****/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(bs\\-mo...', 'do_shortcode_ta...', '<p>[vc_row][vc_...')
    #37 /home/*****/public_html/wp-includes/class-wp-hook.php(303): do_shortcode('<p>[vc_row][vc_...')
    #38 /home/*****/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p>[vc_row][vc_...', Array)
    #39 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/template-content.php(242): apply_filters('the_content', '<p>[vc_row][vc_...')
    #40 /home/*****/public_html/wp-content/themes/***/views/general/page/content.php(19): ***_the_content()
    #41 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/template-content.php(99): include('/home/*****/...')
    #42 /home/*****/public_html/wp-content/themes/***-child/views/general/layout/3-col.php(76): ***_get_content_template()
    #43 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/core.php(199): include('/home/*****/...')
    #44 /home/*****/public_html/wp-content/themes/***/page.php(26): ***_get_view('layout', '3-col')
    #45 /home/*****/public_html/wp-includes/template-loader.php(106): include('/home/*****/...')
    #46 /home/*****/public_html/wp-blog-header.php(19): require_once('/home/*****/...')
    #47 /home/*****/public_html/index.php(17): require('/home/*****/...')
    #48 {main}
    
    Next MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:2
    Stack trace:
    #0 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(2): MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
    #1 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(520): MailPoetVendor\Doctrine\DBAL\Driver\PDOStatement->execute()
    #2 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(1924): MailPoetVendor\Idiorm\ORM::_execute('SELECT * FROM '...', Array, 'default')
    #3 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(702): MailPoetVendor\Idiorm\ORM->_run()
    #4 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Paris/paris.php(153): MailPoetVendor\Idiorm\ORM->find_one(7)
    #5 [internal function]: MailPoetVendor\Paris\ORMWrapper->find_one(7)
    #6 /home/*****/public_html/wp-content/plugins/mailpoet/lib-3rd-party/Idiorm/idiorm.php(2284): call_user_func_array(Array, Array)
    #7 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/Widget.php(200): MailPoetVendor\Idiorm\ORM->__call('findOne', Array)
    #8 /home/*****/public_html/wp-includes/class-wp-widget.php(393): MailPoet\Form\Widget->widget(Array, Array)
    #9 /home/*****/public_html/wp-includes/widgets.php(831): WP_Widget->display_callback(Array, Array)
    #10 /home/*****/public_html/wp-content/themes/***/vc_templates/vc_widget_sidebar.php(41): dynamic_sidebar('secondary-sideb...')
    #11 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(271): require('/home/*****/...')
    #12 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(244): WPBakeryShortCode->loadTemplate(Array, '')
    #13 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(366): WPBakeryShortCode->content(Array, '')
    #14 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(1317): WPBakeryShortCode->output(Array, '')
    #15 /home/*****/public_html/wp-includes/shortcodes.php(356): vc_do_shortcode(Array, '', 'vc_widget_sideb...')
    #16 [internal function]: do_shortcode_tag(Array)
    #17 /home/*****/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(bs\\-te...', 'do_shortcode_ta...', '[bs-text title=...')
    #18 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode('[bs-text title=...')
    #19 /home/*****/public_html/wp-content/themes/***/vc_templates/vc_column.php(136): wpb_js_remove_wpautop('[bs-text title=...')
    #20 /home/*****/public_html/wp-content/themes/***/includes/libs/better-framework/page-builder/compatibility/vc/vc_column.php(27): include('/home/*****/...')
    #21 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(271): require('/home/*****/...')
    #22 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(244): WPBakeryShortCode->loadTemplate(Array, '[bs-text title=...')
    #23 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(366): WPBakeryShortCode->content(Array, '[bs-text title=...')
    #24 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(1317): WPBakeryShortCode->output(Array, '[bs-text title=...')
    #25 /home/*****/public_html/wp-includes/shortcodes.php(356): vc_do_shortcode(Array, '[bs-text title=...', 'vc_column')
    #26 [internal function]: do_shortcode_tag(Array)
    #27 /home/*****/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(bs\\-mi...', 'do_shortcode_ta...', '[vc_column widt...')
    #28 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(240): do_shortcode('[vc_column widt...')
    #29 /home/*****/public_html/wp-content/themes/***/vc_templates/vc_row.php(176): wpb_js_remove_wpautop('[vc_column widt...')
    #30 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(271): require('/home/*****/...')
    #31 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php(40): WPBakeryShortCode->loadTemplate(Array, '[vc_column widt...')
    #32 /home/*****/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(366): WPBakeryShortCode_Vc_Row->content(Array, '[vc_column widt...')
    #33 /home/*****/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(1317): WPBakeryShortCode->output('', '[vc_column widt...')
    #34 /home/*****/public_html/wp-includes/shortcodes.php(356): vc_do_shortcode('', '[vc_column widt...', 'vc_row')
    #35 [internal function]: do_shortcode_tag(Array)
    #36 /home/*****/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(bs\\-mo...', 'do_shortcode_ta...', '<p>[vc_row][vc_...')
    #37 /home/*****/public_html/wp-includes/class-wp-hook.php(303): do_shortcode('<p>[vc_row][vc_...')
    #38 /home/*****/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p>[vc_row][vc_...', Array)
    #39 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/template-content.php(242): apply_filters('the_content', '<p>[vc_row][vc_...')
    #40 /home/*****/public_html/wp-content/themes/***/views/general/page/content.php(19): ***_the_content()
    #41 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/template-content.php(99): include('/home/*****/...')
    #42 /home/*****/public_html/wp-content/themes/***-child/views/general/layout/3-col.php(76): ***_get_content_template()
    #43 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/core.php(199): include('/home/*****/...')
    #44 /home/*****/public_html/wp-content/themes/***/page.php(26): ***_get_view('layout', '3-col')
    #45 /home/*****/public_html/wp-includes/template-loader.php(106): include('/home/*****/...')
    #46 /home/*****/public_html/wp-blog-header.php(19): require_once('/home/*****/...')
    #47 /home/*****/public_html/index.php(17): require('/home/*****/...')
    #48 {main}
      thrown in /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php on line 2
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Gui A. a11n

    (@guicmazeredo)

    Hi there @divano,

    Thanks for reaching out!

    Can you please confirm that you’ve checked the following things in your my.cnf configuration file?

    – the wait_timeout mysql variable is at least 28800
    – the innodb_log_file_size mysql variable is at least 128MB
    – the maximal packet size limit max_allowed_packet is at least 128MB

    Thread Starter divano

    (@divano)

    Hi @guicmazeredo,

    Confirm that I have the variables indicated with such and higher values.

    Thanks.

    Plugin Author Bruna a11n

    (@bruberries)

    Hi @divano,

    In order to help you further, we would need you to check with your host:
    – the times when the error happens (and see what else could be running at that time, if you are getting other errors as well)
    – other timeout variables (i.e.: mysql.connect_timeout)

    Please let us know so we can help you further.

    Thread Starter divano

    (@divano)

    Hi @bruberries,

    Thanks for reply.

    The error is the only one on log file and logged every 15 minutes.
    About the value of connect_timeout, if you mean in phpmyadmin, is 30, while in php.ini, it’s not set.

    Update

    In php.ini I tried setting mysql.connect_timeout to 60, but nothing has changed.

    Hi there @divano,

    Thanks for getting back to us!

    Can you please advise if you can find out when the errors started to appear?

    Were there any changes made to your site back then?

    Thread Starter divano

    (@divano)

    Hi @treibalen,

    Thanks.

    The first error notification dates back to 20 August, and was repeated up to two days before the last update, after which the error.log error.log started to report it every 15 minutes again until yesterday at 12:30, but since 10:30 today – without having made any changes to the site – the problem has returned although it seems to be different and is as follows:

    PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:2
    Stack trace:
    #0 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(2): PDOStatement->execute(NULL)
    #1 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2): MailPoetVendor\Doctrine\DBAL\Driver\PDOStatement->execute()
    #2 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(2): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery('SELECT t0.name ...', Array, Array)
    #3 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php(2): MailPoetVendor\Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll(Array, Array, NULL, NULL)
    #4 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Doctrine/Repository.php(44): MailPoetVendor\Doctrine\ORM\EntityRepository->findBy(Array, Array, NULL, NULL)
    #5 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/DisplayFormInWPContent.php(109): MailPoet\Doctrine\Repository->findBy(Array, Array)
    #6 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/DisplayFormInWPContent.php(69): MailPoet\Form\DisplayFormInWPContent->getForms()
    #7 /home/*****/public_html/wp-includes/class-wp-hook.php(303): MailPoet\Form\DisplayFormInWPContent->display('<p>&nbsp;<br />...')
    #8 /home/*****/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p>&nbsp;<br />...', Array)
    #9 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/template-content.php(242): apply_filters('the_content', '&nbsp;\r\nIncasto...')
    #10 /home/*****/public_html/wp-content/themes/***/views/general/post/style-11.php(215): ***_the_content()
    #11 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/core.php(199): include('/home/*****/...')
    #12 /home/*****/public_html/wp-content/themes/***/single.php(19): ***_get_view('post', 'style-11')
    #13 /home/*****/public_html/wp-includes/template-loader.php(106): include('/home/*****/...')
    #14 /home/*****/public_html/wp-blog-header.php(19): require_once('/home/*****/...')
    #15 /home/*****/public_html/index.php(17): require('/home/*****/...')
    #16 {main}
    
    Next MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:2
    Stack trace:
    #0 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(2): MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
    #1 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2): MailPoetVendor\Doctrine\DBAL\Driver\PDOStatement->execute()
    #2 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(2): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery('SELECT t0.name ...', Array, Array)
    #3 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php(2): MailPoetVendor\Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll(Array, Array, NULL, NULL)
    #4 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Doctrine/Repository.php(44): MailPoetVendor\Doctrine\ORM\EntityRepository->findBy(Array, Array, NULL, NULL)
    #5 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/DisplayFormInWPContent.php(109): MailPoet\Doctrine\Repository->findBy(Array, Array)
    #6 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/DisplayFormInWPContent.php(69): MailPoet\Form\DisplayFormInWPContent->getForms()
    #7 /home/*****/public_html/wp-includes/class-wp-hook.php(303): MailPoet\Form\DisplayFormInWPContent->display('<p>&nbsp;<br />...')
    #8 /home/*****/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p>&nbsp;<br />...', Array)
    #9 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/template-content.php(242): apply_filters('the_content', '&nbsp;\r\nIncasto...')
    #10 /home/*****/public_html/wp-content/themes/***/views/general/post/style-11.php(215): ***_the_content()
    #11 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/core.php(199): include('/home/*****/...')
    #12 /home/*****/public_html/wp-content/themes/***/single.php(19): ***_get_view('post', 'style-11')
    #13 /home/*****/public_html/wp-includes/template-loader.php(106): include('/home/*****/...')
    #14 /home/*****/public_html/wp-blog-header.php(19): require_once('/home/*****/...')
    #15 /home/*****/public_html/index.php(17): require('/home/*****/...')
    #16 {main}
    
    Next MailPoetVendor\Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing 'SELECT t0.name AS name_1, t0.body AS body_2, t0.status AS status_3, t0.settings AS settings_4, t0.styles AS styles_5, t0.id AS id_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.deleted_at AS deleted_at_9 FROM wpicdb_mailpoet_forms t0 WHERE t0.deleted_at IS NULL AND t0.status = ? ORDER BY t0.updated_at ASC' with params ["enabled"]:
    
    SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:2
    Stack trace:
    #0 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(2): MailPoetVendor\Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception))
    #1 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(2): MailPoetVendor\Doctrine\DBAL\DBALException::wrapException(Object(MailPoetVendor\Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception), 'An exception oc...')
    #2 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2): MailPoetVendor\Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(MailPoetVendor\Doctrine\DBAL\Driver\PDO\MySQL\Driver), Object(MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception), 'SELECT t0.name ...', Array)
    #3 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2): MailPoetVendor\Doctrine\DBAL\Connection->handleExceptionDuringQuery(Object(MailPoetVendor\Doctrine\DBAL\Driver\PDO\Exception), 'SELECT t0.name ...', Array, Array)
    #4 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(2): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery('SELECT t0.name ...', Array, Array)
    #5 /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php(2): MailPoetVendor\Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll(Array, Array, NULL, NULL)
    #6 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Doctrine/Repository.php(44): MailPoetVendor\Doctrine\ORM\EntityRepository->findBy(Array, Array, NULL, NULL)
    #7 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/DisplayFormInWPContent.php(109): MailPoet\Doctrine\Repository->findBy(Array, Array)
    #8 /home/*****/public_html/wp-content/plugins/mailpoet/lib/Form/DisplayFormInWPContent.php(69): MailPoet\Form\DisplayFormInWPContent->getForms()
    #9 /home/*****/public_html/wp-includes/class-wp-hook.php(303): MailPoet\Form\DisplayFormInWPContent->display('<p>&nbsp;<br />...')
    #10 /home/*****/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p>&nbsp;<br />...', Array)
    #11 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/template-content.php(242): apply_filters('the_content', '&nbsp;\r\nIncasto...')
    #12 /home/*****/public_html/wp-content/themes/***/views/general/post/style-11.php(215): ***_the_content()
    #13 /home/*****/public_html/wp-content/themes/***/includes/libs/bs-theme-core/theme-helpers/core.php(199): include('/home/*****/...')
    #14 /home/*****/public_html/wp-content/themes/***/single.php(19): ***_get_view('post', 'style-11')
    #15 /home/*****/public_html/wp-includes/template-loader.php(106): include('/home/*****/...')
    #16 /home/*****/public_html/wp-blog-header.php(19): require_once('/home/*****/...')
    #17 /home/*****/public_html/index.php(17): require('/home/*****/...')
    #18 {main}
      thrown in /home/*****/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 2
    

    Hi there @divano,

    Thanks for the additional information!

    It seems that the error is logged when the plugin tries to fetch data for forms and decides whether it should display a form on a page or not.

    Do you have many active forms? It might happen if something’s wrong with the wp_mailpoet_forms table.

    This is the SQL query that failed:

    SELECT 
    t0.name AS name_1, t0.body AS body_2, t0.status AS status_3, t0.settings AS settings_4, t0.styles AS styles_5, t0.id AS id_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.deleted_at AS deleted_at_9
    FROM wp_mailpoet_forms t0
    WHERE t0.deleted_at IS NULL AND t0.status = 'enabled'
    ORDER BY t0.updated_at ASC;

    Can you please run it in your database to see if it returns any errors? This can shed some light on what’s going on.

    Note that you need to change the wp_mailpoet_forms to your actual table name (it can have a different prefix).

    Cheers!

    Thread Starter divano

    (@divano)

    Hi @treibalen,

    Thanks for your availability.

    On site there’s just one form, in a sidebar widget, and running the suggested query no error returns.

    Regards.

    Plugin Support Dani F. a11n

    (@danielinhou)

    Hi again @divano ????,

    Just to make sure that we are on the same page.

    Have you made sure to change the wp_mailpoet_forms to your actual table name (it can have a different prefix) when running the query?

    Thanks for keeping us posted!

    Thread Starter divano

    (@divano)

    Hi @danielinhou,

    Obviously, otherwise I’d have received error for a non-existent table.

    Thanks.

    Regards.

    Thread Starter divano

    (@divano)

    Hi,

    Since 2 October error.log no recorded more problems, although nothing has been done on our side and the situation is still stable, i.e. 4 days after the update.

    Therefore I think can close the topic as solved.

    Thanks very much for support.

    Regards

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