Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Biała Strona
sogood
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 16.03.2013

Ostrzeżenie: (0%)
-----


Witam, pobrałem kreator sygnaturek do gry World of Tanks. Wrzuciłem wszystkie pliki na FTP ale gdy chcę wejść na stronę wyskakuje mi biała strona. Jestem w tym zielony a bardzo mi na tym zależy dlatego proszę o pomoc. Może w kodzie coś jest nie tak. Pozdrawiam

http://kfor.pl/syg/index.php

http://www.speedyshare.com/58j88/index.txt => Kod index.php
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
binprogrammer
post
Post #2





Grupa: Zarejestrowani
Postów: 249
Pomógł: 8
Dołączył: 10.08.2011
Skąd: Bełchatów

Ostrzeżenie: (10%)
X----


zakładam, że taki kreator korzysta z biblioteki GD, upewnij się czy twój serwer posiada taką bibliotekę, (nie zaglądam w kod)

Go to the top of the page
+Quote Post
sogood
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 16.03.2013

Ostrzeżenie: (0%)
-----


Napisali że ta opcja jest włączona i podali mi error log

  1. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Notice: Undefined index: img in /home/virt101132/domains/kfor.pl/public_html/syg/index.php on line 34
  2. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Notice: Undefined index: imgID in /home/virt101132/domains/kfor.pl/public_html/syg/index.php on line 35
  3. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Notice: Undefined index: tankorder in /home/virt101132/domains/kfor.pl/public_html/syg/index.php on line 37
  4. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Notice: Undefined index: font in /home/virt101132/domains/kfor.pl/public_html/syg/index.php on line 77
  5. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Warning: include(geoip.inc) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/virt101132/domains/kfor.pl/public_html/syg/header.php on line 3
  6. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'geoip.inc' for inclusion (include_path='.:/usr/local/php/inst/php-5.3.18/pear/php/') in /home/virt101132/domains/kfor.pl/public_html/syg/header.php on line 3
  7. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Warning: include(fnc_getLanguage.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/virt101132/domains/kfor.pl/public_html/syg/header.php on line 4
  8. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'fnc_getLanguage.php' for inclusion (include_path='.:/usr/local/php/inst/php-5.3.18/pear/php/') in /home/virt101132/domains/kfor.pl/public_html/syg/header.php on line 4
  9. [Sat Mar 16 10:29:42 2013] [warn] [client 87.207.80.166] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_language() in /home/virt101132/domains/kfor.pl/public_html/syg/header.php on line 6


Czy mógłbym prosić o pomoc przy tym? Załączam pliki index.php oraz header.php bo widzę że tylko w tych 2 plikach jest problem...


http://www.speedyshare.com/MAnmA/Pliki.rar
Go to the top of the page
+Quote Post
timon27
post
Post #4





Grupa: Zarejestrowani
Postów: 578
Pomógł: 69
Dołączył: 15.04.2007
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Przecież jest napisane - masz niezdefiniowane zmienne.
W zależności od konfiguracji serwera czasem nie można korzystać ze zmiennych które nie istnieją (logiczne).
Więc np. 34 linijkę zmieniasz z:
  1. $_POST["img"] = (int)$_POST["img"];

na
  1. if (isset($_POST["img"])) $_POST["img"] = (int)$_POST["img"];

i tak dalej wszędzie gdzie ci wskazuje błąd.

Dodatkowo w pierwszej linijce masz:
  1. $site_url = "http://YOUR_SITE";


Dodatkowo brakuje plików geoip.inc, fnc_getLanguage.php, header.php

Ten post edytował timon27 16.03.2013, 10:52:00
Go to the top of the page
+Quote Post
sogood
post
Post #5





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 16.03.2013

Ostrzeżenie: (0%)
-----


Pozmieniałem tak jak pisałeś zostało tylko to:

  1. [Sat Mar 16 11:04:37 2013] [warn] [client 178.183.132.97] mod_fcgid: stderr: PHP Warning: include(fnc_getLanguage.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/virt101132/domains/kfor.pl/public_html/syg/header.php on line 4
  2. [Sat Mar 16 11:04:37 2013] [warn] [client 178.183.132.97] mod_fcgid: stderr: PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'fnc_getLanguage.php' for inclusion (include_path='.:/usr/local/php/inst/php-5.3.18/pear/php/') in /home/virt101132/domains/kfor.pl/public_html/syg/header.php on line 4
  3. [Sat Mar 16 11:04:37 2013] [warn] [client 178.183.132.97] mod_fcgid: stderr: PHP Fatal error: Call to undefined function get_language() in /home/virt101132/domain
  4.  
  5. s/kfor.pl/public_html/syg/header.php on line 6


A te pliki znajdują się w tym katalogu.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 20:23