Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Rekomendowane odpowiedzi

Opublikowano

Witam

 

Mam problem z hookami: 

 

Steam Profile  v1.0.2

Xbox Live Profile  v1.1.0

 

Jak jest włączony tylko steam profile to jest wszystko ok, ale jak włączę xbox profile w profilu użytkownika wysypują się błędy i zmienia się kodowanie ( brak polskich znaków). jeżeli wyłączę steam profile, a włączę xbox profile to wszystko jest w porządku. Sypie się tylko jak obie te aplikacje są włączone.

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 15: parser error : Opening and ending tag mismatch: br line 12 and div in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </div> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 16: parser error : Opening and ending tag mismatch: br line 12 and body in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </body> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Opening and ending tag mismatch: br line 12 and html in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag br line 12 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag br line 12 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag br line 10 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag img line 9 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag div line 8 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag body line 7 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag html line 3 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 66

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 15: parser error : Opening and ending tag mismatch: br line 12 and div in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </div> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 16: parser error : Opening and ending tag mismatch: br line 12 and body in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </body> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Opening and ending tag mismatch: br line 12 and html in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag br line 12 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag br line 12 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag br line 10 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag img line 9 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag div line 8 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag body line 7 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 17: parser error : Premature end of data in tag html line 3 in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php:66) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php:66) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 127

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php:66) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php:66) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 137

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/steamprofile_c409a7766e91d70af9e0e19bd282a3c9.php:66) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 141

Z góry dziękuję za pomoc.

 

Pozdrawiam,

SilentKiller

Opublikowano (edytowane)

Linie 65-69

 $xml2						    = $classFileManagement->getFileContents( $xml_url );
 $feed2						    = simplexml_load_string( $xml2 );
     
      $steam_array = array();
      $steam_array['ID64'] = $feed2->steamID64;

Teraz wyskakuje inny błąd: 

Warning: Invalid argument supplied for foreach() in /forum/hooks/xboxprofile_fdfc4056f93c42bfa5025a8ad8a5ba8e.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/xboxprofile_fdfc4056f93c42bfa5025a8ad8a5ba8e.php:92) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/xboxprofile_fdfc4056f93c42bfa5025a8ad8a5ba8e.php:92) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 127

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/xboxprofile_fdfc4056f93c42bfa5025a8ad8a5ba8e.php:92) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/xboxprofile_fdfc4056f93c42bfa5025a8ad8a5ba8e.php:92) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 137

Warning: Cannot modify header information - headers already sent by (output started at /forum/hooks/xboxprofile_fdfc4056f93c42bfa5025a8ad8a5ba8e.php:92) in /forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 141

Plik htmlOutput.php :

114: 

{
			header("HTTP/1.1 " . $this->_headerCode . ' ' . $this->_headerStatus );
		}

127:

{
				header( "Content-type: text/html;charset=" . IPS_DOC_CHAR_SET );
			}

136 i 137:

header( "Cache-Control:  ". $nocache . "must-revalidate, max-age=" . $maxAge );
header( "Expires: " . $expires ); 

141:

header( "Pragma: no-cache" );

Plik xboxprofile_fdfc4056f93c42bfa5025a8ad8a5ba8e.php linia 90-98:

     } 
     
		  foreach ($obj2->data as $games) {

		 $data['name'] = $obj2->data->gamertag;
     $data['totalgames'] = $obj2->data->totalgames;
     $data['average'] = $obj2->data->progress;
 
     } 

Proszę o szybką pomoc, Pozdrawiam

Edytowane przez SilentKiller
Opublikowano

Jakoś rozwiązałem problem. Nie wiem czy dobrze i prawidłowo ale na razie działa.

Jeżeli możecie to looknijcie czy tak może zostać i nie jest to jakimś błędem na teraz lub na przyszłość.

if (is_array($games))
{
		  foreach ($obj2->data as $games) {

		 $data['name'] = $obj2->data->gamertag;
     $data['totalgames'] = $obj2->data->totalgames;
     $data['average'] = $obj2->data->progress;
 
     } 
}

Czyli dodałem 

if (is_array($games))
{

}

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.