• Resolved maxianna

    (@maxianna)


    Hello,
    The same old site with more new problems…Sorry to post so many topics for the same site, but I am really stuck and I need help here.
    After many unsuccessful trying with Duplicator, I did the manual wordpress moving, following the codex.
    Before uploading the wp files on the server, I changed the url’s in Admin/Settings and I wrote the right db infos in the wp-config. Then I ran the plugin “Better Search and Replace”, which gave me a result of “0 changes done”. Instead of a homepage, I have the same white page as before. But now, when I want to log into the Admin, I get the message
    “Error establishing a database connection”, and my url looks like this:

    http://localhost/wordpress/wp-login.php?redirect_to=http%3A%2F%2Fronb-homedeco.host56.com%2Fwp-admin%2F&reauth=1”.

    It looks like a redirection from the localhost. The wp-config has the right data, so it’s not that. I can’t access the admin any more.
    When I try to log into the admin of the localhost version of my site, I have the same url as above. That’s strange, because I don’t remember to have changed the site address in the back up version. And, if, by mistake I did it, there’s no way to check it now, as I can’t access the dashboard (only if I knew where the site address is stocked in the system).
    Has someone faced a similar problem? Any idea?
    Thank you a lot

Viewing 10 replies - 1 through 10 (of 10 total)
  • where U moving your site from a local pc then moving to your web-host?? bc that what it sorta sounds like U did… if that is what U did… I think U missed one of your addresses U forgot to change.. bc there is something like 8 or so url U have to change to get it to work

    Thread Starter maxianna

    (@maxianna)

    Thanks for your answer.
    Exactly that’s the problem: I can’t access my dashboard to see what’s going on with the site address, if I did’t change it properly. Is there other way to access it? Because if not, I don’t know what else I can do to fix it.

    Thread Starter maxianna

    (@maxianna)

    The url problem got solved (I changed it manually in the db).
    And I realized that my site didn’t show because of the theme I use: Hatch-child. When I activated the parent, it worked well. The child works only in local.
    How could I make the child theme work online too? Has anybody faced this problem so far?

    Thanks

    what was the code U changed? I might beable to help you but not knowing what U changed I couldnt tell U how to do it… there might besome ways you can correct it… copy the parent php file in to the child theam.. manual edit the MySQL db.. or correct the php function.. with out knowing more about your problem I dont know what else to tell you

    Thread Starter maxianna

    (@maxianna)

    Actually, the Hatch-child contains only 2 files : functions.php and style.css, where the child is set up. It works well in localhost. What solutions would you propose to make it work online?

    What do you have in those files? (only post the top section of the style.css file).

    BTW, @rob781, – copying a parent theme functions.php file to a child theme will crash the site – that’s not how child themes work.

    Thread Starter maxianna

    (@maxianna)

    That’s the style css:
    /*
    Theme Name: Hatch Child
    Description: Hatch Child Theme
    Template: hatch
    */

    @import url(“../hatch/style.css”);

    I made a separate functions.php file for the child and I put it in the same directory with style.css:

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }
    ?>

    What should I do instead?

    Take our the @import line – that’s no longer considered best practice and it’s duplicating what the functions.php file is doing.

    Also remove the closing php tag in the function.php file.

    Thread Starter maxianna

    (@maxianna)

    Really thanks for your help. I did it and it works perfectly!

    YAY! Glad to hear it – and you’re welcome too :)!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘can't access dashboard, database error, wp-config correct’ is closed to new replies.