Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Błąd po przeniesieniu strony na serwer lokalny WAMP
Forum PHP.pl > Forum > Serwery WWW
dominick
Witam serdecznie, po przeniesieniu strony na serwer lokalny wamp pojawia się krzaczek zamiast strony. Przeniosłem stronę wraz z bazą danych. Na serwerze www działa wszystko poprawnie a na lokalnym wyświetla mi się:
  1. setting['skin_dir'] ); $email = new Email(ROOT.'/language/'.$user->setting[language].'/emails'); $email->admin_email =$user->setting['adminemail']; # sending emails via SMTP? if($user->setting[use_smtp]) { $email->handler->IsSMTP(); $email->handler->SMTPAuth = true; $email->handler->Host = $user->setting[smtp_host]; $email->handler->Username = $user->setting[smtp_user]; $email->handler->Password = $user->setting[smtp_pass]; $email->handler->SMTPDebug = $user->setting['debug']=='yes' ? 2 : 0; # unset($DATASTORE[setting][smtp_user]); unset($user->setting[smtp_pass]); } # compile HTML template into PHP executable file $template->reuse_code = $user->setting[reuse_code]; # cache site pages into static pages to boost performence for your site! $user->setting[cached] = $user->setting[cached] && in_array(IN_PAGE,$CachedPages); if($user->setting[cached]) $template->use_cache(array('USER_BEGINCACHE_CALLBACK','USER_ENDCACHE_CALLBACK')); # all using PHP code in HTML template? $template->use_php=$user->setting['allow_php']=='1'; ($hook = YABPlugin::fetch_hook('template_init',__FILE__,__LINE__)) ? eval($hook) : ''; } $user->initiate(); } # enable debug mode for admin panel if(defined('IN_ADMIN')&&IN_ADMIN==1) { $db->debug = true; } # rebuild baseWeb to be compactable Javascript cross domain issue! if(defined("IN_MAIN_SERVER")&&IN_MAIN_SERVER==1) { $parts=parse_url($baseWeb); $parts['host'] = $_SERVER['HTTP_HOST']; $baseWeb = "$parts[scheme]://$parts[host]$parts[path]"; } # build lang url $langWeb = $baseWeb.($user->setting['lang_page']=='static'?'/'.$user->langcode:''); $baseWebskin = ($baseWeb . '/skin/' . $user->setting['skin_dir']); //addy by phamtoan1904@gmail.com /*if($user->setting['lang_page']=='static'&&!isset($input[setlang])&&IN_PAGE!='index') { header("HTTP/1.1 301 Moved Permanently"); header("location:$langWeb/"); exit; }*/ # debug mode $DEMOMODE=0; $DEMOTEXT='Some function is disabled in demo mode!'; $debug = $user->setting['debug']=='yes' ? 100 : 0; if($_SERVER[HTTP_X_REQUESTED_WITH]=='XMLHttpRequest'||$input[inline]==1) { define('IGNORE_HEADER',1); } # send headers if(!IS_POST&&IN_PAGE!='GETFILE'&&IN_PAGE!='GETLINKS'&&IN_DOWNLOAD!=1) { //@header('HTTP/1.1 200 OK'); if(!$nocache) { @header("Cache-Control: private"); @header("Pragma: private"); } else { @header("Expires: 0"); // Date in the past @header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified @header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 @header("Pragma: no-cache"); // HTTP/1.0 } } ?>
  2. ( ! ) Notice: Use of undefined constant logout - assumed 'logout' in C:\wamp\www\index.php on line 24
  3. Call Stack
  4. # Time Memory Function Location
  5. 1 0.0007 248208 {main}( ) ..\index.php:0
  6.  
  7. ( ! ) Notice: Undefined variable: input in C:\wamp\www\index.php on line 24
  8. Call Stack
  9. # Time Memory Function Location
  10. 1 0.0007 248208 {main}( ) ..\index.php:0
  11.  
  12. ( ! ) Fatal error: Call to undefined function showUploadForm() in C:\wamp\www\index.php on line 29
  13. Call Stack
  14. # Time Memory Function Location
  15. 1 0.0007 248208 {main}( ) ..\index.php:0
pitu
Pewnie używasz short tags. Włącz je na lokalu lub zamień w kodzie.

Short tag:
Kod
<?
//code
?>


zamień na:
Kod
<?php
//code
?>
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.