I am very used to clicking the “ Save and Continue Editing ” button whenever I am in the midst of writing an article for this blog. אני רגיל מאוד כדי לחיצה על "שמור והמשך עריכה" לחצן בכל פעם אני בעיצומו של כתיבת מאמר זה בלוג. Even though starting from Wordpress version 2.1, it already has the auto-save function which happens in the background, it's still a good practice to manually save because you might never know when it won't work. אף החל מגירסה 2.1 וורדפרס, זה כבר יש שמירה אוטומטית פונקציה אשר קורה ברקע, עדיין זה אימון טוב כדי לשמור באופן ידני כי אתה אף פעם לא יכול לדעת מתי זה לא יעבוד.

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 bytes מותש (וניסה להקצות 163,569 בתים) in / home / ... / translator.php on line 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 bytes מותש (וניסה להקצות 163,569 בתים) ..." עולה כי חלק הסקריפטים 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. נסה לשנות את זה ל 12M. If it doesn't work, increase it to 16M or even 24M if 16M doesn't work. אם זה לא עובד, להגדיל אותו 16M או 16M אפילו 24m אם לא עובד.
שגיאה חמורה: מותרים גודל הזיכרון של 8388608 bytes מותש (וניסה להקצות 163,569 בתים)

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 12M memory_limit php_value

Good luck in fixing the fatal error allowed memory size error. בהצלחה תיקון שגיאה קטלנית מותר שגיאה גודל הזיכרון.

Technorati Tags: Technorati Tags: , , , , , ,