Need Help - I Think I Messed it Up...

11 replies
Hey Warriors, I was doing some customization to my wordpress blog, and I am now getting a 500: Internal Server Error, Here is what I did...

I was in the settings:General function: and I changed the WordPress address (URL) and the Blog address (URL) to a different URL. And now I'm locked out of my entire blog. and the CSS isn't loading for the root domain.

I've put an attachment of what I changed

HOW DO I FIX THIS...

I know 500 internal Server Error is a server error, but I don't know what to do...let me know if you have any questions.
#messed
  • Profile picture of the author Affiliatefunk
    Hi
    Im not an expert but i did a similar thing to my wordpress site...the solution was to put my domain name (http://yoursitename.com/) ...see if that works.

    Regards
    Affiliatefunk
    {{ DiscussionBoard.errors[2016145].message }}
  • Profile picture of the author Nickolie0990
    I know, but I can't log back in to fix it, everytime I try logging in, it gose to the page "500 internal server error"
    {{ DiscussionBoard.errors[2016158].message }}
  • Profile picture of the author chandan_dutta
    I believe this will work -

    Go to your hosting account and then open functions.php. Now add the below two statement just after the <?PHP line:

    update_option('siteurl','http://yoursitename.com');
    update_option('home','http://yoursitename.com');

    Save this file and then Log in To your Blog. I believe this should work.

    You need to delete this two line once the site is up.

    Once I got my blog back using the same approach. Try it once, it will work.
    {{ DiscussionBoard.errors[2016174].message }}
    • Profile picture of the author Nickolie0990
      Originally Posted by chandan_dutta View Post

      I believe this will work -

      Go to your hosting account and then open functions.php. Now add the below two statement just after the <?PHP line:

      update_option('siteurl','http://yoursitename.com');
      update_option('home','http://yoursitename.com');

      Save this file and then Log in To your Blog. I believe this should work.

      You need to delete this two line once the site is up.

      Once I got my blog back using the same approach. Try it once, it will work.
      I'm in the hosting, although I can't find the funcitons.php. Is it under the file manger???
      {{ DiscussionBoard.errors[2016216].message }}
      • Profile picture of the author EquityMastah84
        Hey Nick,

        Not a super expert either but try ftp'ing into your account and look under wp-content/themes/default. I remember seeing a functions.php there.

        Cheers
        Alec
        {{ DiscussionBoard.errors[2016252].message }}
        • Profile picture of the author Affiliatefunk
          Via Ftp (from Wordpress Codex)
          Edit functions.php

          If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.
          1. FTP to the site, and get a copy of the active theme's functions.php file. You're going to edit it in a simple text editor (like notepad) and upload it back to the site.
          2. Add these two lines to the file, immediately after the initial "<?php" line.
          update_option('siteurl','http://example.com/blog');
          update_option('home','http://example.com/blog');
          Use your own URL instead of example.com, obviously.
          3. Upload the file back to your site, in the same location. FileZilla offers a handy "edit file" function to do all of the above rapidly, if you can use that, do so.
          4. Load the login or admin page a couple of times. The site should come back up.
          5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.
          If there is no functions.php file in the theme: Create a new text file called "functions.php". Edit it with notepad, and add this text to it, using your own URL instead of example.com:
          <?php
          update_option('siteurl','http://example.com/blog');
          update_option('home','http://example.com/blog');
          Upload that to your theme directory, then proceed as stated above. Remove the file afterwards.
          {{ DiscussionBoard.errors[2016257].message }}
  • Profile picture of the author chandan_dutta
    It will be there under your current theme. For example if you your current them is Classic then you will get it here -> \wp-content\themes\classic\functions.php
    {{ DiscussionBoard.errors[2016247].message }}
    • Profile picture of the author EquityMastah84
      N1 Chandan - Looks like you were a Minute faster :-D
      {{ DiscussionBoard.errors[2016256].message }}
  • Profile picture of the author Nickolie0990
    OMG...I"M SUCH AN IDIOT..Thanks everyone, you guys rock beyond words can say. I was looking in the wrong theme, but everything is up and running now, thanks so much. . Well I can log in, but the posts are now 404???
    {{ DiscussionBoard.errors[2016286].message }}

Trending Topics