• Resolved MrsSmith

    (@mrssmith)


    Newbie here, started the site with “centraliahighalumni.com/Home”
    Tried to take the “home” out of it and when I hit save it brought up a 404 error. And now I cannot do anything… at all.. can’t login.. nothing.

    help…

    PS. I have some coding knowledge but it is very minimal.

Viewing 7 replies - 1 through 7 (of 7 total)
  • See the following page for some information on how to fix your problem:

    https://codex.www.ads-software.com/Changing_The_Site_URL

    I would try setting the site URL manually in the wp-config.php file back to what it was originally.

    See the above page section on “Edit wp-config.php” for details.

    I would investigate how you move WordPress from a subdirectory to without if that’s what you were trying to do. You have to do some background research and changes for things to work properly as you’ve found out ??

    C W (VYSO)

    (@cyril-washbrook)

    Contrary to jpm123’s advice (though it was given in good faith), I would advise not using the “Edit wp-config.php” method. As the Codex page states, this hardcodes the values into the site and disables the backend settings page. This may create more complications later on.

    Use the “Edit functions.php” method instead. This involves the following steps:

    (1) Access your site using FTP, then go to /wp/themes/bizznis.

    (2) Download the functions.php file, open it in a text editor, and add these as new lines:

    update_option( 'siteurl', 'https://www.centraliahighalumni.com/Home' );
    update_option( 'home', 'https://www.centraliahighalumni.com/Home' );

    (3) Re-upload the edited functions.php file.

    (4) If that fixes the errors, you should now remove the lines added at step 2.

    In addition, I assume you will want to know how to achieve what you were trying to do: i.e. remove /Home from the URL. You can do that by following the instructions on this page (under “Using a pre-existing subdirectory install”).

    Thread Starter MrsSmith

    (@mrssmith)

    Thank you for your responses.

    I have access to the FTP but there is no file named functions.php. There’s a folder named functions…

    Here is a list of php files within the functions folder:
    back-compat
    breadcrumb
    cli
    compat
    deprecated
    formatting
    general
    image
    layout
    load-scripts
    load-styles
    markup
    menu
    options
    sanitization
    shortcodes
    widgetize

    Should I add those two lines in one of those php files instead? if so which one?

    C W (VYSO)

    (@cyril-washbrook)

    No, the functions.php file should be in the directory of your active theme, which in this case is /bizznis. Here it is in a fresh installation of the theme.

    If you are using a child theme (I cannot tell because your site is currently down), you might want to check the directory of both the child theme and the parent theme.

    Thread Starter MrsSmith

    (@mrssmith)

    Found it and I am using a bizznis theme ??

    Here’s what the function file says

    ‘<?php

    /*

    WARNING! DO NOT EDIT THIS FILE!

    This file is part of the core Bizznis parent theme.

    Please do all modifications in the form of a child theme.

    */

    //* This file calls the init.php file, but only if the child theme hasn’t called it first.

    require_once( dirname( __FILE__ ) . ‘/lib/init.php’ );’

    I tried putting in the two lines you gave me anyways and I got an error message..

    Thread Starter MrsSmith

    (@mrssmith)

    GOT IT!!! YAY!

    Thank you!!!

    Hi CW,

    Thanks for the wp-config.php tip, I didn’t realize it hard-coded the values on the WP -> General screen.

    I think last time I used the method a while back, I temporarily set the wp-config values so that I was able to access the admin section of a site given to me that didn’t have the database migrated. (eg using “WP Migrate DB” plugin)

    The functions.php method does seem like the easier way to go.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Critical error! Tried to change the domain and now I can't login!’ is closed to new replies.