Sigh…. Error 500 – Internal Server Error
-
i appear to have a bigger problem now
suddenly the dreaded happentravelmolecule.com/blog cannot load up page out of sudden, but instead tells me
Error 500 – Internal Server Error
An error was encountered while processing your request. Typically this is a temporary condition. Please contact the web site owner for further assistance.can someone please offer me help? i try to troubleshoot myself but couldnt locate the problem
-
What were you doing to the site immediately prior to the error appearing?
i was adding footnote to the bottom of website – the copyright stuff.
then a few min later noticed the /blog page is down, but others is fine.
so i dunno if these 2 events are related to each others?!
Sounds like you introduced an error to one of your theme’s templates. You need to revert that edit by visiting your site via SSH, FTP or your hosts panel software. A quick fix would be to rename your theme directory so that WordPress reverts to its default theme. Then log back in and work out what went wrong.
If you were editing theme templates from within the WordPress dashboard, this type of occurrence happens to people all the time. These forums are littered with similar problems. The golden rule here is never directly edit a file on a live website. Always make edits to a backed up copy.
sorry, i have been reading a couple of forum posts online. but i still need more pointers
A quick fix would be to rename your theme directory so that WordPress reverts to its default theme. Then log back in and work out what went wrong.
i know how to log onto cpanel – which is usually where i do my code edits. which theme directory do you mean? the child or parent? then how do i track where went wrong? not review code line-by-line you mean?!
i noticed when i revert permalinks back to default, the problem disappear. but when i switch back to “post name” permalink, the problem occur again. so is that indicative of anything?
for extra information, i was copying then editing the footer.php right before this happen – at least that’s what i think when it happens. is it something related to what i did in php?
If your Server is returning a 500 error code, that indicates that it’s failing to properly deal with a request. If you were editing a live PHP file, then it’s more than likely this is where the problem lies.
Can you paste your footer.php at PasteBin and post the URL back in here so that we can take a look-see?
<?php /** * The template for displaying the footer * * Contains footer content and the closing of the #main and #page div elements. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ ?> </div><!-- #main .wrapper --> <footer id="colophon" role="contentinfo"> <p>Copyright © 2014 · All Rights Reserved · <a href="http://travelmolecule.com" >travelmolecule.com</a></p> </footer><!-- #colophon --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html>
ok. i dont know what is PasteBin. but i think you want to see the code?
the above is what my footer.php looks like now—————-
conversely the parent footer.php is the below
<?php /** * The template for displaying the footer * * Contains footer content and the closing of the #main and #page div elements. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ ?> </div><!-- #main .wrapper --> <footer id="colophon" role="contentinfo"> <div class="site-info"> <?php do_action( 'twentytwelve_credits' ); ?> <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a> </div><!-- .site-info --> </footer><!-- #colophon --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html>
i think the problem is with some .php file. because i tried deactivating all plugins and activate again but the problem is not solved. and the weird thing is it only happens to my /blog page and no where else. and footer.php to my knowledge is not just specific to /blog page
ok. so lesson learned. i shouldnt be editing a live php file. i always thought it’s easier to edit the file. and have the website open on another screen so that i can see what i do. but apprently that’s not a wise approach
url: travelmolecule.com/blog
ok. i use this website pastebin.com, and pasted my child-theme footer.php code into it. and got the following out
Your footer looks OK but the 500 error only happens on your blog page. Did you make some edits to a custom blog template?
this is what i am confused about.
it only happens on my blog pageso what .php or .css file is only specific to my blog page and no where else? i didnt do anything to any files to my knowledge, or could you please point me to any files i could have mistakenly alter to damage custom blog template?
the /blog page was still working just 2 h ago. so in the past 2 h, technically the only file i could have messed up under child theme is the footer.php, functions.php, and style.css. i dont think anything else is changed although i provide pastebin links to below (not many to begin with under child theme)
style.css
http://pastebin.com/2FVgXHXZfunctions.php
http://pastebin.com/TBNK2UCSheader.php
http://pastebin.com/unczfdJmcustomheader.php
http://pastebin.com/SEQaA7m5footer.php
you already seen thisUNLESS i somehow messed up the parent theme files….
Try checking your site’s error logs for a more specific error message. Your hosts should be able to help you accessing your site’s error logs.
i have sent an email to them. waiting for them to reply. still curious to see if this is something i messed up myself. i just dont know why this happens only to the .com/blog page and not anywhere else.
if it’s something i mess up within the parent theme files (dunno which one, let’s say 1 out of the hundreds in there), does it mean if i have a fresh upload of twenty twelve parent theme file, then problem will be solved?
i am a little afraid of making thinsg worse so didnt do anything yet
does it mean if i have a fresh upload of twenty twelve parent theme file, then problem will be solved?
Yes.
ok. i just did a fresh upload of twenty twelve parent theme file. it didnt work in resolving the issue. so i can confirm parent theme files are not corrupted i guess.
not sure abt the files in child theme (see pastebins above)
- The topic ‘Sigh…. Error 500 – Internal Server Error’ is closed to new replies.