500 Error

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
CFF Staff
Registered User
Posts: 33
Joined: Thu Aug 28, 2008 10:24 am
Contact:

500 Error

Post by CFF Staff »

What causes this?
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: 500 Error

Post by karlsemple »

Lots of things :)

Although we need more information that you have provided ;)

What are you doing when the error occurs?

Check the server error logs to see if any errors are being logged which may give a clue to what the problem is

Please provide us with the information necessary to assist you by filling out the Support Request Template.
Image
CFF Staff
Registered User
Posts: 33
Joined: Thu Aug 28, 2008 10:24 am
Contact:

Re: 500 Error

Post by CFF Staff »

I was editing or modifying my viewtopic_body template, which I will include below. Now as soon as I saved it, suddenly nothing worked. At first I thought it was server related, so I went to my Tech Support, but then learned that I could do everything in the AdminCP, so it is not server related, it is phpBB, which is what brings me to you.

My template: viewtopic_body

Code: Select all

<!-- INCLUDE overall_header.html -->


	





	<div align="center">
		<div class="page" style="width:100%; text-align:left">
		<div style="padding:0px 8px 0px 8px; ">


		
















<a name="poststop" id="poststop"></a>

<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td align="left" width="100%"><div class="smallfont">

<!-- next / previous links -->
		<strong>&laquo;</strong>
			<a href="{U_VIEW_OLDER_TOPIC}" rel="nofollow">Previous Thread</a>
			|
			<a href="{U_VIEW_NEWER_TOPIC}" rel="nofollow">Next Thread</a>
		<strong>&raquo;</strong>
<!-- / next / previous links -->

		<!-- IF TOTAL_POSTS -->
		<div align="right">	<td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
			<td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_POSTS} ]&nbsp;</td>
			<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
		<!-- ENDIF -->


</div></td>

	<td align="right"></td>
</tr>
</table>
<!-- / controls above postbits -->


<div style="margin-top: 2px; margin-bottom:2px"><table width="100%" cellpadding="4" cellspacing="1" align="center" border="0" class="tborder">
<tr>


</tr>
</table></div>
<!-- toolbar -->
<table cellpadding="4" cellspacing="0" border="0" width="100%" align="center" style="border:1px solid #7F634B">
 
<tr>
	<td class="tcat" width="100%" nowrap="nowrap" valign="middle" style="height:40px">
		<div class="smallfont">
		
		
		</div>
	</td>


	<td class="tcat" nowrap="nowrap">

			<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
			<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
	
	
	</td>

	
	
</tr>
</table>
<!-- / toolbar -->




<!-- BEGIN postrow -->



<!-- end content table -->


		</div>
	</div>
</div>

<!-- / close content container -->
<!-- / end content table -->



<div id="posts"><!-- post #198411 -->

	<!-- open content container -->

<div align="center">

	<div class="page" style="width:100%; text-align:left">
		<div style="padding:0px 8px 0px 8px" align="left">

	<div id="edit198411" style="padding:0px 0px 0px 0px">
		





<table id="post198411" cellpadding="4" cellspacing="0" border="0" width="100%" align="center">

<tr valign="top">
	<td class="alt1" width="180px" style="border-right: 1px solid #7F634B; border-left:  1px solid #7F634B; padding-top: 5px; padding-bottom: 10px" align="left" rowspan="2">

		

		<div title="Name"><strong><B><big>{postrow.POST_AUTHOR}</big></b></strong></div>





			<!-- IF postrow.RANK_TITLE -->
				<div style="postdetails" class="smallfont">{postrow.RANK_TITLE}</div>
			<!-- ENDIF -->

				
				
				

				

