• Resolved serkos

    (@serkos)


    Dear Support Team,

    I am experiencing a critical issue with your Cost Calculator plugin. When I try to access the “Calculators” section in the WordPress admin panel, the page fails to load properly, and I only see a loading spinner instead of the expected content.

    After contacting my hosting provider, we identified a severe memory leak in the plugin. Here are the relevant details from the server logs:

    1. Initial error (512MB memory limit exceeded): vbnetКопироватьРедактироватьPHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /wp-includes/class-wpdb.php on line 2316
    2. After increasing the memory limit to 1024MB (1GB), the issue persists: swiftКопироватьРедактироватьPHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 106496 bytes) in /wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler.php on line 55

    My hosting provider confirmed that even 1024MB of memory is not enough for the script, which suggests a serious memory leak.System Environment & Configuration:

    • PHP Version: 7.4.25
    • PHP max_execution_time: 300
    • PHP Post Max Size: 1024M
    • Database: MariaDB 10.3.31 (upgradable to 10.6 in a Docker container)
    • WP Memory Limit: 512M
    • Required server modules: mod_rewrite, cURL – enabled
    • Max Upload Size: 1024M

    All minimum requirements for the plugin are met, yet the issue persists. Could you please investigate this memory leak and provide a solution?

    Let me know if you need any additional information.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mgordonStylemixThemes

    (@mgordon7)

    Hello,

    Thank you for reaching out,

    The issue comes from third-party integrations, have you tried to make testings by temporarily deactivating all the extra third-party and extra plugins, especially Woocommerce related add-ons?

    Best regards

    Thread Starter serkos

    (@serkos)

    Hello,

    Thank you for your reply.

    Yes, we have already tested the issue by disabling all third-party plugins, including WooCommerce-related add-ons. We also cleared the cache completely. However, the problem still persists, even when only your plugin is active.

    Please advise on how to proceed.

    Best regards,

    Plugin Support mgordonStylemixThemes

    (@mgordon7)

    That means the site is hitting the PHP memory limit of 512MB, which is a fairly large value already — and it’s happening specifically on this user’s site only, indicating it could be caused by a plugin, theme, or a large query/load happening on that site only.

    1. Try Increasing PHP Memory Limit (temporarily)

    You can try increasing it to 768M or 1024M (1GB) in wp-config.php

    2. Check for Problematic Plugin or Theme

    This error often comes from:

    • Heavy WooCommerce sites (product variations, large DB queries)
    • LMS plugins (like MasterStudy)
    • SEO or backup plugins
    • Custom queries in themes

    🔍 Try this:

    • Disable plugins one by one
    • Switch to a default theme like Twenty Twenty-Four
    • Then test again

    This helps pinpoint what’s causing it.

    3 Database Bloat / Transients Cleanup

    Sometimes the database grows with:

    • Transients
    • WooCommerce sessions
    • LMS enrollments, user_meta, etc.

    Install a plugin like:

    • WP-Optimize or Advanced Database Cleaner And clean up transients, orphaned options, sessions, etc.

    4. Check the Specific Line in class-wpdb.php

    The error is on class-wpdb.php line 2316 → that’s often around the part where database queries return large result sets.

    → So this confirms again: something is making a huge query or getting too much data from DB.

    Also, I can suggest you try to install the plugin on a completely fresh and clean WordPress site on local host, for testing purpose

    Best regards

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