• Resolved juliereader

    (@juliereader)


    hello ,

    when ever i activate woocommerce plugin i am getting following error
    already increase memory but no solution

    Fatal error: Out of memory (allocated 281022464) (tried to allocate 20480 bytes) in /home/myhosting/public_html/wp-includes/class-wpdb.php on line 2322

    Fatal error: Out of memory (allocated 281022464) (tried to allocate 20480 bytes) in /home/myhosting/public_html/wp-includes/functions.php on line 4953

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi Julie,

    Thanks for reaching out, and I’m sorry to hear you’re running into a fatal error when activating WooCommerce.

    The error message you shared suggests that your site is hitting the PHP memory limit during plugin activation. While you mentioned increasing memory, it’s possible that the change wasn’t applied correctly, or the new limit still isn’t high enough for WooCommerce to run.

    Here are a few things to check:

    • Go to WooCommerce → Status and check what is listed for WP Memory Limit. WooCommerce recommends at least 256 MB, but depending on your setup, increasing it to 512 MB might help.
    • Make sure the memory change is applied properly. You can increase it by adding this line to your wp-config.php file just before the line that says /* That’s all, stop editing! */:
    define('WP_MEMORY_LIMIT', '512M');

    Then check if the error still occurs.

    • Some plugins or themes might be using excessive memory. If you’re able to access your admin area or use FTP/File Manager, try disabling all other plugins and switching to a default theme (like Storefront), then try activating WooCommerce again. More info: <u>https://woocommerce.com/document/how-to-test-for-conflicts/</u&gt;
    • If the issue persists, we recommend reaching out to your hosting provider to ensure they allow higher memory limits and to check if there are any server-side restrictions.

    I hope that helps! Let me know once you have done a conflict test!

    Thread Starter juliereader

    (@juliereader)

    hey Frank,

    thanks for the reply.

    • i cant see the stautus because when i activate the plugin, site crashes and shows the mentioned error
    • i increased the memroy from php options in cpanel..still didnt work
    • i have decativated and activated whole plugin folder. Even deleted woocommerce and then reinstall it..but its the only plugin that causes this issue.
    • already worked with hosting provider for 2 hrs and he recommended getting help from.you guys.

    Hi @juliereader,

    I understand how frustrating it is when your site crashes on activating WooCommerce, especially after trying several solutions like increasing memory and working with your host. No worries, I’ll help you dig deeper into this.

    Since the error points to PHP running out of memory and it only happens when activating WooCommerce, it’s possible that something in your current environment is putting heavy strain during activation, such as a large database, heavy theme, or leftover WooCommerce data from a previous install.

    To move forward, could you please share your System Status Report? Since you can’t activate WooCommerce to access it normally, you can use the Health Check & Troubleshooting plugin to enable Troubleshooting Mode. This lets you activate WooCommerce in a safe environment with other plugins disabled and a default theme active, without affecting visitors. Also, using this tool, you can share your site info with us by going to “tools” under site health, then copy to clipboard.

    But if you can activate WooCommerce in that safe mode, go to WooCommerce > Status, click Get system report, and paste the contents into https://pastebin.com. Then share the link here.

    This will give us insight into your server environment, theme, and plugin setup so we can help pinpoint what might be overwhelming the memory during activation. Let’s see how it goes!

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    I’m going to mark this as resolved, as we haven’t heard back from you in a while. Please open a new thread if you need further assistance.

    Your feedback helps others – please consider leaving a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘fatal error on activating woocommerce’ is closed to new replies.