• Resolved reeper6868

    (@reeper6868)


    Hi,
    We are running mailpoet the latest version and we are experiencing the following errors in our wp-admin/error_log file:

    WordPress database error The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay for query
    SELECT SQL_CALC_FOUND_ROWS wpposts.*
    FROM wpposts LEFT JOIN wppostmeta ON ( wpposts.ID = wppostmeta.post_id ) LEFT JOIN wppostmeta AS mt1 ON ( wpposts.ID = mt1.post_id AND mt1.meta_key = ‘smush-complete’ ) LEFT JOIN wppostmeta AS mt2 ON ( wpposts.ID = mt2.post_id ) LEFT JOIN wppostmeta AS mt3 ON ( wpposts.ID = mt3.post_id AND mt3.meta_key = ‘_shortpixel_status’ ) LEFT JOIN wppostmeta AS mt4 ON ( wpposts.ID = mt4.post_id AND mt4.meta_key = ‘wp-smpro-smush-data’ ) LEFT JOIN wppostmeta AS mt5 ON ( wpposts.ID = mt5.post_id AND mt5.meta_key = ‘_imagify_optimization_level’ ) LEFT JOIN wppostmeta AS mt6 ON ( wpposts.ID = mt6.post_id AND mt6.meta_key = ‘tiny_compress_images’ )
    WHERE 1=1 AND (wpposts.post_mime_type LIKE ‘image/%’) AND (
    (
    ( wppostmeta.meta_key = ‘smush-complete’ AND wppostmeta.meta_value != ‘1’ )
    OR
    mt1.post_id IS NULL
    )
    AND
    (
    ( mt2.meta_key = ‘_shortpixel_status’ AND mt2.meta_value < ‘2’ )
    OR
    ( mt2.meta_key = ‘_shortpixel_status’ AND mt2.meta_value >= ‘3’ )
    OR
    mt3.post_id IS NULL
    )
    AND
    mt4.post_id IS NULL
    AND
    mt5.post_id IS NULL
    AND
    mt6.post_id IS NULL
    ) AND wpposts.post_type = ‘attachment’ AND ((wpposts.post_status = ‘inherit’))
    GROUP BY wpposts.ID
    ORDER BY wpposts.post_date DESC
    LIMIT 0, 1000
    made by do_action(‘wp_ajax_updraft_smush_ajax’), WP_Hook->do_action, WP_Hook->apply_filters, Updraft_Smush_Manager->updraft_smush_ajax, Updraft_Smush_Manager_Commands->get_ui_update, Updraft_Smush_Manager->get_uncompressed_images, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
    [23-Sep-2022 13:36:22 UTC] WordPress database error The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay for query
    SELECT SQL_CALC_FOUND_ROWS wpposts.*
    FROM wpposts LEFT JOIN wppostmeta ON ( wpposts.ID = wppostmeta.post_id ) LEFT JOIN wppostmeta AS mt1 ON ( wpposts.ID = mt1.post_id AND mt1.meta_key = ‘smush-complete’ ) LEFT JOIN wppostmeta AS mt2 ON ( wpposts.ID = mt2.post_id ) LEFT JOIN wppostmeta AS mt3 ON ( wpposts.ID = mt3.post_id AND mt3.meta_key = ‘_shortpixel_status’ ) LEFT JOIN wppostmeta AS mt4 ON ( wpposts.ID = mt4.post_id AND mt4.meta_key = ‘wp-smpro-smush-data’ ) LEFT JOIN wppostmeta AS mt5 ON ( wpposts.ID = mt5.post_id AND mt5.meta_key = ‘_imagify_optimization_level’ ) LEFT JOIN wppostmeta AS mt6 ON ( wpposts.ID = mt6.post_id AND mt6.meta_key = ‘tiny_compress_images’ )
    WHERE 1=1 AND (wpposts.post_mime_type LIKE ‘image/%’) AND (
    (
    ( wppostmeta.meta_key = ‘smush-complete’ AND wppostmeta.meta_value != ‘1’ )
    OR
    mt1.post_id IS NULL
    )
    AND
    (
    ( mt2.meta_key = ‘_shortpixel_status’ AND mt2.meta_value < ‘2’ )
    OR
    ( mt2.meta_key = ‘_shortpixel_status’ AND mt2.meta_value >= ‘3’ )
    OR
    mt3.post_id IS NULL
    )
    AND
    mt4.post_id IS NULL
    AND
    mt5.post_id IS NULL
    AND
    mt6.post_id IS NULL
    ) AND wpposts.post_type = ‘attachment’ AND ((wpposts.post_status = ‘inherit’))
    GROUP BY wpposts.ID
    ORDER BY wpposts.post_date DESC
    LIMIT 0, 1000
    made by do_action(‘wp_ajax_updraft_smush_ajax’), WP_Hook->do_action, WP_Hook->apply_filters, Updraft_Smush_Manager->updraft_smush_ajax, Updraft_Smush_Manager_Commands->get_ui_update, Updraft_Smush_Manager->get_uncompressed_images, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
    [26-Sep-2022 06:34:54 UTC] PHP Warning: session_write_close(): Cannot call session save handler in a recursive manner in /public_html/wp-includes/class-wp-hook.php on line 305
    [26-Sep-2022 06:34:54 UTC] PHP Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/cpanel/php/sessions/ea-php74) in /public_html/wp-includes/class-wp-hook.php on line 305
    [26-Sep-2022 06:34:57 UTC] 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(NULL)
    #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/Persisters/Entity/BasicEntityPersister.php(375): MailPoetVendor\Doctrine\DBAL\Connection->executeQuery(‘SELECT t0.wp_us…’, Array, Array)
    #3 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php(78): MailPoetVendo in /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 91`

    This was invoked while an image was changed in a mailpoet newsletter. Please advise on how to fix this sql error.
    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Dani F. a11n

    (@danielinhou)

    Hi there @reeper6868 ????!

    Thank you for reaching out to MailPoet Support!

    This was invoked while an image was changed in a mailpoet newsletter. Please advise on how to fix this sql error.

    Mhh, this looks like a plugin or theme conflict. Can you switch your theme to a default one (Twenty Twenty) and disable all your plugins and see if you are able to reproduce it again?

    If it does work, enable your theme and all your other plugins one after the other until MailPoet breaks again. You’ll be able to tell us what’s at fault.

    You can refer to this article: https://kb.mailpoet.com/article/204-how-to-test-for-plugins-conflict

    Let us know how that goes!

    Cheers!

    Thread Starter reeper6868

    (@reeper6868)

    Hi @danielinhou,
    Is mailpoet compatible with the Flatsome theme? Or wp-optimize plugin? as this is what we are using on our store atm. Though this error was invoked while an image was changed in a mailpoet newsletter, the image did change successfully and the newsletter ran fine.

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    The error message seems to indicate that there was an issue with how the images are being “smushed” , which seems likely to be coming from wp-optimize.

    There should not be any errors coming from that in normal usage, so if you are seeing this, I’d recommend checking with the folks that make that plugin about what might be causing it.

    Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello @reeper6868 ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Have a great day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Errors from mailpoet in admin/error_log’ is closed to new replies.