When the Drupal website runs out of memory due to excessive navigation memory overflow, Baidu can basically solve the problem. However, the search results are often not cumbersome, or have poor applicability, and cannot effectively solve the problem of insufficient php memory in drupal. Don't panic. What I teach you today is to use the simplest method to modify the php memory during drupal runtime.
Find the settings. php file, which usually exists in your sites/default/directory, if you haven't made any changes.
Use Ctrl + F to locate the location of the "PHP settings" string, which is usually around 270 rows and may vary depending on different file locations.
Add the following line of code and save it to take effect immediately. Do not forget to make comments so that you do not forget the modifications later ~
Ini_set ('memory _ limit ', '64m ');
Now let's run the drupal website to see if the display of memory usage has dropped.