How to Customize, Modify or Change WordPress Database Connection Error Page כיצד להתאים אישית, שינוי או שינוי וורדפרס חיבור מסד דף שגיאה

When מתי WordPress וורדפרס , a popular blog publishing platform built in PHP and uses MySQL database, cannot connect or having problem connecting to the database (such as when database is down), or the MySQL server has too many connections exceeding maximum connection allowed (especially when your post or article is been dugg on Digg.com) and rejects or denies new incoming connections, WordPress will display a default “error establishing database connection” error message page. , פלטפורמת פרסום הבלוג הפופולרי בנוי ב-PHP ומשתמש מסד הנתונים MySQL, לא מצליח להתחבר או שיש בעיה בחיבור למסד הנתונים (כגון כאשר מסד הנתונים למטה יש קשרים), או בשרת ה-MySQL יותר מדי יעלה על החיבור המרבי המותר (במיוחד כאשר ההודעה או שלך המאמר הוא היה Dugg על Digg.com) ודוחה או מונעת לחיבורים נכנסים החדש, וורדפרס יציג מחדל "שגיאה הקמת חיבור מסד נתונים" דף הודעת שגיאה. However, the WordPress error page, some is shown below, is not visitor friendly or user friendly, and worse, the default database error page also reveals the SQL server address and name. עם זאת, וורדפרס דף שגיאה, חלק מוצג למטה, הוא לא מבקר ידידותי או ידידותית למשתמש, ואף גרוע מזה, את מסד הנתונים המוגדר כברירת מחדל בדף שגיאה חושף גם את כתובת שרת SQL ו שם.

Can't select database אין אפשרות לבחור מסד נתונים

We were able to connect to the database server (which means your username and password is okay) but not able to select the localhost database. הצלחנו להתחבר לשרת מסד הנתונים (כלומר, שם המשתמש והסיסמה שלך היא בסדר) אבל לא תוכל לבחור את מסד הנתונים localhost.

* Are you sure it exists? * האם אתה בטוח שהוא קיים?
* On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. * על כמה מערכות את השם של מסד הנתונים שלך הוא ולפניה את שם המשתמש שלך, כך שזה יהיה כמו username_wordpress. Could that be the problem? זה יכול להיות הבעיה?

If you don't know how to setup a database you should contact your host. אם אתה לא יודע איך הגדרת מסד נתונים אתה צריך ליצור קשר המארח שלך. If all else fails you may find help at the WordPress Support Forums. אם כל השאר נכשל אתה עשוי למצוא עזרה על וורדפרס פורומים תמיכה.

Error establishing a database connection שגיאה בעת יצירת חיבור נתונים

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. זה גם אומר את שם המשתמש והסיסמה מידע על הקובץ wp-config.php שלך אינם נכונים או שאנחנו לא יכולים ליצור קשר עם שרת מסד הנתונים localhost ב. This could mean your host's database server is down. זה יכול להיות השרת המארח שלך באתר הוא למטה.

Are you sure you have the correct username and password? האם אתה בטוח שיש לך את שם המשתמש והסיסמה נכון?
Are you sure that you have typed the correct hostname? האם אתה בטוח שהקלדת את שם המארח נכון?
Are you sure that the database server is running? האם אתה בטוח כי את שרת מסד הנתונים פועל?

These default Wordpress database error pages are more meant for website administrators or webmasters rather than the public visitors. ברירת המחדל של וורדפרס אלה דפי שגיאה באתר נועדו יותר עבור מנהלי האתר או מנהלי אתרים ולא המבקרים הציבור. However, you can change the error page to another different error page by modifying or altering wordings and text in the error page by customizing the wp-db.php file located in wp-include directory. עם זאת, אתה יכול לשנות את דף השגיאה לדף אחר שגיאה שונות על ידי שינוי או שינוי wordings טקסט בדף שגיאה על ידי התאמה אישית של הקובץ wp-db.php הממוקם wp-לכלול במדריך. Here's how you can hack the Wordpress default error message. הנה איך אתה יכול לפרוץ את ברירת המחדל של וורדפרס הודעת שגיאה.

