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
Parse error wenn Profil aufgerufen wird
#1
Hallo ihr Lieben,
ich habe ein Problem: jedes Mal wenn ich ein Profil im Forum aufrufen möchte oder einen Beitrag öffne, erscheint bei mir neuerdings folgender Error:

Zitat: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /www/htdocs/w017367b/hydeparkcorner.de/inc/functions_post.php(867) : eval()'d code on line 7

Kann mir jemand sagen was da falsch läuft, ich komm nämlich irgendwie nicht drauf >.<
Zitieren
#2
Die Meldung deutet auf einen Fehler im Template postbit_classic hin. Hast du das kürzlich bearbeitet?
Zitieren
#3
Nein, habe ich nicht. Wenn ich auf eines der Profile gehe, dann erscheint übrigens diese Meldung:

Zitat:Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /www/htdocs/w017367b/hydeparkcorner.de/member.php(2744) : eval()'d code on line 23
Zitieren
#4
Ich tippe auf Code-Eintragungen für das Plugin php in templates, oder anderweilige Änderungen an den Dateien.
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#5
Wie könnte ich dies beheben?
Zitieren
#6
Du könntest ja mal die Inhalte folgender Templates posten.

postbit_classic und member_profile
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#7
postbit_classic:
Code:
{$ignore_bit} <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a> <div class="post classic {$unapproved_shade}" style="{$post_visibility}"> <div class="post_author scaleimages"><div align="center"><strong><span class="largetext">{$post['profilelink']}</span></strong><br> {$post['usertitle']}</div> <if $GLOBALS['mybb']->user['usergroup'] == 1 then> <img src="images/Green%20Leaf/useravatar.png"> <else>{$post['useravatar']}</if> <if $post['fid8'] then><div class="bezirk">{$post['fid8']}</div></if> <div class="author_information"> <span class="smalltext"> {$post['groupimage']} </span> </div> <div class="author_statistics"> <div style="height: 150px; width: 100%; overflow:auto; font-size:10px; text-align:justify;">{$post['fid4']}</div> <if $GLOBALS['mybb']->user['usergroup'] == 1 then><else><if $post['fid6'] then><center><img src="{$post['fid6']}" /></center><else></if></if> <if $post['fid7'] then><a href="{$post['fid7']}"><img src="images/Green Leaf/characterarea.png" /></a></if> <div align="right"><if $post['fid5'] then>Created by <strong>{$post['fid5']}</strong></if></div> </div> </div> <div class="post_content"> <div class="post_head"> {$post['posturl']} {$post['icon']} <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span> {$post['subject_extra']} </div> <div class="post_body scaleimages" id="pid_{$post['pid']}"> {$post['message']} </div> {$post['attachments']} <div align="center">{$post['signature']}</div> <div class="post_meta" id="post_meta_{$post['pid']}"> {$post['iplogged']} </div> </div> <div class="post_controls"> <div class="postbit_buttons author_buttons float_left"> </div> <div class="postbit_buttons post_management_buttons float_right"> {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']} </div> </div> </div>

member_profile:
Code:
<html> <head> <title>{$mybb->settings['bbname']} - {$lang->profile}</title> {$headerinclude} <script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script> </head> <body> {$header} <fieldset> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td width="33%"  valign="middle"> <div class="bezirk">{$usertitle}</div> {$avatar} <div class="bezirk">Wrote {$memprofile['postnum']} Posts</div> </td> <td width="33%"  valign="middle"> <div style="height: 260px; width: 240px; overflow:auto; font-size:10px; text-align:justify;">{$userfields['fid4']}</div> </td> <td width="33%" display="flex"  align-items="center"  justify-content="center"><div style="width: 240px; font-size:10px; text-align:justify;"><strong>{$formattedname}</strong> und ist <strong>{$userfields['fid9']}</strong> Jahre alt, arbeitet als <strong>{$userfields['fid10']}</strong> und wohnt in <strong>{$userfields['fid8']}</strong>.</div> <div class="bezirk">Played by {$userfields['fid5']}</div> <if $GLOBALS['mybb']->user['usergroup'] == 1 then><else><if $userfields['fid6'] then><img src="{$userfields['fid6']}" /><else></if></if> <if $userfields['fid7'] then><a href="{$userfields['fid7']}"><img src="images/Green Leaf/characterarea.png" /></a></if> <div style="width: 240px; font-size:11px;"><strong>Contact:</strong> <a href="member.php?action=emailuser&amp;uid={$memprofile['uid']}">E-Mail</a> • <a href="private.php?action=send&amp;uid={$memprofile['uid']}">Private Message</a></div> </span></td> </tr> </table> </fieldset> <br /> {$bannedbit} <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center"> <tr> <td width="50%" valign="top"> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td colspan="1" class="thead"><strong>{$lang->users_forum_info}</strong></td> </tr> <tr> <td class="trow1"><blockquote><div align="justify">{$userfields['fid5']} hat sich am {$memregdate} mit {$formattedname} registriert und ist seitdem ein Teil von London. Der letzte Besuch fand (am) {$memlastvisitdate} statt und {$formattedname} hat eine Gesamtonlinezeit von {$timeonline}. Seit dem Einzug wurden {$memprofile['postnum']} Posts geschrieben und {$memprofile['threadnum']} Threads erstellt.</div> <div align="center"><strong>{$findposts} • {$findthreads}</strong></div></blockquote> {$awaybit}</td> </tr> </table> </td> <td>&nbsp;&nbsp;</td> <td width="50%" valign="top"> {$modoptions} {$adminoptions} </td> </tr> </table> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td width="100%"  valign="middle"><div align="center">{$memprofile['signature']}</div></td> </tr> </table> {$footer} </body> </html>
Zitieren
#8
Dein Code im classic Template ist etwas verwirrend

Code:
<if $GLOBALS['mybb']->user['usergroup'] == 1 then> <else><if $post['fid6'] then> <center><img src="{$post['fid6']}" /></center> <else></if> </if>

ebenso der für das member_profile

Code:
<if $GLOBALS['mybb']->user['usergroup'] == 1 then><else><if $userfields['fid6'] then><img src="{$userfields['fid6']}" /><else></if></if>

Was möchtest Du überhaupt erreichen ?
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#9
Ist das Template Conditionals Plugin im Moment aktiviert?
Wenn das Plugin nicht aktiv ist, erzeugt auch korrekter Code im Template dafür eine entsprechende PHP-Fehlermeldung auf der Seite.
Zitieren
#10
Vielen Dank, es lag tatsächlich daran, dass das Template Conditionals Plugin nicht aktiv war Rolleyes
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Parse error: syntax error, unexpected '' FlederMaus 4 2.739 01.09.2023, 01:28
Letzter Beitrag: FlederMaus
  Sticky PHP Parse Error ghandix 0 1.038 05.12.2021, 00:11
Letzter Beitrag: ghandix
  'Parse error' bei Moderatoren-Log miglincit 1 1.919 12.11.2018, 14:16
Letzter Beitrag: StefanT
  Parse error, syntax error nach cookielaw Plugin Installation Heavy.Rain 3 2.455 27.05.2018, 15:50
Letzter Beitrag: Heavy.Rain
  Img Mycode parse in 1.8.8 Delmai 2 2.239 18.10.2016, 12:06
Letzter Beitrag: Delmai