<BR>
		

			




		

			

			{postrow.POSTER_AVATAR}
		

				

				



		
		

			<div class="smallfont"><strong><BR>Invoked:</strong> {postrow.POSTER_JOINED} </div> 
		

			<div class="smallfont"><strong>Spells:</strong> {postrow.POSTER_POSTS} </div> 

			

			
					<!-- IF postrow.S_PROFILE_GENDER -->
			<div class="smallfont"><b>Gender:</b> {postrow.PROFILE_GENDER_VALUE}</div>
					<!-- ENDIF -->





					<!-- IF postrow.S_PROFILE_MOOD -->
<div class="smallfont"><b>Mood:</b> {postrow.PROFILE_MOOD_VALUE}</div>
					<!-- ENDIF -->

			






			
				
				<BR><B><U>Status</B></U><BR>
					
	<!-- IF postrow.S_ONLINE --> 
<div class="smallfont"><b>Casting Spells</b><br>
(<i>Online</i>)</div>
<!-- ELSE -->
		
		
	
<div class="smallfont"><b>Writing Spells</b><br>
(<i>Offline</i>)</div>
<!-- ENDIF -->

		
		
	


				
				
			
		

		</div>
	</td>
	<td class="alt1" id="td_post_198411" style="border-right: 1px solid #7F634B">
			<div style="padding-right:5px; padding-left:5px; padding-top:5px" class="smallfont">
			<a name="post198411"></a>	

			

			<!-- icon and title -->
			<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-bottom: 1px solid #7F634B">
			<tr>
				<td align="left" class="smallfont">

					
					<strong>{postrow.POST_SUBJECT}</strong>
				</td>
				<td align="right" nowrap="nowrap" class="smallfont">
					<div style="padding-bottom:3px">
					



					
					

					</div>

				</td>
			</tr>
			</table>
			<!-- / icon and title -->


			</div>		

		<!-- message -->
		<div id="post_message_198411" style="padding:5px">
		

			
{postrow.MESSAGE}
			
			
		</div>
		<!-- / message -->

		</td>

	</tr>	


	<tr>
		<td class="alt1" valign="bottom" style="padding:2px; border-right: 1px solid #7F634B">
	
			

			

			
			<!-- sig -->
<!-- IF postrow.SIGNATURE -->
				<div style="text-align:center; padding-bottom:5px" class="smallfont">
					__________________
					<div style="padding-top: 5px">{postrow.SIGNATURE}</div>
				</div>
<!-- ENDIF -->
			<!-- / sig -->
			

			
			
			<div class="smallfont" align="right" style="padding-left: 4px; padding-right: 4px">




				<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td align="left" class="smallfont">
			
						
						
						
					
						
							<!-- IF postrow.S_PROFILE_RPG -->
<b>Playing:</b> {postrow.PROFILE_RPG_VALUE} 
<!-- ENDIF -->

						
				
					</td>
					
					<td align="right" class="smallfont">

						

						
							<a href="{postrow.U_REPORT}" rel="nofollow">Report This Post</a>
						

						

					</td>
				</tr>
				</table>
				
			</div>
		</td>

	</tr>

	<tr>
		<td class="alt1" style=" border: 1px solid #7F634B" align="left" valign="middle">
			<div class="smallfont">

				