In wp-db.php (the file that handles the database connections that WordPress makes), you can see lines like “DB Constructor – connects to the server and selects a database” and “Select a DB (if another one needs to be selected)”. ב wp-db.php (הקובץ שמטפל חיבורים באתר זה וורדפרס עושה), אתה יכול לראות שורות כמו "DB בנאי - מתחבר לשרת בוחר מסד נתונים" ו "בחר DB (אם עוד אחד צריך להיות שנבחרו ) ". That's where you can alter the text and word in the error page. זה המקום שבו אתה יכול לשנות את הטקסט מילה בדף שגיאה. Just look carefully after the line, you will see exactly the some text and message as appeared on the database error page. רק להסתכל בזהירות אחרי קו, תראה בדיוק את הטקסט ואת המסר קצת כמו הופיע בדף שגיאה באתר. Edit them to your liking. ערוך אותם לטעמך.

וורדפרס הערבות פונקציה
Beside, from line 312 onwards is the header and footer output for the HTML of database connection error page, contains inside function named “bail”, which specifies things like the title of “WordPress: Error”. ליד, מקו 312 ואילך היא על הכותרת התחתונה עבור פלט ה-HTML של דף הקשר באתר שגיאה, מכיל בתוכו פונקציה בשם "ערבות", אשר מציין דברים כמו הכותרת של "וורדפרס: שגיאה". The “bail” function is called whenever a database connection error is encountered, and does what it's name said – bails out the error and displays an error message instead to notify the users. הערבות "" הפונקציה נקרא בכל פעם שגיאת חיבור מסד נתונים הוא נתקל, ועושה מה זה שם אמר - bails את השגיאה ואת מציג הודעת שגיאה במקום כדי ליידע את המשתמשים. You can change them if you like too. אתה יכול לשנות אותם אם אתה רוצה יותר מדי.

Please take a backup of wp-db.php file before you customize or alter it. נא לקחת גיבוי של הקובץ wp-db.php לפני שאתה אישית או לשנות אותו. If you break the code, your website visitors and surfers will get the PHP error instead. אם אתה שובר את הקוד, מבקרים באתר האינטרנט שלך לגולשים יקבל את השגיאה PHP במקום. Beside, be careful that when you upgrade your WordPress. ליד, להיזהר כי בעת שדרוג וורדפרס שלך. If you overwrite all files when upgrade the WordPress, the wp-db.php will be replaced back with the original unchanged version too, and you have to edit the file again. אם להחליף את כל הקבצים כאשר לשדרג את WordPress, WP-db.php תוחלף בחזרה עם הגרסה המקורית ללא שינוי מדי, ואתה צריך לערוך את הקובץ שוב. Else, backup the wp-db.php before upgrading your WordPress and restore it after upgrading is done. אחר, לגבות את wp-db.php לפני השדרוג וורדפרס שלך ולשחזר אותו לאחר השדרוג נעשה.

IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.


One Response to “How to Customize, Modify or Change WordPress Database Connection Error Page” תגובה אחת ל "כיצד להתאים אישית, שינוי או שינוי וורדפרס חיבור מסד דף שגיאה"

  1. Zane זיין
    March 21st, 2009 23:51 21 מרס 2009 23:51
    1 1

    Thanks! תודה!
    You Saved Me Here! הצלת אותי כאן!

Leave a Reply השאירו תגובה

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> באפשרותך להשתמש בתגים אלה: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. כדי להירשם הערות תכונה הושבת. To receive notification of latest comments posted, subscribe to כדי לקבל הודעה העדכנית של תגובות, כדי להירשם My Digital Life Comments RSS feed החיים שלי דיגיטליות תגובות RSS Feed or או register to receive הרשמה לקבלת new comments in daily email digest. תגובות חדש ב דוא"ל תקציר יומי.
Custom Search

