Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134430

simkisp on "Lost password - tried to edit functions.php to reset and now I can't access"

$
0
0

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.


Viewing all articles
Browse latest Browse all 134430

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>