Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.40 veröffentlicht (28.05.26)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Threads I have posted in / Themen mit eigenen Beiträgen
#31
Hallöchen,

ich mache trotzdem mal weiter. Die bisherigen Warnungen habe ich wegbekommen. Ob das für das Plugin funktionell passt, sei mal dahingestellt, da stecke ich ebenso zu wenig drin :-(

Zeile 13:  define('THIS_SCRIPT', 'usercp.php');  
if(!defined("THIS_SCRIPT")) { define('THIS_SCRIPT', 'usercp.php'); }

Zeile 198: switch(my_strtolower(htmlspecialchars($mybb->input['order'])))
switch(my_strtolower(htmlspecialchars($mybb->input['order'] ?? $mybb->get_input('order'))))

Zeile 213: eval("\$orderarrow['$sortby'] = \"".$templates->get("ownposts_otherthreads_orderarrow")."\";");
funktioniert mit Vorbelegung der Variable $sortby oder mit Auskommentierung der Zeile. Ich habe mich für die Auskommentierung entschieden, da der code ein paar Zeilen tiefer nach der regulären Festlegung von $sortby nochmal kommt.

Zeile 275:  $page = intval($mybb->input['page']);
Fehler undefinierte Variable $page, 
$page = intval($mybb->input['page'] ?? $mybb->get_input('page'));

Derzeit bekomme ich mehrere Warnungen bezüglich der Zeile 316 und 321:  

eval("\$ownpost .= \"".$templates->get("ownposts_otherthreads_posts")."\";");
eval("\$ownpost_results = \"".$templates->get("ownposts_otherthreads")."\";");

Hier die Kurzform der Warnungen:

Zitat:Warning [2] Undefined variable $ownpost - Line: 6 - File: inc/plugins/threads_posted_in.php(316) : eval()'d code PHP 8.2.22 (Linux)

Warning [2] Undefined variable $theme - Line: 17 - File: inc/plugins/threads_posted_in.php(321) : eval()'d code PHP 8.2.22 (Linux)
Warning [2] Trying to access array offset on value of type null - Line: 17 - File: inc/plugins/threads_posted_in.php(322) : eval()'d code PHP 8.2.22 (Linux)
Warning [2] Undefined array key "subject" - Line: 24 - File: inc/plugins/threads_posted_in.php(321) : eval()'d code PHP 8.2.22 (Linux)
Warning [2] Undefined array key "fid" - Line: 25 - File: inc/plugins/threads_posted_in.php(321) : eval()'d code PHP 8.2.22 (Linux)
Warning [2] Undefined array key "username" - Line: 26 - File: inc/plugins/threads_posted_in.php(321) : eval()'d code PHP 8.2.22 (Linux)

 Im Anhang habe ich die php mit den Änderungen bis Zeile 275

.txt   threads_posted_in.php.275.txt (Größe: 10,41 KB / Downloads: 1)

Zumindest die letzten 3 Warnungen könnten mit dem vom Plugin erzeugten Template ownposts_otherthreads zusammenhängen, hier mal der Inhalt:

PHP-Code:
<html> <head> <title>{$settings['bbname']} - {$lang->tpi_title}</title> {$headerinclude} </head> <body> {$header} <table width="100%" align="center" border="0"> <tr> <td align="left" valign="top"> {$multipage} </td> </tr> </table> <!--<table border="0" cellspacing="10" cellpadding="10">--> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td height="35px" colspan="8" class="thead"> <strong><span style="padding-left:20px;">{$lang->search_results}</span></strong> </td> </tr> <tr>     <td class="tcat" align="left" style="padding-left:20px" colspan="1" width="42%"><strong><a href="usercp.php?action=ownposts&amp;sortby=subject&amp;order={$order}">{$lang->thread}</a>{$orderarrow['subject']}</strong></td>     <td class="tcat" align="center" width="20%"><strong><a href="usercp.php?action=ownposts&amp;sortby=fid&amp;order={$order}">{$lang->forum}</a>{$orderarrow['fid']}</strong></td>     <td class="tcat" align="center" width="14%"><strong><a href="usercp.php?action=ownposts&amp;sortby=username&amp;order={$order}">{$lang->author}</a>{$orderarrow['username']}</strong></td>     <td class="tcat" align="center" width="20%"><strong><a href="usercp.php?action=ownposts&amp;sortby=dateline&amp;order={$order}">{$lang->tpi_created}</a>{$orderarrow['dateline']}</strong></td> </tr> {$ownpost} </table> <table width="100%" align="center" border="0"> <tr> <td align="left" valign="top"> {$multipage} </td> </tr> </table> <!--</table>--> {$footer} </body> </html>
PHP Version         8.3.27 (Stand 11/2025)
MySQLi Version    8.0.36 (Stand 09/2024)
Mybb Version       1.8.39 (Stand 07/2025)


Grüße, André
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Threads Posted On Calendar MyBB.de Bot 7 5.016 30.11.2009, 22:10
Letzter Beitrag: Jockl