MyBB Community Forums

Full Version: View Profile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, when I click on "View Profile", nothing appears and I only see a white screen.
please enable error-logging: https://docs.mybb.com/1.8/faq/errors/#en...error-logs

then go to profile and post the error from the side or from the log
(2023-04-09, 05:25 PM)bv64 Wrote: [ -> ]please enable error-logging: https://docs.mybb.com/1.8/faq/errors/#en...error-logs

then go to profile and post the error from the side or from the log

I just did everything and when I went to the Admin CP "Tools & Maintenance" and then under "Error Logs" the Site just logs me out and tells me that the Site is currently not available.
(2023-04-09, 05:11 PM)AlphaSneils Wrote: [ -> ]Hello, when I click on "View Profile", nothing appears and I only see a white screen.

your website URL?
Go to ACP > Configuration > Server and Optimization Options
Change Error Logging Medium option to Log errors
Change Error Type Medium option to Warnings and Errors
Change Error Logging Location to ./error.log

then save , and refresh your page that have error (profile page) and go to root of your forum and check error.log errors
and send errors here.

Also go to ACP -> Templates & Style -> Templates -> Member Templates -> member_profile
And put the codes here for review
double helps better?
So the only error that I am getting is this:

<error>
<dateline>1681061366</dateline>
<script>admin/index.php</script>
<line>830</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>require(/home/vol12_6/epizy.com/epiz_33976268/htdocs/admin/modules/tools/error_viewer.php): failed to open stream: No such file or directory</message>
<back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153]
#1 errorHandler->error_callback() called at [/admin/index.php:830]
#2 require() called at [/admin/index.php:830]
</back_trace>
</error>

And for the member_profile there is no code.
so this is your problem , use other theme or you can use other theme member_profile template


this is default theme 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=1820"></script>
</head>
<body>
{$header}
<fieldset>
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td width="75%">
				<span class="largetext"><strong>{$formattedname}</strong></span><br />
				<span class="smalltext">
					({$usertitle})<br />
					{$groupimage}
					{$userstars}<br />
					<br />
					<strong>{$lang->registration_date}</strong> {$memregdate}<br />
					<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
					<strong>{$lang->local_time}</strong> {$localtime}<br />
					<strong>{$lang->postbit_status}</strong> {$online_status}
				</span>
			</td>
			<td width="25%" align="right" valign="middle">{$avatar}</td>
		</tr>
	</table>
</fieldset>
<br />
{$awaybit}{$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="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
				</tr>
				<tr>
					<td class="trow1" style="width: 30%;"><strong>{$lang->joined}</strong></td>
					<td class="trow1">{$memregdate}</td>
				</tr>
				<tr>
					<td class="trow2"><strong>{$lang->lastvisit}</strong></td>
					<td class="trow2">{$memlastvisitdate}</td>
				</tr>
				<tr>
					<td class="trow1"><strong>{$lang->total_posts}</strong></td>
					<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total}){$findposts}</td>
				</tr>
				<tr>
					<td class="trow2"><strong>{$lang->total_threads}</strong></td>
					<td class="trow2">{$memprofile['threadnum']} ({$lang->tpd_percent_total}){$findthreads}</td>
				</tr>
				<tr>
					<td class="trow1"><strong>{$lang->timeonline}</strong></td>
					<td class="trow1">{$timeonline}</td>
				</tr>
				{$referrals}
				{$reputation}
				{$warning_level}
			</table>
			{$contact_details}
		</td>
		<td>&nbsp;&nbsp;</td>
		<td width="50%" valign="top">
			{$profilefields}
			{$signature}
			{$modoptions}
			{$adminoptions}
			<div style="text-align: center">{$buddy_options}{$ignore_options}{$report_options}</div>
		</td>
	</tr>
</table>
{$footer}
</body>
</html>


Either your theme is incomplete, or not installed completely (that is, some templates are not saved in the database)
I entered the default code in the member_profile, and now it is working.
Thank you so much!