Fatal Error on Woocommerce

GoodDogWoof

Newbie
Joined
Sep 30, 2017
Messages
40
Reaction score
10
Hey BHW Folks,


I've got a quick question regarding hosting for a Woocommerce site.

I'm currently using the WordPress shared hosting from Dreamhost for a WordPress Site and WoopCommmerce Store.

I've been having issues with a "Fatal error: Allowed memory size of xxxxxxxx bytes exhausted (tried to allocate xxxxxxxxx bytes)"

This appears to occur in a different file every time it's refreshed

Untitled 2.png


It's only affecting the woocomecrece store portion of the website.

I have gotten support to increase my allowed memory and it was temporarily resolved but the issue has reoccurred.

My question is, would migrating to a VPS (something I want to do for speed purposes anyway) resolve the issue?

Thanks
 
Increase the memory limit and it will be fine.

In your wp-config.php, add this line (after <?php line, before ?>):

Code:
ini_set('memory_limit','2048M');
If you still get the error, try increasing it even more (but you will need a better server for doing so).

My question is, would migrating to a VPS (something I want to do for speed purposes anyway) resolve the issue?

Yes, but it will still need the correct configuration.
 
Back
Top