Seite 179 von 214

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 15.07.2012 17:12
von ralf100
Hallo,

jetzt brauche ich auch einmal Hilfe.
Mod ist Super.
Ich habe eine locale Version die läuft gut.
Nach Installation auf dem Server, klappen die Updates der neuen Ligen nicht.
Ich bekomme folgende Fehlermeldung im Header:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_football_update.php on line 1225: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_football_update.php on line 1225: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_football_update.php on line 1225: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_football_update.php on line 1225: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 161: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 163: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 164: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 165: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)

Ich habe schon die Dateien kopiert soweit es möglich war, aber kein besseres Ergebnis.

Danke für die Hilfe.

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 15.07.2012 22:31
von football
Kann es sein, das du die Definitionen

Code: Alles auswählen

define('FOOTB_LEAGUES',				$table_prefix . 'footb_leagues');
define('FOOTB_MATCHDAYS',			$table_prefix . 'footb_matchdays');
define('FOOTB_MATCHES',				$table_prefix . 'footb_matches');
define('FOOTB_TEAMS',				$table_prefix . 'footb_teams');
und vielleicht auch die, der anderen football Tabellen, in includes/constants.php nicht eingebaut hast?

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 11:50
von ralf100
Hallo,

die Einträge sind drin:

define('USERS_TABLE', $table_prefix . 'users');
define('WARNINGS_TABLE', $table_prefix . 'warnings');
define('WORDS_TABLE', $table_prefix . 'words');
define('ZEBRA_TABLE', $table_prefix . 'zebra');
// Additional tables
//-- [+] MOD: phpBB3 Football ---------------------------------------------
//-- add
define('FOOTB_BETS', $table_prefix . 'footb_bets');
define('FOOTB_EXTRA_BETS', $table_prefix . 'footb_extra_bets');
define('FOOTB_EXTRA', $table_prefix . 'footb_extra');
define('FOOTB_LEAGUES', $table_prefix . 'footb_leagues');
define('FOOTB_MATCHDAYS', $table_prefix . 'footb_matchdays');
define('FOOTB_MATCHES', $table_prefix . 'footb_matches');
define('FOOTB_MATCHES_HIST', $table_prefix . 'footb_matches_hist');
define('FOOTB_RANKS', $table_prefix . 'footb_rank_matchdays');
define('FOOTB_SEASONS', $table_prefix . 'footb_seasons');
define('FOOTB_TEAMS', $table_prefix . 'footb_teams');
define('FOOTB_TEAMS_HIST', $table_prefix . 'footb_teams_hist');
define('FOOTB_POINTS', $table_prefix . 'footb_points');
define('BET_KO_90', 1);
define('BET_KO_EXTRATIME', 2);
define('BET_KO_PENALTY', 3);
define('POINTS_BET', 1);
define('POINTS_DEPOSITED', 2);
define('POINTS_MATCHDAY', 3);
define('POINTS_SEASON', 4);
define('POINTS_MOST_HITS', 5);
define('POINTS_MOST_HITS_AWAY', 6);
define('POINTS_PAID', 7);
define('UP_NONE', 0);
define('UP_WINS', 1);
define('UP_POINTS', 2);
define('LEAGUE_CHAMP', 1);
define('LEAGUE_KO', 2);
//-- [-] MOD: phpBB3 Football ---------------------------------------------
?>

Die andere Datei bei der es funktioniert sieht auch so aus.

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 13:58
von ralf100
Hallo,

habe nochmals die lokale Version 1:1 auf den Server kopiert.
1. Bundesliga war drin.
Danach habe ich die Liga gelöscht und wieder versucht einzuspielen.
Es kommt leider wieder die Fehlermeldung.
In der lokale Version nicht.
Unterschiedlich sind jetzt nur die Ordnerrechte, Datenbankversion und Apache Version.
Local:
Server Version: 5.5.20-log
Apache/2.2.21 (Win32) PHP/5.3.9

Server:
Server Version: 5.0.51a-24+lenny5
Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g

Alle Dateien und die Datenbank wurde kopiert und sind gleich.

