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 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 אם לא עובד. 
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: 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 תקן Ad-Aware 2007 שגיאה מכרעת במהלך ההתקנה Manifest Parse Error: Invalid at the top level of document המניפסט ניתוח שגיאה: לא חוקי ברמה העליונה של המסמך The BEST Anti-Spyware Ad-Aware 2007 Final is Here נגד תוכנות ריגול best-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? כמה זיכרון האם דף אינטרנט כרטיסייה לקחת בדפדפן אינטרנט? MSN Messenger 7.5.0319 QFE Patch (80048820 error FIX) MSN Messenger 7.5.0319 QFE תיקון (תיקון שגיאה 80048820) 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 תגובות עבור "תיקון שגיאה חמורה: מותרים גודל הזיכרון של 8,388,608 בתים מותש שגיאה"
congrats Raymond you very smart!!! Congrats ריימונד אתה חכם מאוד!
nice tip 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-start]: לא ניתן לשלוח את המטמון מגביל הפעלה - כותרות כבר נשלח (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.php (16): eval () 'd code on line 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 ו Plug-in או קוד כמה רע כל כך זה יכול לחזור לנשוך אותך בעתיד.
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 השאירו תגובה