Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Fatal Error – Activation fails on large stores due to WP_Query

$
0
0

Replies: 0

Hi Team,

We’ve had issues activating the plugin on our store.

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /www/theredcowcomau_719/public/wp-includes/wp-db.php on line 2022

Looking into the activation code I can see the plugin attempts to load *every* WooCommerce order into memory. This will cause issues for many stores due to their size or hosting limitations.

See td_run_at_activation

https://plugins.trac.wordpress.org/browser/transdirect-shipping/trunk/transdirect_shipping.php#L920

A suggestion would be to do any metadata checks when needed per order.

I hope that helps

Thanks!
Morgan


Viewing all articles
Browse latest Browse all 59525

Trending Articles