Ready to get started?Download WordPress


Oh Dear...Now what (10 posts)

  1. cdpitcock
    Posted 2 years ago #

    I used the directions to giving WordPress its own directory. Except that I changed both the Site URL AND the wordpress URL to the root directory.

    Now I cannot get to the dashboard. I keep getting a page not found. I have tried typing in the example.com/wp/wp-admin where it use to be and example.com/wp-admin. It allows me to log in but takes me to a bogus page.

    When I look at it on Filezilla, the filesa are still in the wp/wp-admin folder.

    The site itself is not looking right either. It looks like all the content files are missing. http://www.larchmontchronicle.com

    How do I get it back?

  2. cdpitcock
    Posted 2 years ago #

    I checked the index.php file in the root and the /wp folder as well as the wp-config file which were the files that changed on the server after this disaster.
    The root directory as well as the /wp/ index.php files say:
    The file wp/wp-blog-header.php does in fact exist.

    the wp-config file says:
    /** Loads the WordPress Environment and Template */

    Now my site is http error 500.

  3. zex2911
    Posted 2 years ago #

    Can you log in to the phpMyAdmin? If so:
    Log in, choose your database, go to wp_options, find 'home' option, and change option_value field. Be careful, you don't want backslash, or index.php at the end. hope that helps.

  4. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Which version of WordPress did you install?

  5. cdpitcock
    Posted 2 years ago #

    I have 3.3 installed.
    I can log in at phpAdmin, but I don't know what you mean about wp-options.

    There is this in the wp-config file which defines the database connection:
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . './wp/wp-settings.php');

  6. zex2911
    Posted 2 years ago #

    no, no, no, not there. You know that WordPress works with database, you need to log into that database and find options. If you can't figure out how to do it, try installing this plugin (phpmyadmin), and then look into your database.

  7. fonglh
    Posted 2 years ago #

    Follow any of the methods here to change the site URL to the correct one. You don't need dashboard access to do so.

  8. zex2911
    Posted 2 years ago #

    Much easier solution!

  9. cdpitcock
    Posted 2 years ago #

    So far, the home page is up again, albeit broken.
    I think I may have done more damage while trying to fix this.
    I logged onto the phpadmin, found the options and the home and site url is correct. So I added the suggested lines to the wp-config page and the functions.php as suggested in the link.

    I cannot log in to the admin section at all. It redirects to an undefined page. So I suspect that somehow I either added or deleted an /wp/ in one of the files. /wp is where the wordpress stuff is. I noticed hwn I looked at a coupld of the wp-admin files that they wanted to go to the root directory and that is where I get redirected when I attempt a log in. Is there another place I can expressly fix the WP folder like I just did the site URL?

  10. cdpitcock
    Posted 2 years ago #

    Using the addition to the wp-config file did the trick. Finally. I may not be able to change it in the admin dashboard. But I don't think I will change anything until after I'm dead and gone.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.