0 votes
1.7k views
by (1.5k points)

I have installed new theme on my WordPress powered blog. But suddenly it showing following message. Please help me to get rid of.

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/username/public_html/wp-content/themes/xyztheme/libs/Less.inc on line 3032
Fatal error: Allowed memory size of 67108864 bytes exhausted

1 Answer

0 votes
by (10.3k points)

Yes, it's a common problem on shared hosting. To control and stabilise the traffic to an individual website, most hosting providers set the max cap for memory utilisation. The outcome of which, each website can share feasible memory.

As your website is WordPress CMS based, you can follow below steps.

  1. Open cPanel > Filemanager or FileZilla / FTP Client
  2. Navigate to public_html directory
  3. Edit wp-config.php
  4. Insert the following line anywhere (must on new line)
define('WP_MEMORY_LIMIT', '100M');​

Done..! Now refresh your website.

...