Seite nach hochladen auf Server nur weiss!

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Seite nach hochladen auf Server nur weiss!

    Hallo an alle,

    ich habe ein vorgefertigtes Projekt auf meinen Server hochgeladen und es auch erfolgreich installiert. Doch wenn ich die Website dann aufrufe wird sie mir nur komplett weiss dargestellt. Keine Fehlermeldung, garnichts!

    Ich habe gedacht, dass sich das Problem bessert wenn ich es auf den Server hochlade, da es unter der lokalen XAMPP Version auch nicht funktioniert.

    Was mach ich falsch?

    Ich danke schonmal im Voraus für Hilfe!

    Zur besseren Orientierung:

    1. Der Link zur Homepage pennerlink.de (hat nichts mit dem Onlinegame "Pennergame" zu tun, falls bekannt)

    2. Projektbeschreibung unter jobsoftpro.com

    3. Quellcode der index.php: (notfalls kann ich auch den Rest des Scriptes zum Testen zur Verfügung stellen)

    PHP-Quellcode

    1. <?php
    2. include "./include/config.php";
    3. include "./common.php";
    4. include "./include/functions_index.php";
    5. include "./include/functions_auth.php";
    6. include "./include/functions_xml.php";
    7. include "./include/class.lang.php";
    8. $user = auth_index_user();
    9. @$sel = $_POST["sel"]?$_POST["sel"]:$_GET["sel"];
    10. if ($sel!='logoff'){
    11. if ( isset($_COOKIE["re_login"]) && isset($_COOKIE["re_pass"]) ){
    12. $strSQL = "SELECT id FROM ".USERS_TABLE." WHERE login='".$_COOKIE["re_login"]."' AND password='".$_COOKIE["re_pass"]."' ";
    13. $rs = $dbconn->Execute($strSQL);
    14. if ($rs->fields[0]>0){
    15. sess_write(session_id(), $rs->fields[0]);
    16. $user = auth_index_user();
    17. }
    18. }
    19. } else {
    20. setcookie("re_login", '', time()-7200);
    21. setcookie("re_pass", '', time()-7200);
    22. }
    23. $multi_lang = new MultiLang($config, $dbconn);
    24. if($user[4]==1){
    25. if(!(isset($_REQUEST["view_from_admin"]) && $_REQUEST["view_from_admin"] == 1)){
    26. echo "<script>location.href='".$config["site_root"]."/admin/index.php'</script>";
    27. }elseif ($_REQUEST["for_unreg_user"] == 1) {
    28. $user = auth_guest_read();
    29. }
    30. }
    31. if(intval($user[0]) && $user[3] != 1 && $sel == ""){
    32. echo "<script>location.href='".$config["site_root"]."/homepage.php'</script>";
    33. }
    34. switch($sel){
    35. case "logoff": LogoutUser(); break;
    36. case "quick_form" : FromQuick(); break;
    37. default: IndexPage();
    38. }
    39. function IndexPage(){
    40. global $smarty, $config, $dbconn, $user, $lang, $multi_lang, $REFERENCES;
    41. if(isset($_SERVER["PHP_SELF"]))
    42. $file_name = strtolower(AfterLastSlash($_SERVER["PHP_SELF"]));
    43. else
    44. $file_name = "index.php";
    45. IndexHomePage('index');
    46. if (GetSiteSettings("use_pilot_module_banners")) {
    47. Banners('index');
    48. }
    49. CreateMenu('index_page_menu');
    50. CreateMenu('index_user_menu');
    51. CreateMenu('lang_menu');
    52. CreateMenu('bottom_menu');
    53. $smarty->assign("cur", GetSiteSettings('site_unit_costunit'));
    54. $day = date("d")+1;
    55. $month = date("m");
    56. $smarty->assign("day", GetDaySelect($day));
    57. $smarty->assign("month", GetMonthSelect($month));
    58. unset($_SESSION["quick_search_arr"]);
    59. if(GetSiteSettings('index_last_listings')==1){
    60. GetLastAdsJS("hot_offers_num_at_search");
    61. }else
    62. //GetLastAdsJS($num_at_page_name, $id_user='', $page=1, $param = "?", $sorter='', $sort_order=1, $order_link="",$from='')
    63. GetLastAdsJS("hot_offers_num_at_search",'',1,'','','','','best_job_view');
    64. //init QSForm
    65. GetLocationContent();
    66. $smarty->assign("cnt", GetSiteSettings('limit_category_seek_search'));
    67. $used_references = array("job_category");
    68. foreach ($REFERENCES as $arr) {
    69. if (in_array($arr["key"], $used_references)) {
    70. //function GetRefSearchArrayJS($key, $spr_table, $value_table, $data='', $lang_add = 1){
    71. $job_arr=GetRefSearchArrayJS($arr["key"],$arr["spr_table"], $arr["val_table"], $data, $lang_add);
    72. $smarty->assign("job_category",$job_arr);
    73. }
    74. }
    75. GetJobType($job_arr);
    76. GetJobComp(GetSiteSettings("lim_index_comp")*3);
    77. if(GetSiteSettings("search_by_region"))
    78. GetJobCountry(GetSiteSettings("search_by_region_country"));
    79. $smarty->assign("from_file", "index");
    80. $smarty->assign("file_name", $file_name);
    81. $smarty->display(TrimSlash($config["index_theme_path"])."/index_home_page.tpl");
    82. exit;
    83. }
    84. function LogoutUser(){
    85. global $smarty, $config, $dbconn, $user;
    86. $strSQL = "Delete from ".ACTIVE_SESSIONS_TABLE." where id_user='".$user[0]."' and session='".session_id()."' ";
    87. $rs = $dbconn->Execute($strSQL);
    88. echo "<script>location.href='".$config["site_root"]."/index.php'</script>";
    89. return;
    90. }
    91. function GetJobCountry($country_id){
    92. global $smarty, $config, $dbconn, $user;
    93. $strSQL = "SELECT id, name FROM ".REGION_TABLE." WHERE id_country='".$country_id."' ORDER BY name";
    94. $rs = $dbconn->Execute($strSQL);
    95. if ($rs->fields[0]>0) {
    96. $i = 0;
    97. while(!$rs->EOF) {
    98. $row = $rs->GetRowAssoc(false);
    99. $region[$i]["id"] = $row["id"];
    100. if ($config["lang_ident"]!='ru') {
    101. $region[$i]["name"] = RusToTranslit($row["name"]);
    102. } else {
    103. $region[$i]["name"] = $row["name"];
    104. }
    105. $strSQL1="SELECT COUNT(DISTINCT uv.id)
    106. FROM ".USER_VAC_TABLE." uv
    107. LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
    108. WHERE u.status = '1'
    109. AND u.root_user = '0'
    110. AND u.guest_user = '0'
    111. AND u.active = '1'
    112. AND uv.status = '1'
    113. AND u.user_type = '2'
    114. AND uv.id_country=".$country_id."
    115. AND uv.id_region=".$region[$i]["id"];
    116. $rs1 = $dbconn->Execute($strSQL1);
    117. $region[$i]["count"]=intval($rs1->fields[0]);
    118. $rs->MoveNext();
    119. $i++;
    120. }
    121. }
    122. $lim_reg=intval(count($region)/4);
    123. $smarty->assign("search_country", $country_id);
    124. $smarty->assign("job_region", $region);
    125. $smarty->assign("lim_reg", $lim_reg+1);
    126. }
    127. //get jobs by type
    128. function GetJobType($job_category) {
    129. global $lang, $smarty, $dbconn, $user, $config;
    130. for($i=0; $i<count($job_category);$i++){
    131. $strSQL="SELECT COUNT(DISTINCT jc.id_ad)
    132. FROM ".SPR_JOB_CATEGORY_USER_TABLE." jc
    133. LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
    134. LEFT JOIN ".USER_VAC_TABLE." uv ON uv.id=jc.id_ad
    135. WHERE u.status = '1'
    136. AND u.root_user = '0'
    137. AND u.guest_user = '0'
    138. AND u.active = '1'
    139. AND uv.status = '1'
    140. AND jc.type='3' AND jc.id_spr=".$job_category[$i]['id']." ";
    141. $rs=$dbconn->Execute($strSQL);
    142. $job_category[$i]['count']=intval($rs->fields[0]);
    143. for($j=0; $j<count($job_category[$i]['opt']);$j++){
    144. $strSQL="SELECT COUNT(DISTINCT jc.id_ad)
    145. FROM ".SPR_JOB_CATEGORY_USER_TABLE." jc
    146. LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
    147. LEFT JOIN ".USER_VAC_TABLE." uv ON uv.id=jc.id_ad
    148. WHERE u.status = '1'
    149. AND u.root_user = '0'
    150. AND u.guest_user = '0'
    151. AND u.active = '1'
    152. AND uv.status = '1'
    153. AND jc.type='3' AND jc.id_spr=".$job_category[$i]['id']." AND id_value=".$job_category[$i]['opt'][$j]['value']." ";
    154. $rs1=$dbconn->Execute($strSQL);
    155. $job_category[$i]['opt'][$j]['count']=intval($rs1->fields[0]);
    156. }
    157. }
    158. $smarty->assign("job_category_type",$job_category);
    159. }
    160. function GetJobComp($lim) {
    161. global $lang, $smarty, $dbconn, $user, $config;
    162. $strSQL="SELECT ei.id_user,ei.company_name,COUNT(DISTINCT uv.id) as count
    163. FROM ".USER_VAC_TABLE." uv
    164. LEFT JOIN ".USERS_TABLE." u ON u.id = uv.id_user
    165. LEFT JOIN ".EMP_INFO_TABLE." ei ON ei.id_user = uv.id_user
    166. WHERE u.status = '1'
    167. AND u.root_user = '0'
    168. AND u.guest_user = '0'
    169. AND u.active = '1'
    170. AND uv.status = '1'
    171. AND u.user_type = '2'
    172. GROUP BY ei.id_user ORDER BY count ASC LIMIT 0,".$lim;
    173. $rs=$dbconn->Execute($strSQL);
    174. if ($rs->fields[0]>0) {
    175. $i = 0;
    176. while(!$rs->EOF) {
    177. $row = $rs->GetRowAssoc(false);
    178. $job_comp[$i]["id_user"] = $row["id_user"];
    179. $job_comp[$i]["company_name"] = $row["company_name"];
    180. $job_comp[$i]["count"] = $row["count"];
    181. $rs->MoveNext();
    182. $i++;
    183. }
    184. }
    185. $lim_comp=3;
    186. $smarty->assign("job_comp", $job_comp);
    187. $smarty->assign("lim_comp", $lim_comp);
    188. }
    189. ?>
    Alles anzeigen
  • Hi,
    arbeite erstmal die Fehlermeldungen vom error_reporting ab. Ansonsten hast du vielleicht display_errors auf Off gesetzt?
    Ich nehme nicht an dass du einen Debugger installiert hast, oder?
    Dann bleibt nur das Old School debuggen.

    Nimm die Anweisung die('i was here'.__LINE__); und packe sie an verschiedene Stellen (vor includes, nach includes, ...)
    Dann findest du ganz schnell wo sich der Fehler befindet.
  • So hab jetzt ein wenig mehr erreicht.

    Also habe eine Datei gefunden "common.php" in der

    Quellcode

    1. ini_set("display_errors", "1");
    2. error_reporting(E_ALL);


    auf "0" stand. Dadurch natürlich keine Fehlermeldungen. Und siehe da auf einmal kam folgendes:


    Warning: include_once(C:\xampp\htdocs/includes/Payment_Config.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\common.php on line 68

    Warning: include_once() [function.include]: Failed opening 'C:\xampp\htdocs/includes/Payment_Config.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\common.php on line 68

    Warning: include_once(C:\xampp\htdocs/includes/Payment_Engine.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\common.php on line 70

    Warning: include_once() [function.include]: Failed opening 'C:\xampp\htdocs/includes/Payment_Engine.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\common.php on line 70

    Fatal error: Call to undefined function gethidemodeids() in C:\xampp\htdocs\common.php on line 378

    Jetzt die Frage, wie arbeite ich die am besten ab bzw. woher weiß ich was was bedeutet?