SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Two Issues - password reset and Facebook button

Started by ChristyK, November 27, 2015, 03:15:59 PM

Previous topic - Next topic


I'm a brand new admin for a Simple Machines Forum - ihatedialysis dot com slash forum slash (can't post an external link .  I am trying to troubleshoot two issues:

1.  Password Reset - When a person clicks on the link to reset the password, it doesn't send an email to the person.  Multiple people have contacted the other admins and they reset the passwords by hand, but I know this is not a good way to be doing this.  Here's what I've done to troubleshoot it:

  • I created a new user for the forum.
  • I clicked the forgot password link, I got a page asking me to enter my user name or email.
  • I entered my user name.
  • I checked back to my email account for the past 20 minutes and the email didn't come to me.
  • The email address in the forum is set as admin at ihatedialysis dot com
  • Email -> Settings --> Mail type is set to PHP Default
  • Forum version: SMF 2.0.5.  I know it is out of date and it will be one the items I will do as soon as I get a backup done, which hasn't been done it a long time.
  • I went to my control panel for the server and checked if the admin email account shows a password resent email was sent/received.  I'm assuming that any password reset email would come from the admin account.  I see a lot of emails for new member registration, but none for password reset.
  • I found a webpage on this site that had me add a php file with script to the forum directory on the site. Sorry I can't find the page. (Edit:  I found the page:  When I ran it, I got a 'success' but the email address I entered in still hasn't gotten the email from it and I checked my spam folder.
Let me know if there is more information that you need.  I've read a couple of messages on this site, but didn't seem to find an answer to this issue.

2.  Facebook button is giving errors. - There is a line of buttons across the top. One of the buttons is for the Facebook page:
Here is the error message:
IP address   
Reverse chronological order of list Today at 11:33:41 AM
session ad1cc2d9cdaf7dcad5a2262283290686
Type of error: Undefined;action=enotify
8: Undefined index: facebook
File: /home/ihatedia/public_html/forum/Sources/Subs.php
Line: 3919

Here's the subs.php contents:

3899: // All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
3900: if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
3901: {
3902: $buttons = array(
3903: 'home' => array(
3904: 'title' => $txt['home'],
3905: 'href' => $scripturl,
3906: 'show' => true,
3907: 'sub_buttons' => array(
3908: ),
3909: 'is_last' => $context['right_to_left'],
3910: ),
3911: 'help' => array(
3912: 'title' => $txt['help'],
3913: 'href' => $scripturl . '?action=help',
3914: 'show' => true,
3915: 'sub_buttons' => array(
3916: ),
3917: ),
3918: 'facebook' => array(
==>3919:                 'title' => $txt['facebook'],
3920:                 'href' => '"target="blank" ',
3921:                 'show' => true,
3922:                 'sub_buttons' => array(
3923:                 ),
3924:              ),
3926: 'arcade' => array(
3927: 'title' => $txt['arcade'],
3928: 'href' => $scripturl . '?action=arcade',
3929: 'show' => $context['allow_arcade'],
3930: 'sub_buttons' => array(
3931: ),
3932: ),
3934: 'search' => array(
3935: 'title' => $txt['search'],
3936: 'href' => $scripturl . '?action=search',
3937: 'show' => $context['allow_search'],
3938: 'sub_buttons' => array(
3939: ),

How do I edit these buttons - specific place as I can't seem to find the place to edit the buttons?  What is this error caused by?  What do I need to change? There are multiple errors for this line number in the error log.

Thank you for your help.



you need to define the text string for facebook, that is why it is causing errors.

in your index.english.php file you need to add

$txt['facebook'] = 'Facebook'; at the bottom of the file before the closing ?> tag.

for the email issue take a look at


I tried all the options on the page you gave me, before I posted to the forum and none of them worked.  I guess I will contact the hosting company for their help.

Any other suggestions?

Thank you.



I don't have a  index.english.php file in my forum directory. 



Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


I added the line in $txt['facebook'] = 'Facebook'; in my index.english.php file, but the error is still coming up.  Any other suggestions?