<!-- IF S_IS_BOT -->
{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->

				











				<span class="time">{postrow.POST_DATE}</span>
			</div>

		</td>

		<td class="alt1" align="right" style=" border: 1px solid #7F634B; border-left:none">

			

	 		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="left">
			 		<a href="{postrow.U_PROFILE}"><img src="styles/subsilver2/imageset/en/icon_user_profile.gif" target="_blank" align="absmiddle" alt="View Profile" border="0" /></a>

			 		
						<a href="{postrow.U_PM}" target="_blank"><img src="styles/subsilver2/imageset/en/icon_contact_pm.gif" align="absmiddle" alt="Send a PM" border="0" /></a>

					

			   		
 					
					<a href="{postrow.U_EMAIL}"><img src="styles/subsilver2/imageset/en/icon_contact_email.gif" align="absmiddle" alt="Email" border="0" /></a>
			 		<a href="{postrow.U_WWW}"><img src="styles/subsilver2/imageset/en/icon_contact_www.gif" align="absmiddle" alt="Homepage" border="0" /></a>



				</td>

				<td align="right">


















					<!-- controls -->
					
			
						<a href="{postrow.U_EDIT}">{EDIT_IMG}</a>


					
						<a href="{postrow.U_QUOTE}" rel="nofollow">{QUOTE_IMG}</a>
					

		
		
		
			
		

				</td>

			</tr>
			</table>

	</td>
</tr>

</table>













	</div>
	
		</div>
	</div>
</div>

<!-- / close content container -->

<!-- / post #198411 --><div id="lastpost"></div></div>

<!-- start content table -->
<!-- open content container -->

<div align="center">

	<div class="page" style="width:100%; text-align:left">
		<div style="padding:0px 8px 0px 8px" align="left">

<!-- / start content table -->

<!-- controls below postbits -->

<!-- END postrow -->

<table cellpadding="4" cellspacing="0" border="0" width="100%" align="center" style="border-bottom:1px solid #7F634B; border-left:1px solid #7F634B; border-right:1px solid #7F634B; ">
<tr>
	<td class="tcat" width="100%" style="height:40px">
		<div class="smallfont" align="left"><strong>All times are GMT -5. The time now is.</strong></div>

	</td>
	<td class="tcat" nowrap="nowrap">
	
	<a href="{U_POST_NEW_TOPIC}" rel="nofollow">{POST_IMG}</a>

	
		&nbsp;<a href="{U_POST_REPLY_TOPIC}" rel="nofollow">{REPLY_IMG}</a>
	
	
	</td>
</tr>
</table>


<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 4px">
<tr valign="top">

<td class="smallfont" align="left" width="33%">

</td>



<td align="center" class="smallfont" width="33%">
			
		</td>

		<td align="right" width="33%">
			
				
		</td>
</tr>
</table>


<!-- / controls below postbits -->


<td align="left" width="100%"><div class="smallfont">
<!-- next / previous links -->
		<strong>&laquo;</strong>
			<a href="{U_VIEW_OLDER_TOPIC}" rel="nofollow">Previous Thread</a>
			|
			<a href="{U_VIEW_NEWER_TOPIC}" rel="nofollow">Next Thread</a>
		<strong>&raquo;</strong>
<!-- / next / previous links -->
</td></div>



<BR>




























<!-- thread options links -->
<center>
<table cellpadding="4" cellspacing="1" align="center" style="border:1px solid #7F634B">
<tr>
	<td class="alt2"><div class="smallfont" style="padding-right: 5px; padding-left: 5px">
		 

		<img src="styles/subsilver2/imageset/en/printer.gif" alt="" border="0" align="absmiddle"> <a href="{U_PRINT_TOPIC}" rel="nofollow">Show Printable Version</a>

		 <span class="smallfont" style="font-family: tahoma, verdana, arial; font-size: 9px; padding-left: 3px; padding-right: 3px"> | </span>

			<img src="styles/subsilver2/imageset/en/sendtofriend.gif" alt="" border="0" align="absmiddle"> <a href="{U_EMAIL_TOPIC}" rel="nofollow">Send To Friend</a> <span class="smallfont" style="font-family: tahoma, verdana, arial; font-size: 9px; padding-left: 3px; padding-right: 3px"> | </span>

			<img src="styles/subsilver2/imageset/en/subscribe.gif" alt="" border="0" align="absmiddle"> <a href="{U_WATCH_TOPIC}" rel="nofollow">Subscribe to this Thread</a>
		 
	</div></td>
</tr>
</table>
</center>
<!-- /thread options links -->



<BR>

<table width="100%" cellspacing="1">
<tr>
	<td align="{S_CONTENT_FLOW_BEGIN}" valign="top" nowrap="nowrap"><span class="gensmall"><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></span></td>
	<td width="40%" valign="top" nowrap="nowrap" align="{S_CONTENT_FLOW_END}"><!-- IF S_TOPIC_MOD --><form method="post" action="{S_MOD_ACTION}"><span class="gensmall">Admin Tools:</span> {S_TOPIC_MOD} <input class="btnlite" type="submit" value="{L_GO}" /></form><!-- ENDIF --></td>
</tr>
</table>

<BR>



<table width="100%" cellspacing="0">
<tr>
	<td><!-- IF S_DISPLAY_SEARCHBOX --><!-- INCLUDE searchbox.html --><!-- ENDIF --></td>
	<td align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></td>
</tr>
</table>




<BR>







<!-- INCLUDE overall_footer.html -->
Your assistance is appreciated.

Thank you,
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: 500 Error

Post by karlsemple »

Have you undone your edits to that file and then tested to see if the error occurs, also as I said check your server error logs to see what is being logged there which may give a clue to the issue :)
Image
User avatar
PiperB
Registered User
Posts: 173
Joined: Mon Nov 07, 2016 6:54 pm

