Strona 1 z 1
Błąd 2505 po potwierdzeniu maila albo wgraniu avatara
: 05 marca 2017, 22:57
autor: haxigi
Cześć.
Na forum zaczął się dziać taki problem. Po wgraniu avatara z serwera zewnętrznego lub po wciśnięciu linku aktywującego z maila wywala taki błąd:
Illegal use of $_SERVER. You must use the request class or request_var() to access input data. Found in xxxx/includes/functions.php on line 2505. This error message was generated by deactivated_super_global.
w tej linijce w tym pliku mam takie coś:
Kod: Zaznacz cały
'QUERY_STRING' => preg_replace( array( '#(\\?|\\&)sid=[0-9a-f]{32}#i', '#^[?&]#' ), '', $_SERVER['QUERY_STRING'] ),
Rozumiem, że kluczowe jest tutaj deactivated_super_global i zapewne włączenie tego super global rozwiąże problem?
Wersja 3.1.9
Re: Błąd 2505 po potwierdzeniu maila albo wgraniu avatara
: 06 marca 2017, 07:38
autor: vader
Przeglądnij ten temat:
https://www.phpbb.com/community/viewtop ... &t=2270496 Ewentualnie szukaj w google "Illegal use of $_SERVER. phpbb 3.1.9"
Re: Błąd 2505 po potwierdzeniu maila albo wgraniu avatara
: 06 marca 2017, 11:27
autor: haxigi
Czyli wina tej funkcji występuje w każdej instalacji phpbb? Aktualizacja na 3.1.10 może coś pomóc?
Ewentualnie wina, że to nie przechodzi może być po stronie serwera?
Re: Błąd 2505 po potwierdzeniu maila albo wgraniu avatara
: 06 marca 2017, 12:16
autor: vader
Przejrzałeś do końca powyższy wątek z phpbb.com? Spróbuj:
Kod: Zaznacz cały
Modified /forums/config/parameters.yml. Set core.disable_super_globals to false and delete the cache. This resolved my issue right away!
Re: Błąd 2505 po potwierdzeniu maila albo wgraniu avatara
: 06 marca 2017, 12:48
autor: haxigi
vader pisze:Przejrzałeś do końca powyższy wątek z phpbb.com? Spróbuj:
Kod: Zaznacz cały
Modified /forums/config/parameters.yml. Set core.disable_super_globals to false and delete the cache. This resolved my issue right away!
To powoduje taki błąd:
This error message was generated by deactivated_super_global.
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/request/deactivated_super_global.php
LINE: 67
CALL: trigger_error()
FILE: [ROOT]/phpbb/request/deactivated_super_global.php
LINE: 87
CALL: phpbb\request\deactivated_super_global->error()
FILE: [ROOT]/includes/functions.php
LINE: 2505
CALL: phpbb\request\deactivated_super_global->offsetGet()
FILE: [ROOT]/includes/functions_posting.php
LINE: 2683
CALL: meta_refresh()
FILE: [ROOT]/posting.php
LINE: 484
CALL: phpbb_handle_post_delete()
Re: Błąd 2505 po potwierdzeniu maila albo wgraniu avatara
: 06 marca 2017, 21:04
autor: vader
Re: Błąd 2505 po potwierdzeniu maila albo wgraniu avatara
: 18 marca 2017, 02:18
autor: haxigi
kombinuję i nic. Ciągle jest ten błąd. Pisałem do supportu serwera i dali znać, że to nie wina po ich stronie tylko coś w plikach forum.
Wgrałem aktualizację do 3.2.0 i też nic się nie zmieniło.
Ciągle wywala ten problem z : Illegal use of $_SERVER. You must use the request class to access input data. Found in /includes/functions.php on line 1917. This error message was generated by deactivated_super_global.
teraz tylko liczba się zmieniła.
To co, GET jest w domyśle przez phpbb3 ustawiane, że się na to odwołują wszystkie funkcje czy jak?
Zmiana w parameters.yml w core.disable_super_globals: z true na false też żadnych zmian nie robi.