[BETA] [3.1] [3.2] Football Prediction League

In diesem Forum können Extension-Autoren ihre Extensions vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
nudels64
Mitglied
Beiträge: 83
Registriert: 17.10.2016 17:40
Kontaktdaten:

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von nudels64 »

Moin, moin Wenn ich die Spielansetzungen der BL 2019 ziehe, sehe ich im Updater die Ansetzungen. Wenn ich dann auf Aktualisieren gehe, passiert nichts. Die Spielansetzungen in den Plänen bleiben leer. Wo klemmt es hier?
Viele Grüße Nudels64
##########################################################
phpBB 3.2.9, board3-Portal 2.2.0-b1, Theme: Basic, Prosilver, php 7.0
MK35
Mitglied
Beiträge: 128
Registriert: 16.04.2007 15:32

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von MK35 »

Hallo,

ich pflege gerade die 1.Bundesliga in mein Tippspiel ein und habe bei der Zuordnung der Wappen bei RB Leipzig folgende Fehlermeldung bekommen:

Der Teamname wird schon benutzt bzw. wurde doppelt vergeben. Die Kurzbezeichnung wird schon benutzt bzw. wurde doppelt vergeben.

Im Vorjahr hat die zuordnung noch geklappt!

Nachtrag:
Habe es in der Datenbank ergänzt. Wappen wird jetzt angezeigt. Komisch ist die Fehlermeldung aber schon.
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von DreamPromise »

Moin
ich bekomme bei der Aktualisierung der neuen Saison der 1. Bundesliga folgende Meldung:
[phpBB Debug] PHP Warning: in file [ROOT]/ext/football/football/acp/update_module.php on line 854: usort() expects parameter 2 to be a valid callback, function 'sort_teams' not found or invalid function name
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)

Klicke ich dann am Ende der Seite auf "Ligadaten aktualisieren" kommt folgendes:
Allgemeiner Fehler
SQL ERROR [ mysqli ]

Truncated incorrect datetime value: '' [1292]

SQL

UPDATE phpbb_footb_matchdays AS target INNER JOIN ( SELECT md.season , md.league , md.matchday , IF( md.delivery_date > now(), 0, IF(ISNULL(min(e.extra_status)), IF(min(m.status) = 1 AND max(m.status) > 1, 2, GREATEST(min(m.status), 0)), IF(LEAST(min(m.status), min(e.extra_status)) = 1 AND GREATEST(max(m.status), max(e.extra_status)) > 1, 2, GREATEST(LEAST(min(m.status), min(e.extra_status)), 0)))) As new_status FROM phpbb_footb_matchdays AS md LEFT JOIN phpbb_footb_matches AS m ON (m.season = md.season AND m.league = md.league AND m.matchday = md.matchday) LEFT JOIN phpbb_footb_extra AS e ON (e.season = md.season AND e.league = md.league AND e.matchday_eval = md.matchday) WHERE md.season = 2019 AND md.league = 2 GROUP BY md.season, md.league, md.matchday) AS source ON target.season = source.season AND target.league = source.league AND target.matchday = source.matchday SET target.status = source.new_status

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 993
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/ext/football/football/acp/update_module.php
LINE: 693
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: football\football\acp\update_module->main()

FILE: [ROOT]/adm/index.php
LINE: 82
CALL: p_master->load_active()
Dafür gibt es doch sicher eine Lösung ...

1000 Dank schon mal :grin:
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12178
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von Mahony »

Hallo
DreamPromise hat geschrieben:Moin
ich bekomme bei der Aktualisierung der neuen Saison der 1. Bundesliga folgende Meldung:
[phpBB Debug] PHP Warning: in file [ROOT]/ext/football/football/acp/update_module.php on line 854: usort() expects parameter 2 to be a valid callback, function 'sort_teams' not found or invalid function name
Hier mal die Lösung für die obige Fehlermeldung:

Suche in der /ext/football/football/acp/update_module.php (in Zeile 854)

Code: Alles auswählen

