WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Fatal error, out of memory when using a WooCommerce theme (9 posts)

  1. DamirK
    Member
    Posted 9 months ago #

    As first here are specs:

    Using:
    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.

    http://wordpress.org/extend/plugins/woocommerce/

  2. DamirK
    Member
    Posted 9 months ago #

    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.

  3. Roy
    Member
    Posted 9 months ago #

    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.

  4. DamirK
    Member
    Posted 9 months ago #

    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?

  5. Roy
    Member
    Posted 9 months ago #

    Usually 64m would be OK but it doesn't hurt to have more...

  6. DamirK
    Member
    Posted 9 months ago #

    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!

  7. MLA.Sumeet
    Member
    Posted 2 months ago #

    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

    public
    * @return void
    */
    function __construct() {

    // Include email classes

    include_once( 'abstracts/abstract-wc-email.php' );
    `ini_set("memory_limit","64M");

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

    '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' );

  8. Aleph Ozuas
    Member
    Posted 1 month ago #

    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?

  9. MLA.Sumeet
    Member
    Posted 1 month ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic