Seit heute habe ich seltsamerweise folgendes Problem:
wenn ich ein Profil aufrufe, steht da :
7
[0.02% aller Beiträge / 0.03 Beiträge pro Tag]
Alle Beiträge von Test Flags anzeigen
Persönliche Galerie von Test Flags (0 Bilder) [hier ist eine Lupe/Suchbutton]
Alle Bilder veröffentlicht von Test Flags
Da ist seit heute so ein "Suche" Button dabei. keine Ahnung, wofür der gut
sein soll??
Aber, ist erst seit heute so... vielleicht hat das mit irgendwelchen
Einstellungen im Album zu tun. Habe schon 3 Millionen Einstellungen durch
und klappt immer noch nicht...
Aber ist das nicht das gleiche, wenn man links daneben auf den Link klickt? Nur steht da im Link noch "&mode=all" dabei, was bei manchen wohl den Error verursacht...siehe etwa hier:
http://www.kissforum.de/phpbb2/profile. ... ofile&u=12
einloggen: tester/tester
Danke!
Wenn ich auf den Suche-Button klicke, kommt:
Er kann irgendwelche Fotos nicht zählen...Could not count pics !!
DEBUG MODE
SQL Error : 1064 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 ')
AND p.pic_cat_id = c.cat_id' at line 4
SELECT COUNT(p.pic_id) AS count FROM phpbb_album AS p, phpbb_album_cat AS c
WHERE c.cat_user_id = 1158 AND c.cat_id IN () AND p.pic_cat_id = c.cat_id
Line : 197
File : /srv/www/htdocs/web148/html/phpbb2/album_mod/album_personal.php
Wenn ich aber auf diesen Button bei meinem eigenen Profil klicke, kommt ein
Suchabfrageergebnis mit der Antwort: keine Fotos gefunden. Warum kann er das
nur bei meinem Profil? Habe das noch bei 2 Moderatoren probiert. Bei einem kam ein Error, beim anderen nicht!??
Hier die verantwortlichen Zeilen dafür:
Code: Alles auswählen
// ------------------------------------------------------------------------
// Count Pics of the root category of personal gallery,
// - $cat_ids is set in the above IF statement
// ------------------------------------------------------------------------
$sql = 'SELECT COUNT(p.pic_id) AS count
FROM '. ALBUM_TABLE .' AS p, ' . ALBUM_CAT_TABLE .' AS c
WHERE c.cat_user_id = '.$album_user_id.'
AND c.cat_id IN ('.$cat_ids.')
AND p.pic_cat_id = c.cat_id';
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not count pics !!', '', __LINE__, __FILE__, $sql);
}
Falls nötig, hier noch die erwähnte If-Abfrage:
Code: Alles auswählen
if ($id != $cat_id)
{
$allowed_cat .= ',' . $id;
}
}
}
$cat_ids = $allowed_cat;
$image_toggle_button = $images['normal_pic_view_mode'];
$view_mode_url = append_sid(album_append_uid("$album_page_url?cat_id=" . intval($cat_id)));
$view_mode_text = $lang['Show_selected_pic_view_mode'];
}
Weiss vielleicht jemand, woran das liegt, und wie ich diesen Fehler beheben kann?
Und vielleicht kann mir auch jemand sagen, wann dieser Lupen-Suchbutton dort kommt, und wann nicht
