Hello,
I have a problem with action=lastpost for my registered users. When they choose the link "last post" on the right side they come to the next site in thread, beginning with site 1, go back and click lastpost next time - they get site 2, and so on, before they reach the last post.
I tried it as normal, registered user, and can see it every time.
I changed post count on a site, it's the same problem (on the picture I have 5 posts per site)
If the user comes to the last site, lastpost works every time for this thread when he didn't left the forum.
For admins or guests it works.
For analyse I use a little code snippet in showthread:
A link to some lastpost is p.e.
https://www.clever-excel-forum.net/ Thread-Firmen-und-Ansprechpartner-aus-zwei-tabellen-zusammenfuehren ?action=lastpost
and then I get this result where I can see, that the action=lastpost in showthread is missing:
$mybb->input['action']: nicht gesetzt
$mybb->input['goto']: nicht gesetzt
$mybb->input['pid']: 310045
$mybb->input['tid']: 43061
/Thread-Firmen-und-Ansprechpartner-aus-zwei-tabellen-zusammenfuehren?pid=310045:
Only when I read all in one thread, I can see "lastpost" in my analyse, but only for this thread (or for other complete read threads).
I want to search the reason, but I did know, where. What comes before showthread.php that removed the action :-(
I use googleseo plugin but if I deactivate it - or deinstall it, I have the same or other problems
I had optimized tables, renew caches, recount ... Nothing helps.
I tried it with standard settings or individual settings for the user, nothing helps ...
I looked in the group settings, but I saw nothing unusual ...
I have a problem with action=lastpost for my registered users. When they choose the link "last post" on the right side they come to the next site in thread, beginning with site 1, go back and click lastpost next time - they get site 2, and so on, before they reach the last post.
I tried it as normal, registered user, and can see it every time.
I changed post count on a site, it's the same problem (on the picture I have 5 posts per site)
If the user comes to the last site, lastpost works every time for this thread when he didn't left the forum.
For admins or guests it works.
For analyse I use a little code snippet in showthread:
// --- UNIVERSAL SHOWTHREAD DIAGNOSTIC ---
if (!empty($_GET) || !empty($mybb->input))
{
echo "<div style='font-family: monospace; font-size: 14px; padding: 20px; background: #ffcccc; border: 3px solid red; margin: 20px; z-index: 99999; position: relative;'>";
echo "<h2 style='color: red; margin: 0 0 10px 0;'>DIAGNOSE: Was wurde aufgerufen?</h2>";
echo "<strong>\$mybb->input['action']:</strong> " . (isset($mybb->input['action']) ? htmlspecialchars($mybb->input['action']) : '<span style="color:gray;">nicht gesetzt</span>') . "<br>";
echo "<strong>\$mybb->input['goto']:</strong> " . (isset($mybb->input['goto']) ? htmlspecialchars($mybb->input['goto']) : '<span style="color:gray;">nicht gesetzt</span>') . "<br>";
echo "<strong>\$mybb->input['pid']:</strong> " . (isset($mybb->input['pid']) ? htmlspecialchars($mybb->input['pid']) : '<span style="color:gray;">nicht gesetzt</span>') . "<br>";
echo "<strong>\$mybb->input['tid']:</strong> " . (isset($mybb->input['tid']) ? htmlspecialchars($mybb->input['tid']) : '<span style="color:gray;">nicht gesetzt</span>') . "<br>";
echo "<strong>$_SERVER[REQUEST_URI]:</strong> " . htmlspecialchars($_SERVER['REQUEST_URI']) . "<br>";
echo "</div>";
// Hält die Ausführung an, damit du den roten Kasten in Ruhe sehen kannst,
// bevor die Seite weiterleitet oder weggesprungen wird!
exit;
}A link to some lastpost is p.e.
https://www.clever-excel-forum.net/ Thread-Firmen-und-Ansprechpartner-aus-zwei-tabellen-zusammenfuehren ?action=lastpost
and then I get this result where I can see, that the action=lastpost in showthread is missing:
$mybb->input['action']: nicht gesetzt
$mybb->input['goto']: nicht gesetzt
$mybb->input['pid']: 310045
$mybb->input['tid']: 43061
/Thread-Firmen-und-Ansprechpartner-aus-zwei-tabellen-zusammenfuehren?pid=310045:
Only when I read all in one thread, I can see "lastpost" in my analyse, but only for this thread (or for other complete read threads).
I want to search the reason, but I did know, where. What comes before showthread.php that removed the action :-(
I use googleseo plugin but if I deactivate it - or deinstall it, I have the same or other problems
I had optimized tables, renew caches, recount ... Nothing helps.
I tried it with standard settings or individual settings for the user, nothing helps ...
I looked in the group settings, but I saw nothing unusual ...
PHP Version 8.5.9-nmm1 (09/2026)
MySQLi Version 10.6.23-MariaDB (09/2026)
Mybb Version 1.8.41 (09/2026)
MySQLi Version 10.6.23-MariaDB (09/2026)
Mybb Version 1.8.41 (09/2026)
lastpost link doesnt work correctly