Fehlermeldung Argument #1 is not an array

Support zu den Modifikationen (MODs) von Entwickler OXPUS für das phpBB 3.0.x
Antworten
jhe
Beiträge: 8
Registriert: Do 18. Sep 2014, 08:03

Fehlermeldung Argument #1 is not an array

Beitrag von jhe »

Moin,
ich habe die Download Mod 6.5.30 (Portal 2.01/phpBB3 3.0.12) installiert und funktioniert auch. Wenn ich jetzt im ACP einen Benutzer lösche, kommt folgende Fehlermeldung:

Code: Alles auswählen

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_user.php on line 500: array_merge(): Argument #1 is not an array

Warning: Cannot modify header information - headers already sent by (output started at /homepages/10/d143551405/htdocs/project_race_Forum/forum/includes/functions.php:3823) in /homepages/10/d143551405/htdocs/project_race_Forum/forum/includes/functions.php on line 2718

Code: Alles auswählen

SQL ERROR [ mysqli ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE user_id = 188' at line 2 [1064]

SQL

DELETE FROM WHERE user_id = 188

BACKTRACE

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

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()

FILE: [ROOT]/includes/functions_user.php
LINE: 507
CALL: dbal_mysqli->sql_query()

FILE: [ROOT]/includes/acp/acp_users.php
LINE: 198
CALL: user_delete()

FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: acp_users->main()

FILE: [ROOT]/adm/index.php
LINE: 74
CALL: p_master->load_active()
Wenn ich dann in die Benutzerverwaltung zurück gehe, ist der Benutzer gelöscht. Dieser Fehler tritt definitiv erst seit Installation der Download Mod auf.

Kann mir da bitte jemand helfen?

MfG
Juergen
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Fehlermeldung Argument #1 is not an array

Beitrag von oxpus »

Da scheint etwas bei der Installation in der Datei /includes/functions_user.php nicht zu stimmen.
Wenn alles korrekt gelaufen wäre, müsste der Bereich in etwa so aussehen:

Code: Alles auswählen

	$table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE, FORUMS_WATCH_TABLE, ACL_USERS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, FORUMS_TRACK_TABLE, PROFILE_FIELDS_DATA_TABLE, MODERATOR_CACHE_TABLE, DRAFTS_TABLE, BOOKMARKS_TABLE, SESSIONS_KEYS_TABLE, PRIVMSGS_FOLDER_TABLE, PRIVMSGS_RULES_TABLE);

	$table_ary = array_merge($table_ary, array(DL_NOTRAF_TABLE));
Argument 1 ist $table_ary, dass vor der neuen Zeile aus der Download MOD stehen muss.

Dazu bitte auch schauen, dass die Datei includes/constants.php korrekt geändert wurde.
Alle diese Zeilen müssen enthalten sein:

Code: Alles auswählen

// Download MOD 6
define('DL_AUTH_TABLE',				$table_prefix . 'dl_auth');
define('DL_CAT_TABLE',				$table_prefix . 'downloads_cat');
define('DL_REM_TRAF_TABLE',			$table_prefix . 'dl_rem_traf');
define('DL_CAT_TRAF_TABLE',			$table_prefix . 'dl_cat_traf');
define('DL_EXT_BLACKLIST',			$table_prefix . 'dl_ext_blacklist');
define('DL_RATING_TABLE',			$table_prefix . 'dl_ratings');
define('DOWNLOADS_TABLE',			$table_prefix . 'downloads');
define('DL_STATS_TABLE',			$table_prefix . 'dl_stats');
define('DL_COMMENTS_TABLE',			$table_prefix . 'dl_comments');
define('DL_BANLIST_TABLE',			$table_prefix . 'dl_banlist');
define('DL_FAVORITES_TABLE',		$table_prefix . 'dl_favorites');
define('DL_NOTRAF_TABLE',			$table_prefix . 'dl_notraf');
define('DL_HOTLINK_TABLE',			$table_prefix . 'dl_hotlink');
define('DL_BUGS_TABLE',				$table_prefix . 'dl_bug_tracker');
define('DL_BUG_HISTORY_TABLE',		$table_prefix . 'dl_bug_history');
define('DL_VERSIONS_TABLE',			$table_prefix . 'dl_versions');
define('DL_FIELDS_TABLE',			$table_prefix . 'dl_fields');
define('DL_FIELDS_DATA_TABLE',		$table_prefix . 'dl_fields_data');
define('DL_FIELDS_LANG_TABLE',		$table_prefix . 'dl_fields_lang');
define('DL_LANG_TABLE',				$table_prefix . 'dl_lang');
define('DL_IMAGES_TABLE',			$table_prefix . 'dl_images');
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
jhe
Beiträge: 8
Registriert: Do 18. Sep 2014, 08:03

Re: Fehlermeldung Argument #1 is not an array

Beitrag von jhe »

Jupp, es war /includes/functions_user.php, ich bin da irgendwie um eine Zeile verrutscht beim einfügen. Vielen Dank für die prompte & schnelle Hilfe!
Wenn ich jetzt noch die Dateigrößen manuell eintragen könnte und diese Werte auch in der mittleren Spalte erscheinen würden, wäre ich rundum glücklich :)

Schönen Sonntag!

//Edit: vielleicht verirrt sich ja in diesen Fred ein begabter User, der mir dabei helfen könnte...
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Fehlermeldung Argument #1 is not an array

Beitrag von oxpus »

Wenn ich jetzt noch die Dateigrößen manuell eintragen könnte und diese Werte auch in der mittleren Spalte erscheinen würden, wäre ich rundum glücklich
Wenn ich Zeit hätte, würde ich das Add-On selber schreiben.
Ich weiß nicht, wann ich dazu kommen könnte...
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
jhe
Beiträge: 8
Registriert: Do 18. Sep 2014, 08:03

Re: Fehlermeldung Argument #1 is not an array

Beitrag von jhe »

Ich warte einfach mal ganz geduldig ;)

Es geht übrigens um ein nichtkommerzielles Simracing Projekt: project-race.de
Antworten