WordPress.org

Forums

[resolved] Lost password - tried to edit functions.php to reset and now I can't access (2 posts)

  1. simkisp
    Member
    Posted 3 years ago #

    website is family-friendlyescapes.com
    I lost the family-friendlyescapes.com/wp-login.php password and I cant retrieve view the email option.
    I tried to edit the functions.php file as per many codex recommendations such as http://codex.wordpress.org/Resetting_Your_Password#Through_FTP
    by adding this code to the functions.php file.

    wp_set_password('password',1);

    when I try to access family-friendlyescapes.com/wp-login.php i receive the following error:

    Fatal error: Call to undefined function wp_set_password() in /home/content/02/10435102/html/wp-includes/functions.php on line 2

    my functions.php file looks like this with the remaining lines un touched:

    <?php
    wp_set_password('admin',1);

    /**
    * Main WordPress API
    *
    * @package WordPress
    */

    require( ABSPATH . WPINC . '/option.php' );

    I can't see what I am doing wrong and really need to get access to my site as its for my wife and her new start up.

    Any help greatly appreciated.

  2. simkisp
    Member
    Posted 3 years ago #

    resolved
    updated wp-config with new URLS of new domains and manage to change passwords via email password rest option.

Topic Closed

This topic has been closed to new replies.

About this Topic