Support » Plugins and Hacks » [Resolved] Fatal error, out of memory when using a WooCommerce theme

[Resolved] Fatal error, out of memory when using a WooCommerce theme

  • As first here are specs:

    Wordpress 3.5.2
    WooCommerce 2.0.13
    PHP 5.3.24
    MySQL 5.1.70-cll

    WP is up to date as you can see, WooCommerce also. It is working fine, I have nearly completed the setup, and was about to start adding items to WC. But instead I tried installing a free MyStile theme. And there problems started.

    When I go to live preview or activate MyStile theme, I get Fatal Error. in wp-admin. Web site is working fine as far as I can see. So the problem is WP Admin.

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/user/public_html/wp-admin/includes/class-wp-list-table.php on line 470

    I tried tackling this problem deactivating WooCommerce and using the theme. Theme is loading nicely and WP Admin is working fine.

    So WC plugin is fine, theme also, but they both activated give me problem at the admin panel.

    When I activate it in opposite order: Theme and then WooCommerce I get this error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/user/public_html/wp-admin/includes/upgrade.php on line 839

    Can’t acces php.ini so I increased memory in wp-config.php
    define('WP_MEMORY_LIMIT', '512M');

    started from 64m…

    Can anyone guide mi in the right direction?
    I have searched, but can’t find the right answer anywhere.


Viewing 8 replies - 1 through 8 (of 8 total)
  • Also at one stage (when WooCommerce was working with Twenty Tvelve) i had Fatal error at dasboard for Incoming links, plugins, WordPress Blog and Other WordPress news. So everything external that was loading in dasboard. I think that stopped when I deactivated WooCommerce, or may be another plugin.

    Roy Ho


    I think your title is misleading as your issue has nothing to do with WC not working or Mystile theme not working. Your issue is already clearly stated that you’re running out of memory.

    Some hosts have no affect when you declare the memory in the wp_config. You have to do it in the PHP.ini which you need to ask your host to do for you if you don’t have access to that.

    OK, I will change the title, and comtact the host. I guess asking them to imcrease it to 64M would be enough? Or should I ask for 128?

    Roy Ho


    Usually 64m would be OK but it doesn’t hurt to have more…

    I have sent a support ticket and waiting for a reply.
    I guess they are willing to increase it.

    Thanks for your time and help!

    I just inserted this line ini_set(“memory_limit”,”64M”);
    as shown below in woo plugin/classes/class-wc-emails.php
    and error gone!!
    you should find your root file that is shown in fatal error message.
    and insert the ini_set(“memory_limit”,”64M”);
    In my case it was happening with all php that was included in email folder of Woocommerce.
    class hooks in all emails that can be sent.
    * @access

    * @return void
    function __construct() {

    // Include email classes

    include_once( ‘abstracts/abstract-wc-email.php’ );

    include_once( ’emails/class-wc-email-customer-completed-order.php’ );

    ’emails/class-wc-email-customer-invoice.php’ );
    include_once( ’emails/class-wc-email-customer-

    new-account.php’ );
    include_once( ’emails/class-wc-email-customer-note.php’ );

    include_once( ’emails/class-wc-email-customer-reset-password.php’ );

    Maybe the issue has nothing to do with WooCommerce, but I am getting exactly the same error. And I already increase the value in php.ini to “memory_limit = 128M”.
    Any suggestion?

    In my case it was solved with editing in woo commerce email template.
    As explained above.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Fatal error, out of memory when using a WooCommerce theme’ is closed to new replies.