New Articles מאמרים חדשים

Incoming Search Terms for the Article תנאי נכנסות חיפוש עבור מאמרים

wordpress database connection חיבור מסד נתונים WordPress - -- wordpress change database נתונים לשינוי WordPress - -- wordpress db connection חיבור db WordPress - -- change wordpress database נתונים WordPress שינוי - -- change database wordpress WordPress נתונים לשינוי - -- wordpress database connection details פרטים חיבור מסד נתונים WordPress - -- database connection wordpress WordPress חיבור מסד נתונים - -- How to change wordpress database כיצד לשנות נתונים WordPress - -- wordpress database password סיסמת מסד הנתונים WordPress - -- wordpress database password change לשנות סיסמה באתר WordPress - -- Error establishing a database connection wordpress mu שגיאה בעת יצירת חיבור נתונים wordpress mu - -- wordpress change database password באתר שינוי סיסמה WordPress - -- change wordpress database connection WordPress הקשר לשנות באתר - -- wordpress db connect db WordPress להתחבר - -- change wordpress db db WordPress שינוי - -- wordpress change database connection שינוי חיבור נתונים WordPress - -- how to change database wordpress כיצד לשנות את מסד הנתונים WordPress - -- wordpress database connection file חיבור מסד נתונים WordPress הקובץ - -- db connection in wordpress חיבור db ב-WordPress - -- edit wordpress database עריכה באתר WordPress - -- error establishing database wordpress edit שגיאה הקמת מסד נתונים WordPress עריכה - -- connect select how to view wordpress database להתחבר לבחור כיצד להציג נתונים WordPress - -- wordpress database connection is not working after upgrade חיבור מסד נתונים WordPress לא עובד אחרי שדרוג - -- wordpress get database connection Wordpress לקבל חיבור מסד נתונים - -- change wordpress database info באתר מידע על שינוי WordPress - -- change database on wordpress שינוי בבסיס הנתונים על WordPress - -- Connection Error to NDO DataBase ! שגיאת התחברות ל טל את הקמתו וניהולו! - -- create wordpress database error page WordPress ליצור דף שגיאה באתר - -- how to maintain database connection for wordpress? איך לשמור על חיבור מסד נתונים עבור וורדפרס? - -- which file in wordpress stores database connectivity info אשר קובץ מידע על WordPress חנויות קישוריות מסד נתונים - -- wordpress admin database change באתר מנהל WordPress שינוי - -- wordpress database connection חיבור מסד נתונים WordPress - -- wordpress connecting different mysql WordPress חיבור MySQL שונים - -- wordpress custom database connection WordPress חיבור נתונים מותאמים אישית - -- wordpress connect other database WordPress להתחבר נתונים אחרים - -- wordpress sql connect WordPress SQL להתחבר - -- "Can't select database" wordpress MU "לא יכול לבחור באתר" WordPress MU - -- all הכל - -- connect to database wordpress להתחבר למסד הנתונים WordPress - -- connecting to wordpress database חיבור מסד נתונים WordPress - -- error establishing database connection wpmu mediatemple שגיאה הקמת חיבור mediatemple באתר wpmu - -- how to change wordpress database password איך לשנות את הסיסמה באתר WordPress - -- where is the connection in wordpress for database איפה הקשר ב-WordPress עבור מסד נתונים - -- wordpress database connection problems בעיות חיבור מסד נתונים WordPress - -- wordpress + database connection WordPress + חיבור מסד נתונים - -- changing databases in wordpress שינוי מסדי נתונים ב-WordPress - -- database connection file + wordpress blog קובץ חיבור נתונים + בלוג WordPress - -- map connection wordpress WordPress החיבור המפה - -- wordpress connecting to another database WordPress בחיבור למסד הנתונים אחרת - -- wordpress connects to database WordPress מתחבר באתר - --