• I made what seems to be a fairly common mistake but all attempts to fix my problem have failed. I’m reposting on this forum in hopes someone can help. My hosting company refuses to help. I’m on my own and getting really scarred of loosing over 2 years of blog content…

    This will be a lengthy post to give as much details as possible.

    While in the general settings option page I changed the URL for my blog (I wanted to set it to a different domain name). After doing so, I quickly realized things weren’t right. I somehow managed to log back into WP, go back to the General settings, and entered the previous info. But since then, I can’t log into my WP-admin anymore.

    Though the home page for my blog shows up properly, none of the links work. You can see what I’m talking about here: https://www.catherinerondeau.com/photographer-montreal-blog

    The way I used to login to WP was to enter the following URL:
    https://www.catherinerondeau.com/photographer-montreal-blog/myblog
    Notice the end of that URL doesn’t end with the usual “wp-admin”. That’s a change I made early on, a security recommendation.

    This way to log-in still works on the French version of my blog which I am able to access this way: https://www.catherinerondeau.com/photographe-montreal-blogue/mon blogue

    I know how to access all my blog files and how to makes changes in the code. Also I know how to access the phpMyAdmin page and make changes there.

    Here’s a list of the methods I have tried so far based on the instructions found on this page : https://codex.www.ads-software.com/Changing_The_Site_URL

    1. Edit functions.php
    2. Changing the URL directly in the database
    3. I then followed instructions on how to restore the Database from the phpMyAdmin. (info on that method found here : https://codex.www.ads-software.com/Restoring_Your_Database_From_Backup
    The file I used for the restore method is from weekly Database b-up files I receive by e-mail.

    I am praying someone can help me get my blog up and running again. I’d be more than happy just getting the blog back to the original domain and keeping it there. Changing domain names is not so important.

    Thanks in advance for your time.
    Catherine

Viewing 15 replies - 1 through 15 (of 20 total)
  • My hosting company refuses to help.

    For what reason?

    The way I used to login to WP was to enter the following URL:
    https://www.catherinerondeau.com/photographer-montreal-blog/myblog
    Notice the end of that URL doesn’t end with the usual “wp-admin”. That’s a change I made early on, a security recommendation.

    How did you make that change? Just by renaming files/folders, or did you use a plugin for that?

    So it looks like your WordPress site is installed in a directory “photographer-montreal-blog”. I’m not sure where “myblog” and “monblogue” come from (multilanguage plugin? security plugin?)

    From what I understand, you just changed the settings of the Homepage Address (URL) and/or the Site Address (URL), correct? Or did you make other changes as well that caused this issue?

    Thread Starter Miss Frenchy

    (@miss-frenchy)

    I’ve just tried another method, still doesn’t work.
    I tried the “Relocate method” explained on this page:
    https://codex.www.ads-software.com/Changing_The_Site_URL

    I added the following lines to the bottom of the wp-logon.php file :

    defined( ‘RELOCATE’ ) && RELOCATE ) { // Move flag is set if ( isset( $_SERVER[‘PATH_INFO’] ) && ($_SERVER[‘PATH_INFO’] != $_SERVER[‘PHP_SELF’]) ) $_SERVER[‘PHP_SELF’] = str_replace( $_SERVER[‘PATH_INFO’], , $_SERVER[‘PHP_SELF’] );

    $url = dirname( set_url_scheme( ‘https://www.catherinerondeau.com/photographer-montreal-blog’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘PHP_SELF’] ) ); if ( $url != get_option( ‘siteurl’ ) ) update_option( ‘siteurl’, $url ); }

    And the following line to the wp-config.php file : define(‘RELOCATE’,true);

    When I then tried to access the login page via:
    https://www.catherinerondeau.com/photographer-montreal-blog/wp-login.php

    The following error message appeared in red : Parse error: syntax error, unexpected ‘)’ in /home/catherin/public_html/photographer-montreal-blog/wp-login.php on line 958

    Line 958 being the first line of code I added at the bottom of the wp-login.php

    I don’t know what that script does exactly, but

    defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set

    should probably be

    if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set
    Thread Starter Miss Frenchy

    (@miss-frenchy)

    Hi Mark,

    Thanks for your response.

    My hosting company which I can only contact by email states that they can set up a new WP account but that they do not provide service for debugging an existing one. (!)

    I set-up my two WP accounts by my self. I unfortunately don’t recall how I changed the login method to “myblog” instead of the normal “wp-admin”. I do know I didn’t use a plugin. I must have followed instructions found online to do that manually.

    Yes, the directory is photographer-montreal-blog, which is a subdirectory that goes into catherinerondeau.com

    And yes, all I did is change the settings of the Homepage Address (URL) and Site Address (URL) at the top of the General Settings tab.

    I’ve since corrected thos settings via the phpMyAdmin tool.

    Any ideas?

    Thread Starter Miss Frenchy

    (@miss-frenchy)

    Oh! I might have omitted the IF there.
    I’ll go back and try again…

    Are the English and French sites two completely different sites? Not linked together using a multilanguage plugin?

    And yes, all I did is change the settings of the Homepage Address (URL) and Site Address (URL) at the top of the General Settings tab.

    I’ve since corrected thos settings via the phpMyAdmin tool.

    Sorry, not sure I understand. You changes those settings at first, then your site broke, so you changed them back but the site is still broken? Is that what’s going on?

    Thread Starter Miss Frenchy

    (@miss-frenchy)

    I repeated all the steps, making sure all the code was there. I’m still getting the same error message instead of a login page.

    Actually, https://www.catherinerondeau.com/photographer-montreal-blog/wp-login.php gives me a different error now.

    I would also check the Homepage Address (URL) and Site Address (URL) of your English site with the French site and see if they’re similar.

    But from what I can see, both should be set to https://www.catherinerondeau.com/photographer-montreal-blog

    I wouldn’t edit your wp-login.php file in the first place, this (obviously) causes many issues.

    Thread Starter Miss Frenchy

    (@miss-frenchy)

    Mark,

    Yes, you’re getting a different error now because I didn’t leave those extra code lines in. I made sure to put everything back the way it was.

    English and French sites are completely independant. Not linked, no pluggin.

    But I built both sites in a similar way. Where as my English version directory is: photographer-montreal-blog
    the French one is : photographe-montreal-blogue

    Yes, I changed the URL and Site Address of my English Site. When I saw things weren’t showing up properly anymore, I was still logged in and changed the asdresses back. And I’ve since made sure those addresses are correct via the myphpAdmin tool.

    Yet, the site still doesn’t work and I’m still unable to login.

    Can you try adding the following two lines to your wp-config.php file and see if that makes any difference?

    update_option('siteurl','https://www.catherinerondeau.com/photographer-montreal-blog'); // WordPress Address (URL)
    update_option('home','https://www.catherinerondeau.com/photographer-montreal-blog');  // Site Address (URL)
    Thread Starter Miss Frenchy

    (@miss-frenchy)

    I tried. I get the following error message when trying to access https://www.catherinerondeau/photographer-montreal-blog/wp-admin or wp-login.php

    Parse error: syntax error, unexpected T_IF in /home/catherin/public_html/photographer-montreal-blog/wp-config.php on line 89

    I appreciate your trying to help. I don’t know where else I can turn for help???

    It looks like you made a small type there, or there’s some leftover of other code that’s not supposed to be there.

    Could you paste the lines 80 and up from wp-config.php please?

    Thread Starter Miss Frenchy

    (@miss-frenchy)

    Ok, I entered those lines again and they are now still in the active wp-config.php

    Please edit your last post and remove everything you just posted, as it’s giving away your database info, including password.

    Thread Starter Miss Frenchy

    (@miss-frenchy)

    I was wondering about that…

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Still can't login to my blog – Please help’ is closed to new replies.