PHP Allowed Memory Size Exchausted Fatal Error PHP Allowed Memory Size Exchausted Fatal Error
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: Sebuah naskah PHP fungsional mengembalikan error berikut baik di halaman web atau di Apache error log file ketika habis exchausted dan memori standar persyaratan dari 8 MB alokasi memori:
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … bytes) in … PHP Fatal error: Allowed ukuran memori 8388608 bytes kelelahan (mencoba untuk mengalokasikan ... byte) di ...
The error normally occurs when PHP tries to process a big database records or when importing or exporting. Kesalahan biasanya terjadi ketika PHP mencoba untuk memproses database besar catatan atau ketika mengimpor atau mengekspor. To solve the error, there are two resolutions. Untuk mengatasi kesalahan, ada dua resolusi. 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: Salah satunya adalah untuk mengubah dan meningkatkan batas memori tertentu naskah PHP dengan menambahkan atau termasuk baris tambahan di bagian atas script:
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. Anda dapat menetapkan batas memori untuk setiap jumlah yang Anda suka dengan mengubah 16M ke nomor lain, seperti 12M atau 24M. 16M will set the memory limit to 16 megabytes. 16M akan menetapkan batas memori 16 MB. 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. Jika ini tidak berhasil dan PHP kesalahan masih muncul, meningkatkan batas memori sampai naskah PHP berjalan dengan sempurna atau batas dari perangkat keras sistem.
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). Untuk mengubah batas alokasi memori secara permanen untuk semua skrip PHP berjalan di server, memodifikasi file konfigurasi php.ini dari server (lokasi tergantung pada OS dan metode instalasi). Search for memory_limit after opening the file in an editor. Cari memory_limit setelah membuka file dalam editor. If the memory_limit doesn't exist, add the following line. Jika memory_limit tidak ada, tambahkan baris berikut. If it's there, modify the value of the memory_limit: Jika itu ada, memodifikasi nilai memory_limit:
memory_limit = 12M memory_limit = 12M
The 12M sets the limit to 12 megabytes (12582912 bytes). The 12M menetapkan batas sampai 12 megabyte (12.582.912 bytes). Change to the value you desirable. Ubah ke nilai yang diinginkan.
An alternative way is to modify your PHP scripts that generate the error for more efficiency and better data handling. Cara alternatif adalah dengan memodifikasi script PHP yang menghasilkan kesalahan untuk lebih efisiensi dan penanganan data yang lebih baik.
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman ini adalah mesin diterjemahkan dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Terjemahan mesin mungkin sulit untuk mengerti. Please refer to Silakan merujuk ke original English article artikel asli bahasa Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- Joomla Direct Access to This Location Is Not Allowed Error Joomla Akses langsung ke Lokasi ini Diperbolehkan Bukan Kesalahan
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Fix Fatal Error Panggil ke Fungsi get_link () on Non-Obyek di Wordpress Dashboard dengan 2,8 Technorati Incoming Links RSS
- PHP Parse Error: syntax error, unexpected $end PHP Parse Error: syntax error, tak terduga $ akhir
- Memtest86+ to Verify Memory Error on PC system Memtest86 + untuk Verifikasi Memori Kesalahan pada sistem PC
- Change or Increase vBulletin Maximum Number of Total Allowed Private Messages (PM) Mengubah atau vBulletin Tingkatkan Jumlah Maksimum Total Diperbolehkan Private Messages (PM)
- Fix Windows 7 Did Not Preserve Memory Map Error on Resume from Hibernation Fix Windows 7 Apakah Tidak Pertahankan Peta Memori Error on Resume dari Hibernation
- Fix Vista Unable or Fail to Remember or Save Folder Types/Views Setting Error by Increasing BagMRU Cache Memory Size Fix Vista Tidak dapat atau Fail to Remember atau Save Folder Jenis / Views Menetapkan Error oleh BagMRU Meningkatkan Cache Memory Size
- Check for RAM Error or Defect in Windows 7 and Vista with Windows Memory Diagnostic Periksa RAM Kesalahan atau kegagalan pada Windows 7 dan Vista dengan Windows Memory Diagnostic
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager Perbaiki Internal Server Error Ketika Mengakses Mudah Apache di cPanel WebHosting Manager
- TCP-Z Fail to Load Driver Error Fix and Workaround TCP-Z Gagal beban Kesalahan Driver Fix dan Workaround










































August 12th, 2009 00:08 12 Agustus 2009 00:08
To catch PHP's fatal errors, like “Out of memory” or “PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … bytes) in”, see here : Untuk menangkap kesalahan fatal PHP, seperti "Out of memory" atau "PHP Fatal error: Allowed ukuran memori 8388608 bytes kelelahan (mencoba untuk mengalokasikan ... byte) dalam", lihat di sini: http://php.net/manual/en/function.set-error-handler.php#88401 http://php.net/manual/en/function.set-error-handler.php # 88.401
April 16th, 2009 17:31 16 April 2009 17:31
I want to increase my memory limit in php server where is i write the script ini_set(”memory_limit”,”16M”); Saya ingin meningkatkan batas memori saya di php server di mana saya menulis naskah ini_set ( "memory_limit", "16M");
If u have any other option then send me plz. If u memiliki pilihan lain kemudian kirim aku plz.
November 8th, 2008 08:41 8 November 2008 08:41
THANKS VERY MUCH…. THANKS VERY MUCH ....
May 22nd, 2008 11:15 22 Mei 2008 11:15
I have ever got the same problem, but this ini_set(”memory_limit”,”12M”); line could not solved my problems. Saya pernah punya masalah yang sama, tapi ini ini_set ( "memory_limit", "12M"); baris tidak bisa diselesaikan masalah saya. I just removed all waste plugin. Aku hanya menghapus semua limbah plugin. And walah, It worked. Dan walah, It worked.
May 1st, 2008 13:34 1 Mei 2008 13:34
where is PHP.INI location??? di mana lokasi php.ini???
March 6th, 2008 10:32 6 Maret 2008 10:32
After trying many solutions in order to get Wordpress to co-operate with Microsoft live writer. Setelah mencoba banyak solusi untuk mendapatkan Wordpress untuk bekerja sama dengan Microsoft hidup penulis. I finally came here and after editing “/wp-admin/includes/image.php”, the problem was solved. Aku akhirnya datang ke sini dan setelah mengedit "/ wp-admin/includes/image.php", masalahnya terpecahkan.
I just needed to add… Aku hanya perlu untuk menambahkan ...
ini_set(”memory_limit”,”12M”); ini_set ( "memory_limit", "12M");
… right under the <?php tag ... Tepat di bawah <? Php tag
February 16th, 2008 19:50 16 Februari 2008 19:50
thanks terima kasih
January 31st, 2008 11:20 31 Januari 2008 11:20
Exactly what I was looking for to solve my problems! Persis apa yang saya cari untuk memecahkan masalah-masalah saya! Thanks for the simple and clear instruction! Thanks for the sederhana dan instruksi yang jelas!
January 27th, 2008 17:35 27 Januari 2008 17:35
I follow your instruction by modifying php.ini and it works. Saya mengikuti instruksi Anda dengan memodifikasi php.ini dan bekerja. Thanks for sharing this information. Terima kasih untuk berbagi informasi ini.
December 19th, 2007 09:58 19 Desember 2007 09:58
I have same problem with yours. Aku punya masalah yang sama dengan Anda. Can this problem solved by editing any wordpress file? Masalah ini dapat dipecahkan dengan mengedit file wordpress apapun? or…. atau ....
without configuring php.ini? tanpa mengkonfigurasi php.ini?
thanks before terima kasih sebelumnya