Re: 500 Error

Post by PiperB »

Another thing you can also try is downloading a fresh vanilla copy of your version of phpbb and then unzip it somewhere on your computer and take the viewtopic_body.html from there and compare it side by side with your edited version.

You must have both copies of the viewtopic_body.html in separate folder locations on your system in order to open them both at the same time. Otherwise one will overwrite the other.

Go through the code and compare the two. Or, if you don't have any mods installed in your current version you can just replace it and start over with your tweaks.

Just a suggestion. It would help too if you filled out the support ticket form or at the very least told everyone what version of phpbb you are using. This helps a lot when looking over what is needed and what isn't.

I hope you get your error fixed. :)
<!-- IF U_LOVE_NOTEPAD++ -->
[td class=statement]I Notepad++ ![/td]
<!-- ENDNEVER --> <!-- tee hee --> :P
Whoa ooo whoa ooo whoa I'm a Lady!
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: 500 Error

Post by canonknipser »

PiperB wrote:compare it side by side with your edited version
Tipp: the easiest way to do this would be using a file comparison tool like winmerge, kdiff3 or similar. By visual compare you may miss some differences.

Edit: there are a lot of tools out there in the wild
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
Lumpy Burgertushie
Registered User
Posts: 68304
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 500 Error

Post by Lumpy Burgertushie »

did anyone notice that the last post in this topic before today was in 2008? ;)

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: 500 Error

Post by canonknipser »

:oops: :oops: :oops:
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
PiperB
Registered User
Posts: 173
Joined: Mon Nov 07, 2016 6:54 pm

Re: 500 Error

Post by PiperB »

I have to admit, I didn't look at the date this time. LOL Sometimes I do overlook that out of eagerness to help, lol. :lol:

Thank you for pointing it out to me though, because now I won't wait to see if they post anything more useful that may help solve it, LOL. :oops:

Edit: Perhaps if someone still on the older version googles "phpbb messed up viewtopic_body.html" or something alone those lines, they will run across this general knowledge, LOL. If it even helps one person, it was worth the embarrassment of posting very very late. :lol:

Note to anyone else who is on older versions coming into this extremely late topic reply, I can't stress enough how important it is to make regular backups after every mod, this way you can go right back to the previous version of any file. Always always make backups. I like to leave my current documents open in the notepad++ so that if something odd happens, it can quickly be undone and saved.

I also use an FTP program that allows me to edit the files and save in real time basically, so any undo's and save's instantly go back to the board. Refresh dem templates and caches after every mod too.
<!-- IF U_LOVE_NOTEPAD++ -->
[td class=statement]I Notepad++ ![/td]
<!-- ENDNEVER --> <!-- tee hee --> :P
Whoa ooo whoa ooo whoa I'm a Lady!
Locked

Return to “[3.0.x] Support Forum”