PHP Allowed Memory Size Exchausted Fatal Error PHP Leidžiama atminties dydis Exchausted Klaida
A functional PHP script returns the following error either on the web page or in Apache error log file when it exchausted and used up the default memory requirement of 8 MB memory allocation: Funkcionavimo PHP skripto grąžina tokią klaidą arba puslapio arba Apache klaida žurnalo failą, kai jis exchausted ir naudojami pagal nutylėjimą atminties reikalavimas yra 8 MB atminties paskirstymas:
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … bytes) in … PHP Fatal error: Allowed memory size of 8388608 bytes išnaudota (tried to allocate ... baitų) ...
The error normally occurs when PHP tries to process a big database records or when importing or exporting. Klaidos paprastai atsiranda, kai PHP Bandymas apdoroti didelį duomenų bazės įrašus arba importuoti arba eksportuoti. To solve the error, there are two resolutions. Norėdami išspręsti šią klaidą, yra dvi rezoliucijas. One is to change and increase the memory limit of the particular PHP script by adding or including an additional line at the top of the script: Vienas iš jų yra pakeisti ir padidinti atminties riba konkrečiam PHP skripto, įtraukdama arba įskaitant papildomą eilutę viršuje scenarijų:
ini_set(”memory_limit”,”16M”); ini_set ( "memory_limit", "16M");
You can assign the memory limit to any amount you like by changing the 16M to other number, such as 12M or 24M. Galite priskirti atminties apriboti bet kokią sumą norite pakeitus 16M kitas skaičius, pvz 12M arba 24m. 16M will set the memory limit to 16 megabytes. 16M bus nustatyti atminties limitą iki 16 megabaitų. If this doesn't work and the PHP error still appearing, increase the memory limit until the PHP scripts running perfectly or the limit of your system hardware. Jei tai neveikia, o PHP klaidos vis dar pasirodo, padidinti atminties limitą iki PHP veikia puikiai arba apriboti jūsų sistemos aparatinę įrangą.
To change the memory allocation limit permanently for all PHP scripts running on the server, modify the PHP.INI configuration file of the server (location depending on your OS and installation method). Norėdami pakeisti atminties paskirstymas riba nuolat visiems PHP veikia serveryje, keisti php.ini failo konfigūracija ir serverio (vietos, priklausomai nuo OS ir diegimo metodas). Search for memory_limit after opening the file in an editor. Ieškoti memory_limit atidarius failą redaktorius. If the memory_limit doesn't exist, add the following line. Jei memory_limit nėra, pridėkite šią eilutę. If it's there, modify the value of the memory_limit: Jei jis ten, pakeiskite reikšmę į memory_limit:
memory_limit = 12M memory_limit = 12M
The 12M sets the limit to 12 megabytes (12582912 bytes). Į 12M nustato limitą iki 12 MB (12582912 baitų). Change to the value you desirable. Pakeisti vertė jums pageidautina.
An alternative way is to modify your PHP scripts that generate the error for more efficiency and better data handling. Alternatyvus būdas yra pakeisti savo PHP skriptą, generuoja klaidą didesnį veiksmingumą ir geresnį duomenų tvarkymą.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Joomla Direct Access to This Location Is Not Allowed Error Joomla Tiesioginė prieiga į šį Vieta neleidžiama Klaida
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Fix Klaida skambink į Pareigos get_link () nevyriausybinių organizacijų Objektų į WordPress 2,8 skydelis su Technorati Incoming Links RSS
- PHP Parse Error: syntax error, unexpected $end PHP Parse Error: syntax error, netikėtų $ pabaigos
- Memtest86+ to Verify Memory Error on PC system Memtest86 + patikrinti atminties Klaida kompiuterio sistemą
- Change or Increase vBulletin Maximum Number of Total Allowed Private Messages (PM) Keisti arba Padidinti vBulletin Maksimalus skaičius Bendras leistinas Asmeninės žinutės (PM)
- Fix Vista Unable or Fail to Remember or Save Folder Types/Views Setting Error by Increasing BagMRU Cache Memory Size Fix Vista "Nepavyko arba Nustatyta Prisiminti arba Įrašyti Aplanko tipai / Žiūrėti nustatymas Klaida didinant BagMRU talpyklos atminties dydis
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager Fix Internal Server Error Kai prieiga prie Lengva Apache į cPanel Webhosting vadybininkas
- TCP-Z Fail to Load Driver Error Fix and Workaround TCP-Z Gedimams įkelti Driver Error Fix ir PROBLEMOS
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL, SQL Query Klaida WPDB klasė
- cPanel WHM Failed to Receive Status Information From Apache Error Cpanel WHM Nepavyko gauti informaciją apie iš Apache Klaida










































April 16th, 2009 17:31 16 balandžio 2009 17:31
I want to increase my memory limit in php server where is i write the script ini_set(”memory_limit”,”16M”); Noriu padidinti savo atminties riba Php serveryje, kur yra i parašyti scenarijų ini_set ( "memory_limit", "16M");
If u have any other option then send me plz. Jei ir jokio kito pasirinkimo, tada siųskite man plz.
November 8th, 2008 08:41 Lapkritis 8, 2008 08:41
THANKS VERY MUCH…. Thanks very much ....
May 22nd, 2008 11:15 Gegužė 22nd, 2008 11:15
I have ever got the same problem, but this ini_set(”memory_limit”,”12M”); line could not solved my problems. Aš vis turiu tą pačią problemą, tačiau tai ini_set ( "memory_limit", "12M"); linija negalėjo išspręsti savo problemas. I just removed all waste plugin. Aš ką tik pašalintas visas atliekas plugin. And walah, It worked. Ir walah, ji dirbo.
May 1st, 2008 13:34 Gegužės 1 2008 13:34
where is PHP.INI location??? kur php.ini vietą?
March 6th, 2008 10:32 6 Kovo 2008 10:32
After trying many solutions in order to get Wordpress to co-operate with Microsoft live writer. Po bando daug sprendimų, siekiant gauti WordPress bendradarbiauti su Microsoft Live Writer. I finally came here and after editing “/wp-admin/includes/image.php”, the problem was solved. Aš pagaliau atėjo čia ir po redagavimo / wp-admin/includes/image.php ", problema buvo išspręsta.
I just needed to add… Aš tiesiog reikia pridėti ...
ini_set(”memory_limit”,”12M”); ini_set ( "memory_limit", "12M");
… right under the <?php tag ... Teisės pagal <? Php žymelę
February 16th, 2008 19:50 Vasario 16 d., 2008 19:50
thanks ačiū
January 31st, 2008 11:20 31 sausis 2008 11:20
Exactly what I was looking for to solve my problems! Būtent tai, ko aš ieškau išspręsti savo problemas! Thanks for the simple and clear instruction! Ačiū už paprastą ir aiškų nurodymą!
January 27th, 2008 17:35 Sausio 27, 2008 17:35
I follow your instruction by modifying php.ini and it works. Aš sekite instrukcija pakeisdamas php.ini ir ji veikia. Thanks for sharing this information. Dėkojame už tokios informacijos.
December 19th, 2007 09:58 Gruodžio 19 d. 2007 09:58
I have same problem with yours. Aš su savo paties problemos. Can this problem solved by editing any wordpress file? Ar ši problema išspręsta redaguoti bet wordpress failą? or…. arba ....
without configuring php.ini? be konfigurując php.ini?
thanks before ačiū iki