usort($this->xml_ary['footb_teams'], 'sort_teams');
ersetze mit

Code: Alles auswählen

//alter Code
			//usort($this->xml_ary['footb_teams'], 'sort_teams');
			
			//neuer Code
			usort($this->xml_ary['footb_teams'], array($this, 'sort_teams'));
Für die Fehlermeldung
[phpBB Debug] PHP Warning: in file [ROOT]/ext/football/football/acp/update_module.php on line 753: sizeof() [function.sizeof]: Parameter must be an array or an object that implements Countable
Suche in der /ext/football/football/acp/update_module.php (in Zeile 753)

Code: Alles auswählen

'XML_ARY'				=> (sizeof($this->xml_ary)) ? urlencode(serialize($this->xml_ary)) : '',
ersetze mit

Code: Alles auswählen

'XML_ARY'				=> (is_array($this->xml_ary) && sizeof($this->xml_ary)) ? urlencode(serialize($this->xml_ary)) : '',

Edit: Für die Fehlermeldung beim klicken auf Tipps editieren
hpBB Debug] PHP Notice: in file [ROOT]/ext/football/football/acp/bets_module.php on line 589: Undefined variable: resultopen
Suche in der Datei /ext/football/football/acp/bets_module.php

Code: Alles auswählen

FROM  " . FOOTB_MATCHES . ' AS s
			INNER JOIN ' . FOOTB_BETS . " AS w ON (w.season = s.season AND w.league = s.league AND w.match_no = s.match_no AND w.user_id = $user_id)
			LEFT JOIN " . FOOTB_TEAMS . ' AS v1 ON (v1.season = s.season AND v1.league = s.league AND v1.team_id = s.team_id_home)
			LEFT JOIN ' . FOOTB_TEAMS . " AS v2 ON (v2.season = s.season AND v2.league = s.league AND v2.team_id = s.team_id_guest)
			WHERE s.season = $season 
				AND s.league = $league 
				AND s.matchday = $matchday
			GROUP BY s.match_no
			ORDER BY s.match_datetime ASC, s.match_no ASC";
		$result = $db->sql_query($sql);
Füge danach ein

Code: Alles auswählen

//fehlende Variable wird hier definiert
		$resultopen = $db->sql_query($sql);


Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von DreamPromise »

Moin
danke dir ...perfekt.
In einer früheren Version waren die beiden Tabellen (Gesamtansicht und Gesamtrangliste) in der Ansicht "Alle Tipps" - "Druckansicht" nebeneinander.
Ist das machbar die in der Druckansicht wieder nebeneinander zu legen ?

1000 Dank
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von DreamPromise »

Moin

wenn ich im ACP auf den Reiter "Fussball" klicke und dann aus "Spielplan aktualisieren" klicke kommt eine Meldung im Header:
[phpBB Debug] PHP Warning: in file [ROOT]/ext/football/football/acp/update_module.php on line 753: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
Ich hoffe das hat nicht mit der Umstellung hier zu tun ---> viewtopic.php?f=145&t=242645&p=1392617#p1392617
Zuletzt geändert von DreamPromise am 19.02.2019 16:10, insgesamt 1-mal geändert.
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von DreamPromise »

Und nun ...wieder zurück auf eine ältere Version von php ?
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17395
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von Dr.Death »

entweder das, oder du wartest, bis jemand das alte MOD/EXT php 7 kompatible macht.....

http://php.net/manual/de/function.count.php

Edit: "sizeof()" ist ein Alias für "count()"
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: [BETA] [3.1] [3.2] Football Prediction League

Beitrag von DreamPromise »

Keiner der 7er Version funktioniert fehlerfrei.
Ich mußte bis auf Version 5.6 zurück gehen.
Nun sind die Meldungen erstmal weg.

Edit: Kein Plan das das mit "sizeof()" ist ein Alias für "count()" ist ... davon hab ich leider keine Ahnung.
Antworten

Zurück zu „Extensions in Entwicklung“