Hi,
Seit dem update auf 2.3.2 meines Burning Boards, kommt jedesmal:
"Es wurden nicht alle benötigten Felder ausgefüllt." wenn man eine PN senden will, obwohl alles ausgefüllt ist. Ich habe mir mal die passende .php datei angeschaut und den Fehler ein wenig eingekreist.
Wenn man "senden" klickt, müssten die Variablen "$recipients" und "$recipients_bcc" nicht leer sein, sonst kommt die obenstehende Fehlermeldung...leider ist das bei mir der Fall...wenn ich diese abfragen aus der if-schleife rausnehme (also nicht checke ob $recipients und die andere Variable gesetzt ist, dann geht es auch, nur es kommt eine Fehlermeldung weil er schließlich den inhalt der variablen braucht).
nur weiß ich nicht warum diese Variablen leer bleiben...hier ein Stück code aus der pms.php das mit den variablen zusammenhängt:
Code:
if (!$subject || (!$recipients && !$recipients_bcc) || !$message) $error .= $lang->items['LANG_POSTINGS_ERROR1'];
/* check recipients */
if ($recipients != '' || $recipients_bcc != '') {
$recipientlist = array();
$recipientlist_bcc = array();
$emaillist = array();
$user_check = getwbbuserdatas(wbb_trim($recipients."\n".$recipients_bcc));
if ($wbbuserdata['max_pms_recipients'] != -1 && count($user_check) > $wbbuserdata['max_pms_recipients']) $error .= $lang->get("LANG_PMS_ERROR6", array('$max_recipients' => $wbbuserdata['max_pms_recipients']));
for ($i = 0; $i < 2; $i++) {
if ($i == 0 && !$recipients) continue;
elseif ($i == 1 && !$recipients_bcc) continue;
foreach (explode("\n", ($i == 0 ? $recipients : $recipients_bcc)) as $recipient) {
$recipient = wbb_trim($recipient);
$result = $user_check[wbb_strtolower($recipient)];
if (!$result['userid']) $error .= $lang->get("LANG_PMS_ERROR1", array('$recipient' => htmlconverter($recipient)));
else {
$recipient = htmlconverter($recipient);
if (($result['receivepm'] == 0 || $result['can_use_pms'] == 0) && $wbbuserdata['a_can_ignore_maxpms'] != 1) $error .= $lang->get("LANG_PMS_ERROR2", array('$recipient' => $recipient));
if (add2list($result['ignorelist'], $wbbuserdata['userid']) == -1) $error .= $lang->get("LANG_PMS_ERROR3", array('$recipient' => $recipient));
if ($wbbuserdata['a_can_ignore_maxpms'] != 1 && $result['a_can_ignore_maxpms'] != 1) {
if ($result['pmtotalcount'] >= $result['max_pms']) $error .= $lang->get("LANG_PMS_ERROR4", array('$recipient' => $recipient));
}
if ($i == 0) $recipientlist[$result['userid']] = $result['username'];
else {
if (!isset($recipientlist[$result['userid']])) $recipientlist_bcc[$result['userid']] = $result['username'];
}
// add to email notification list
if ($result['emailonpm'] == 1) {
$emaillist[$result['userid']] = $result;
}
}
}
}
$recipients = implode("\n", $recipientlist);
$recipients_bcc = implode("\n", $recipientlist_bcc);
PS: ich habe das Forum sogar auf 2.3.3 geupdatet und trotzdem klappt es nicht...kann es vielleicht auch was mit dem server zu tun haben, dass ich sachen wie long_arrays zulassen muss (das habe ich)...weil ich hab space von HOSTEUROPE!