• 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. https://www.larchmontchronicle.com

    How do I get it back?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter cdpitcock

    (@cdpitcock)

    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:
    require(‘./wp/wp-blog-header.php’);
    The file wp/wp-blog-header.php does in fact exist.

    the wp-config file says:
    /** Loads the WordPress Environment and Template */
    require(‘./wp/wp-blog-header.php’);

    Now my site is http error 500.

    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.

    Which version of WordPress did you install?

    Thread Starter cdpitcock

    (@cdpitcock)

    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’);

    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.

    Follow any of the methods here to change the site URL to the correct one. You don’t need dashboard access to do so.
    https://codex.www.ads-software.com/Changing_The_Site_URL

    Much easier solution!

    Thread Starter cdpitcock

    (@cdpitcock)

    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?

    Thread Starter cdpitcock

    (@cdpitcock)

    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.
    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Oh Dear…Now what’ is closed to new replies.