• Resolved one3rdnerd

    (@one3rdnerd)


    Hello,

    I installed and configured this plugin but when I add a product to the cart or go to the cart afterwards I get the below error.

    Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 536870920 bytes) in //public_html/wp-content/plugins/woo-extra-flat-rate/admin/partials/class-wc-extra-flat-eval-math.php on line 166

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter one3rdnerd

    (@one3rdnerd)

    I also tried to set the below in wp-config.php

    define( ‘WP_MEMORY_LIMIT’, ‘512M’ );

    But this doesn’t fix it either. For some reason, it’s using a crazy amount of memory.

    Thread Starter one3rdnerd

    (@one3rdnerd)

    I have also tested this in troubleshooting mode with only

    1) TwentyTwenty theme active
    2) WooCommerce active
    3) Advanced Flat Rate Shipping For WooCommerce active

    I also tried putting the memory limit up to 1gb but it seems to just keep going on forever no matter how high I set the wp memory limit.

    Does anyone have any ideas? Is the plugin broken for others?

    Thread Starter one3rdnerd

    (@one3rdnerd)

    Okay I found the issue.

    I was using 3 + ( 2 * [qty] ) to calculate $3 flat rate + $2 per item. This works in the default WooCommerce shipping but not in this plugin.

    Why is this not supported by the plugin?

    Could it be added? I can’t find a way to add this sort of shipping cost.

    X & [qty] isn’t enough for our shipping.

    Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello one3rdnerd,

    Thanks for reaching out to us and apologies for the late reply.

    In the price textbox, you can add the price with the default shortcode suing * for multiplication only.

    You can’t add multiple questions like * and + using brackets.

    You can add something like 2 * [qty] or 5 * [qty] or similar to that.

    Hope this is clear now. Let us know in the above shortcode you getting anything.

    Best Regards,
    Hitendra & Dotstore Team

    Thread Starter one3rdnerd

    (@one3rdnerd)

    Hello,

    No problem, I got an email back from the developers on this. I was confused because you use a different formula to the default WooCommerce method for quantity based pricing.

    It would be great if you aligned with WooCommerce and changed that or allowed both options to work as that was confusing and I didn’t see anything in the documentation about it.

    Thanks for getting back to me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Allowed memory size of 805306368 bytes exhausted’ is closed to new replies.