Danke

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 17:52
von football
Wenn du die Daten auf den Server kopiert hast, war vielleicht auch das Cache Verzeichnis dabei?
Dann solltest du mal den Cache auf dem Server löschen.

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 18:32
von ralf100
Gelöscht. Leider immer noch der gleiche Fehler.

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 19:05
von football
Wenn die vor der Foreach Zeile in Line 1225 dies einfügst:

Code: Alles auswählen

var_dump($table);
var_dump($this->xml_ary[strtolower($table)]);		
und die Update-Funktion erneut aufrufst, sollte zuerst

Code: Alles auswählen

string(13) "FOOTB_LEAGUES" array(1) { [0]=> array(22) { ["season"]=> string(4) "2013" ["league"]=>
Hier folgen die League-Daten im Array
 
ausgegeben werden. Wenn du die Ausgabe nach "FOOTB_" durchsuchst sollten

Code: Alles auswählen

string(15) "FOOTB_MATCHDAYS"
string(11) "FOOTB_TEAMS"
string(13) "FOOTB_MATCHES"
sowie die dazugehörigen Daten im Array folgen.
Bekommst du eine solche Ausgabe?
Bin leider jetzt erst einmal fort, daher keine sofortige Antwort.

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 19:42
von ralf100
Teil 1 ist klar.
Dann komme ich leider nicht mit.
Versuche es mal.

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 20:27
von ralf100
Hallo,

Teil 1 also geschafft.
Brauche aber Hilfe wo ich die restlichen Angaben einsetzen muß.

Danke

Re: [BETA] phpBB3 Football MOD Version 0.9.3

Verfasst: 16.07.2012 22:15
von football
Wenn du die beiden Zeilen eingebaut hast und die Update-Funktion mit der neuen Liga erneut aufrufst, werden die beiden Variablen vor der abbrechenden Foreach-Schleifen ausgegeben. Dies sollte wie folgt aussehen (Daten der Liga stammen hier von der Premier League):

Code: Alles auswählen

string(13) "FOOTB_LEAGUES" array(1) { [0]=> array(22) { ["season"]=> string(4) "2013" ["league"]=> string(2) "20" ["league_name"]=> string(14) "Premier League" ["league_name_short"]=> string(3) "1GB" ["league_type"]=> string(1) "1" ["matchdays"]=> string(2) "38" ["matches_on_matchday"]=> string(2) "10" ["win_result"]=> string(1) "0" ["win_result_02"]=> string(1) "0" ["win_matchday"]=> string(1) "0" ["win_season"]=> string(1) "0" ["points_mode"]=> string(1) "1" ["points_result"]=> string(2) "10" ["points_tendency"]=> string(1) "3" ["points_diff"]=> string(1) "0" ["points_last"]=> string(1) "0" ["join_by_user"]=> string(1) "0" ["join_in_season"]=> string(1) "0" ["bet_in_time"]=> string(1) "0" ["rules_post_id"]=> string(1) "0" ["bet_ko_type"]=> string(1) "1" ["bet_points"]=> string(1) "0" } } string(15) "FOOTB_MATCHDAYS" array(38) { [0]=> array(9) { ["season"]=> string(4) "2013" ["league"]=> string(2) "20" ["matchday"]=> string(1) "1" ["status"]=> string(1) "0" ["delivery_date"]=> string(19) "2012-08-17 18:00:00" ["delivery_date_2"]=> string(0) "" ["delivery_date_3"]=> string(0) "" ["matchday_name"]=> string(0) "" ["matches"]=> string(1) "0" }

usw...
Hier siehst du den ersten Aufruf der "function insert_league($table)" mit $table = "FOOTB_LEAGUES" und die zugehörigen Daten im xml_ary.
Anschließend den zweiten Aufruf der "function insert_league($table)" mit $table = "FOOTB_MATCHDAYS" und die zugehörigen Daten im xml_ary
(hier habe ich nach dem ersten Datensatz die Ausgabe abgeschnitten.
Du sollst also in dieser Ausgabe per Strg+F nach FOOTB_ suchen um zu überprüfen, dass die 4 Tabellen

Code: Alles auswählen

FOOTB_LEAGUES
FOOTB_MATCHDAYS
FOOTB_TEAMS
FOOTB_MATCHES
beim Aufruf so korrekt übergeben werden. Oder hier einfach posten was ausgegeben wird.