• Hello,

    I would really like to keep this plugin because I can use it to create nice newsletters. However, since installing it I have had constant problems with the connection to the database. Some of my pages won’t open at all; an error page appears saying Oh No! When checking some pages I get error 500.

    In the settings I have set the recommended WordPress cron. Sending with SMTP. I work with the free version.

    The hoster has no errors.

    Did I miss something? What can I do?

    Thanks for the help, Renata

    System-Info: 

    name: gesunde-geschenke
    email: [email protected]
    PHP version: 8.1.26
    MailPoet Free version: 4.58.0
    MailPoet Premium version: N/A
    MailPoet Premium/MSS key: b36c5815e5dc4451**
    WordPress version: 6.6.1
    Database version: 10.11.4-MariaDB-1:10.11.4+maria~deb11-log
    Web server: Apache
    Server OS: Linux s275.goserver.host 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64
    WP info: WP_MEMORY_LIMIT: 40M - WP_MAX_MEMORY_LIMIT: 512M - WP_DEBUG: - WordPress language: de_DE
    PHP info: PHP max_execution_time: 140 - PHP memory_limit: 512M - PHP upload_max_filesize: 150M - PHP post_max_size: 150M
    Multisite environment?: No
    Current Theme: ShoppingCart (version 1.2.5)
    Active Plugin names: bulk-image-alt-text-with-yoast/bulk-image-alt-text-with-yoast.php, internal-links/wp-internal-linkjuicer.php, affiliate-coupons/affiliate-coupons.php, affiliate-power/affiliate-power.php, affiliate-products-blocks/plugin.php, antispam-bee/antispam_bee.php, auto-image-attributes-from-filename-with-bulk-updater/iaff_image-attributes-from-filename.php, breadcrumb-navxt/breadcrumb-navxt.php, cleanup-action-scheduler/cleanup-action-scheduler.php, code-snippets/code-snippets.php, complianz-gdpr/complianz-gpdr.php, complianz-terms-conditions/complianz-terms-conditions.php, easy-table-of-contents/easy-table-of-contents.php, imagify/imagify.php, insert-headers-and-footers/ihaf.php, jetpack/jetpack.php, link-whisper/link-whisper.php, mailpoet/mailpoet.php, matomo/matomo.php, media-file-renamer/media-file-renamer.php, megamenu/megamenu.php, product-import-export-for-woo/product-import-export-for-woo.php, redirection/redirection.php, responsive-sidebar/responsive-sidebar.php, schema-and-structured-data-for-wp/structured-data-for-wp.php, simple-author-box/simple-author-box.php, ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php, updraftplus/updraftplus.php, widget-countdown/wpdevart-countdown.php, woo-reviews-manually-approved/woo-reviews-manually-approved.php, woocommerce/woocommerce.php, wordpress-seo/wp-seo.php, wp-404-auto-redirect-to-similar-post/wp-404-auto-redirect-similar-post.php, wp-file-manager/file_folder_manager.php, wp-rocket-exclude-sitemap-from-preload/wp-rocket-exclude-sitemap-from-preload.php, wp-rocket-rucss-change-parameters/wp-rocket-rucss-change-parameters.php, wp-rocket/wp-rocket.php, wp-staging/wp-staging.php, wp-youtube-lyte/wp-youtube-lyte.php, wps-hide-login/wps-hide-login.php, wpshopgermany-it-recht-kanzlei/wpshopgermany-itrecht.php, yith-woocommerce-wishlist/init.php
    Sending Method: SMTP
    Sending Frequency: 25 emails every 5 minutes
    MailPoet sending info: Send all site's emails with: current sending method - Task Scheduler method: Action Scheduler - Cron ping URL: https://www.gesunde-geschenke.com?mailpoet_router&endpoint=cron_daemon&action=ping - Default FROM address: [email protected] - Default Reply-To address: [email protected] - Bounce Email Address:
    Total number of subscribers: 9
    Plugin installed at: 2021-09-14 19:08:01
    Installed via WooCommerce onboarding wizard: false

    The page I need help with: [log in to see the link]

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

    (@danielinhou)

    Hi there @gesundegeschenke ????!

    Thank you for reaching out to MailPoet Support!

    since installing it I have had constant problems with the connection to the database.

    I have had a look at the system report that you shared and I see that the PHP and DB settings are a bit on the lower end:

    WP info: WP_MEMORY_LIMIT: 40M - WP_MAX_MEMORY_LIMIT: 512M - WP_DEBUG: - WordPress language: de_DEPHP info: PHP max_execution_time: 140 - PHP memory_limit: 512M - PHP upload_max_filesize: 150M - PHP post_max_size: 150

    Can you work with your hosting company to increase those settings?

    Once you have done it, if you still see the same issue, please share the complete error that you see with us.

    Cheers!

    Thread Starter gesundegeschenke

    (@gesundegeschenke)

    Hello,

    thanks for the reply. I still have the following message from the host:

    Cmd: sleep

    “Your installation is making too many database connections and is not closing correctly.”

    Plugin Support Thu P. a11n

    (@thup90)

    Hi @gesundegeschenke,

    Do you still see this message after increasing the PHP settings? Could you share the updated system info so we can take a look?

    Thread Starter gesundegeschenke

    (@gesundegeschenke)

    The host repeats that it is not due to capacity, but rather due to incorrect plugin settings. Database connections are created and then not closed correctly. Is this perhaps due to the settings in mailpoet or my configuration?

    I found this message in the Mailpoet log:

    [2024-08-11T03:51:15.376469+00:00] mss.ERROR: key-validation.failed {“http_code”:403,”home_url”:”https://www.gesunde-geschenke.com”,”key_type”:”premiu…

    In addition, Mailpoet causes a conflict in Woocommerce when editing products: no product categories and tags are displayed in the sidebar.

    I personalized the editor with the following code:

    // Disable new WooCommerce product template (from Version 7.7.0)
    function bp_reset_product_template($post_type_args) {
    if (array_key_exists('template', $post_type_args)) {
    unset($post_type_args['template']);
    }
    return $post_type_args;
    }
    add_filter('woocommerce_register_post_type_product', 'bp_reset_product_template');

    // Enable Gutenberg editor for WooCommerce
    function bp_activate_gutenberg_product($can_edit, $post_type) {
    if ($post_type == 'product') {
    $can_edit = true;
    }
    return $can_edit;
    }
    add_filter('use_block_editor_for_post_type', 'bp_activate_gutenberg_product', 10, 2);

    // Enable taxonomy fields for woocommerce with gutenberg on
    function bp_enable_taxonomy_rest($args) {
    $args['show_in_rest'] = true;
    return $args;
    }
    add_filter('woocommerce_taxonomy_args_product_cat', 'bp_enable_taxonomy_rest');
    add_filter('woocommerce_taxonomy_args_product_tag', 'bp_enable_taxonomy_rest');

    can you adapt this code so that it works with mailpoet?

    Plugin Support Gui A. a11n

    (@guicmazeredo)

    Hi there,

    Thanks for getting back to us with more details.

    I’m afraid that assistance with custom code is outside of our scope of support.

    However, I’m pretty positive that both issues you are describing are not an issue with MailPoet itself or the MailPoet configuration as if that was the case we’d be receiving several reports. This seems to be an issue specifically with your website and it could be due to:

    • A conflict with another plugin
    • A server configuration issue

    As your host discarded the second hypothesis for now, I’d recommend doing the following:

    1. Create a staging site. If your host doesn’t offer this facility, you can quickly spin up a copy of your website with WP Staging plugin.
    2. On the staging site, follow these instructions to?re-install the plugin via FTP. This will ensure no plugin files are missing or corrupted.
    3. If the issue persists, please deactivate all plugins on your website except MailPoet and switch to a default theme like Storefront. At this point, the issue should be sorted. Then, you can proceed with the next step – reactivate one plugin at a time checking if the issue is back after each until your find which plugin is conflicting. .

    Let us know how that goes!

    Thread Starter gesundegeschenke

    (@gesundegeschenke)

    Hi,

    thanks for the suggestions. I did the test with the plugins and actually found one that I had to delete.

    After the last update, some errors no longer seem to occur. However, I also cleaned the database during this time. the categories and tags are visible again. I can now work quite well with mailpoet, except for minor delays.

    The error with the database connection appears less often.

    “MailPoet Error: No connection to database (The database cannot open a file or folder), the connection is probably not configured correctly. Please read our knowledge base post for the steps to resolve this.”

    If I reinstall the plugin will I have to recreate all templates? Or can I save these somewhere?

    Plugin Support Gui A. a11n

    (@guicmazeredo)

    Hi there,

    It’s great to hear that most issues seem to have been resolved.

    If I reinstall the plugin will I have to recreate all templates? Or can I save these somewhere?

    Don’t worry,?you won’t lose any data from the plugin?since it’s saved in your database, not the plugin files. However, whenever making any changes like this, we recommend making sure you have a full backup of the site just in case. ??

    Let us know if you keep seeing the error message after re-installing it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.