DRUPAL: Fatal error: permissible memory size error while editing certain existing pages

Fatal error: Allowed memory size of 18874368 bytes exhausted (tried to allocate 1481725 bytes) in __/public_html/includes/database.inc on line 224

I get this error in Drupal 6 every time I try to edit the following pages (sorry for xx):

hxxp: //chipkin.com/fs-8700-125-stulz

hxxp: //chipkin.com/fs-8700-47-dnp-30

hxxp: //chipkin.com/fs8700-14-ge-mark-iv-speedtronic

hxxp: //chipkin.com/fs8700-74-veeder-root-serial-driver

We work on shared hosting, so I do not have access to the php.ini file to allocate more memory, however, I am sure that this is not a problem. Any ideas?

+3
source share
5 answers

. PHP.INI, Drupal:

[PHP]
memory_limit = 40M;
upload_max_filesize = 20M;
post_max_size 20M;
max_execution_time = 200;
max_input_time = 200;

. , PHP.ini - , .

+1

- Drupal 18 .

- - , php.ini( ). Bluehost.com - .

modules. , .

, statistics, , , .

+2

.htaccess

.htaccess :

php_value memory_limit 32M
+2

Drupal, ? - SELECT * ? , .

- , , , , - , .

Unfortunately, the error message does not allow you to tell which specific request is causing the problem, since the code making the db request is in the db library class. If you can do any stack trace, this will help.

0
source

edit settings.php (usually in sites / by default) and add (or change):

ini_set('memory_limit', '96M');

... or, nevertheless, you need.

0
source

Source: https://habr.com/ru/post/1722833/


All Articles