12 Oct 12 жовтня
This happened while I was writing an article just now. Це сталося, коли я писав статтю зараз. Suddenly I got the error message “ Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 163569 bytes) in /home/…/translator.php on line 0 “. Несподівано я отримав повідомлення про помилку "Фатальна помилка: номери пам'яті розміром 8388608 байт вичерпані (спробував виділити 163569 байт) в / головна / ... / translator.php в рядку 0". At first I thought it was the Translator plugin that was causing the problem. Спочатку я думала, що це плагін перекладач, який був причиною проблеми. I moved the plugin to another location and still the same error. Я переїхала плагін в інше місце, і все та ж помилка. Later I noticed that I couldn't get in to any part of Raymond.CC anymore. Потім я помітила, що я не міг потрапити в будь-якій частині Raymond.CC більше. Forum don't work, Wordpress admin don't work, not even the blog's main page! Форум не працює, адмінки не працює, навіть не головній сторінці блога!
If all don't work, it must be a problem on the server side. Якщо все не працює, він повинен бути проблемою на стороні сервера. I did a little searching and luckily I found a solution to fix this problem without submitting a support ticket to my webhost. Я трохи пошуку і, до щастя, я знайшов рішення, щоб виправити цю проблему, не надаючи підтримку квиток на моєму хостингу.
The error message “Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 163569 bytes)…” indicates that some PHP scripts needed more memory than PHP was allowed. Повідомлення про помилку "Фатальна помилка: номери пам'яті розміром 8388608 байт вичерпані (спробував виділити 163569 байт) ..." вказує, що деякі скрипти PHP потрібно більше пам'яті, ніж було дозволено PHP.
You can fix the problem by increasing PHP's memory limit in either way: Ви можете виправити проблему, збільшивши ліміт пам'яті PHP в будь-якому разі:
1. 1. Try looking for php.ini file on the root of your site. Спробуйте шукає php.ini файл у кореневому каталозі вашого сайту. Mine was located in public_html folder. Моя була розташована в папці public_html.
Open up php.ini file with any text editor and change the values for memory_limit. Відкрийте файл php.ini в будь-якому текстовому редакторі і змінити значення memory_limit. By default you should see memory_limit = 8M . За замовчуванням ви побачите memory_limit = 8M. Try changing it to 12M. Спробуйте замінити його на 12м. If it doesn't work, increase it to 16M or even 24M if 16M doesn't work. Якщо це не спрацює, збільшити його до 16 м або навіть 24M якщо 16M не працює. 
2. 2. If you can't find the php.ini file, open up the PHP file that requires more memory, and add a line below just after Якщо ви не можете знайти файл php.ini, відкрийте файл PHP, яка вимагає більше пам'яті, і додати рядок нижче відразу після ini_set('memory_limit', '12M'); ini_set ( 'memory_limit', '12M ');
Same thing. Те ж саме. Memory can be increased but do try it with 12M first. Пам'ять може бути збільшена, але спробуйте це зробити з перших 12M.
3. 3. Final way is to look for .htaccess in your root, and add a line that looks like below. Заключний метод пошуку. Htaccess в корені сайту і додати рядок, яка виглядає як показано нижче.
php_value memory_limit 12M php_value memory_limit 12M
Good luck in fixing the fatal error allowed memory size error. Удачи у встановленні фатальної помилки допускаються помилки пам'яті.
Technorati Tags: Бірки Technorati: php PHP , , memory пам'ять , , error Помилка , , fatal error фатальна помилка
: Copying this article to your website is strictly NOT allowed. Копіювання цієї статті на Ваш сайт, строго кажучи, не допускається. However, if you like this article, you can use the HTML code below to directly link to this article. Однак, якщо вам подобається ця стаття, ви можете використовувати HTML код, який безпосередньо з'єднає до цієї статті. Fix Ad-Aware 2007 Fatal Error During Installation Fix Ad-Aware 2007 Fatal Error в процесі установки Manifest Parse Error: Invalid at the top level of document Маніфест Parse Error: Invalid на верхньому рівні документа The BEST Anti-Spyware Ad-Aware 2007 Final is Here BEST Anti-Spyware Ad-Aware 2007 Заключний тут Google 502 Server Error Google 502 Server Error How Much Memory Does a WebPage in a Tab Take Up in Web Browser? Скільки пам'яті сторінку в Tab зайняти в веб-браузер? MSN Messenger 7.5.0319 QFE Patch (80048820 error FIX) MSN Messenger 7.5.0319 QFE патч (80048820 помилку FIX) MSN Messenger Error 80048820 MSN Messenger помилка 80048820
Have computer technical problems? Мають комп'ютерні технічні проблеми? Get FREE help from Raymond.CC FORUM Отримати БЕЗКОШТОВНО допомогу від Raymond.CC Форум
9 Responses for "FIX Fatal error: Allowed memory size of 8388608 bytes exhausted ERROR" 9 відповідей на "виправити помилку Fatal: номери пам'яті розміром 8388608 байт вичерпані ПОМИЛКА"
congrats Raymond you very smart!!! Congrats Раймонд ти дуже розумний!
nice tip raymond Nice Raymond відгук
sorry to post again but 2 things id like to add На жаль, щоб повторити спробу, але 2 речі ID хотів би додати
1 ) try the ajax save post plugin, helps a lot, saves without reloading page. 1) спробувати зберегти пост AJAX плагін, здорово допомагає, рятує без перезавантаження сторінки.
2 ) when i comment i get an error “Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/raycc/public_html/blog/wp-content/plugins/SK2/sk2_second_chance.php:2) in /home/raycc/public_html/blog/wp-content/plugins/translator/translator.php(16) : eval()'d code on line 1″ 2) Коли я я отримати коментар помилкою "Warning: session_start () [function.session-початок]: Неможливо відправити обмежувач сесії кеша - заголовки вже було відправлено (вихід почався в / Home / raycc / public_html / Блог / WP-зміст / плагіни / SK2/sk2_second_chance.php: 2) в / головна / raycc / public_html / Блог / WP-зміст / плагіни / перекладач / translator.php (16): EVAL () 'D коду в рядку 1 "
You may edit this comment to remove the error. Ви можете змінити цей коментар видалити помилку. Thanks Спасибо
Granted this is a quick fix and for most scripts it should solve the problem. Звичайно це швидко виправити, і для більшості сценаріїв Це має вирішити проблему.
However in my experience if a script is quickly running out of memory there is probably something wrong with the script. Однак, на мою досвіду, якщо сценарій, швидко йде з пам'яті, ймовірно, є щось неправильно зі сценарієм. For example this error can happen when you have loops that append strings or arrays go out of control. Наприклад, ця помилка може статися, коли у вас є петлі, додати рядок або масивів з під контролю. It can also happen when manipulating huge amount of data. Це також може статися при маніпулюванні величезною кількістю даних. In this case it may be that then translator plug in is cloning the data every time it auto-saves. У цьому випадку воно може бути те, що перекладача підключити таке клонування даних кожного разу це авто-заощаджує. (Just a stab in the dark) (Це просто удар в темряві)
The configuration fix may alleviate the symptoms it may not really solve the problem which may be some bad interaction between WordPress and the plug-in or some bad code so this MAY come back to bite you in the future. Конфігурація виправити може полегшити симптоми вона не може реально вирішити проблеми, яка може бути поганим взаємодією між WordPress і плагін чи погана код так, у травні цього року повернутися до вкусити вас у майбутньому.
True this is a quick fix to solve the problem without bringing down the whole Wordpress blog site. Правда це швидко виправити, щоб вирішити цю проблему без залучення вниз весь блог WordPress сайті. This is definitely something wrong with the script which we have to voice out to the plugin's author. Це безперечно щось не в порядку з скрипт, який ми повинні голос із автору плагіна.
thanks спасибо
thanks!! Спасибо!
Thanks for the great tip. Спасибо большое за відгук. My host was kind enough to make the change to php.ini file for me. Господар був такий добрий, щоб зробити зміни у файлі php.ini для мене.
Thanks for this its first in google this is my problem in my blog thanks! Дякуємо вам за це його перша в Google це моя проблема в моєму блозі спасибо!
Leave a reply Написати відповідь