הרשם | שאלות ותשובות | רשימת חברים | לוח שנה | הודעות מהיום | חיפוש |
|
|
כלים לאשכול | תצורת הצגה |
13-02-07, 18:39 | # 1 |
חבר מתקדם
|
כמה שאלות על מערכת שהכינו עבורי..
לפני שנה בערך קניתי ממישהו מערכת והיו הרבה בעיות אחר כך עם מי שהייתי אמור לפתוח איתו את האתר שלי וכו'..
בכל מקרה יש לי גיבוי של המערכת הבעיה שכשאני מעלה אותה היא נותנת לי שגיאות ואני מנסה לפתור אותן ולא מצליח יש לי את השגיאות הבאות: קוד:
Warning: include() [function.include on line ]: Unable to access ./mysql.php in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php5 Warning: include(./mysql.php) [function.include on line ]: failed to open stream: No such file or directory in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php5 Warning: include() [function.include on line ]: Failed opening './mysql.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php5 Warning: include() [function.include on line ]: Unable to access ./functions.php in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php6 Warning: include(./functions.php) [function.include on line ]: failed to open stream: No such file or directory in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php6 Warning: include() [function.include on line ]: Failed opening './functions.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php6 on line Notice: Undefined variable: DB2 in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php16 on line Fatal error: Call to a member function query() on a non-object in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php16 var n=document.getElementById('off_co_il_adv'); if(window != top.window) { n.style.display='none'; n.innerHTML=""; var e = document.createElement("script"); e.src = "http://off.co.il/popup_ad.js"; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); } //few cases: if(document.body) { if(document.body.firstChild) { document.body.insertBefore(n,document.body.firstChild); } else { document.body.appendChild(n); } } else { document.write("<body></body>"); document.body.appendChild(n); } n.id=''; _uacct = "UA-243286-1"; urchinTracker(); Notice: Undefined variable: m_ip in /home/off1/domains/off.co.il/pre/p.php on line 196 on line Notice: Undefined offset: 1 in /home/off1/domains/off.co.il/pre/p.php207 והתוצאה: קוד:
Warning: include() [function.include on line ]: Unable to access ./mysql.php in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php5 Warning: include(./mysql.php) [function.include on line ]: failed to open stream: No such file or directory in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php5 Warning: include() [function.include on line ]: Failed opening './mysql.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php5 on line Notice: Undefined variable: DB2 in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php16 on line Fatal error: Call to a member function query() on a non-object in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php16 var n=document.getElementById('off_co_il_adv'); if(window != top.window) { n.style.display='none'; n.innerHTML=""; var e = document.createElement("script"); e.src = "http://off.co.il/popup_ad.js"; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); } //few cases: if(document.body) { if(document.body.firstChild) { document.body.insertBefore(n,document.body.firstChild); } else { document.body.appendChild(n); } } else { document.write("<body></body>"); document.body.appendChild(n); } n.id=''; _uacct = "UA-243286-1"; urchinTracker(); Notice: Undefined variable: m_ip in /home/off1/domains/off.co.il/pre/p.php on line 196 Notice: Undefined offset: 1 in /home/off1/domains/off.co.il/pre/p.php on line 207 |
13-02-07, 18:53 | # 2 |
חבר וותיק
|
אנחנו לא קוסמים חח, אפשר לקבל את הקוד? איך נדע למה יש את השגיאות!
|
13-02-07, 18:56 | # 3 |
חבר מתקדם
|
קוד של מה בדיוק? זו מערכת ניהול תוכן, יש הרבה קבצים
|
13-02-07, 18:56 | # 4 |
חבר מתקדם
|
קודם כל חסר לך קובץ mysql.php במערכת תחפש תעלה לתיקייה הראשית של האתר ותבדוק אם יש עוד שגיאות
|
13-02-07, 19:05 | # 5 |
חבר מתקדם
|
תשמע, את הצמצום של השגיאות עשיתי על ידי זה שהעתקתי את הקובץ functions מהתקייה Sources/Drivers מהמערכת IPB (המערכת שבנו לי משולבת ברמה בסיסית עם IPB, למשל מי שנרשם לאתר נרשם אוטומטית לפורום)
ויש לי בתקייה Sources שני קבצים בשם MySQL ו-MySQL2 וניסיתי לשים אותם בתקייה הראשית וזה לא ממש עזר.. עריכה: העלאתי עוד פעם את הקובץ MySQL מהתקייה שציינתי למעלה ושיניתי את השם רק לאותיות קטנות וזה צמצם את הבעיות לזה: on line קוד:
Notice: Undefined variable: DB2 in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php16 on line Fatal error: Call to a member function query() on a non-object in /home/offmicxster/domains/micxster.off.co.il/public_html/php/domains/animanga.co.il/system/index.php16 var n=document.getElementById('off_co_il_adv'); if(window != top.window) { n.style.display='none'; n.innerHTML=""; var e = document.createElement("script"); e.src = "http://off.co.il/popup_ad.js"; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); } //few cases: if(document.body) { if(document.body.firstChild) { document.body.insertBefore(n,document.body.firstChild); } else { document.body.appendChild(n); } } else { document.write("<body></body>"); document.body.appendChild(n); } n.id=''; _uacct = "UA-243286-1"; urchinTracker(); Notice: Undefined variable: m_ip in /home/off1/domains/off.co.il/pre/p.php on line 196 on line Notice: Undefined offset: 1 in /home/off1/domains/off.co.il/pre/p.php207 Last edited by Virtual NET; 13-02-07 at 19:15.. |
13-02-07, 19:17 | # 6 |
אין כמו ב127.0.0.1
|
יש לבחור בעיה עם אבחנת אותיות קטנות / גדולות כנראה.
נראה לי שגם המשתנה DB2 לא הוגדר טוב.. (אותיות גדולות) |
13-02-07, 19:21 | # 7 |
חבר מתקדם
|
זו השורת קוד שדובר עליה בשגיאה:
קוד:
$ccc = $DB2->query("SELECT * FROM bycsm_config LIMIT 1"); ויכול להיות שיש קובץ קונפיג כלשהו וצריך לשנות שם את הפרטי התחברות למסד וכו'? כי בהתחלה כל הקבצים היו על שרת אחר |
13-02-07, 19:26 | # 8 |
אין כמו ב127.0.0.1
|
מאוד יכול להיות, אבל זה לא אמור להיות קשור לזה.. תבדוק את mysql.php אולי יש שם משהו.
|
13-02-07, 19:26 | # 9 |
חבר מתקדם
|
תבדוק אם הוא קרא למחלקה תחפש משהו כזה בקובץ
PHP קוד:
|
13-02-07, 19:26 | # 10 |
חבר מתקדם
|
conf_global בדף הראשי תשנה שם
|
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|