Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

PasswordRequest variable


I'm using the latest build of Vanilla and when using the "forgot password" feature, users are sent an email with:


in the message body, and nothing else.

I've searched other topics here, and there are references to various language packs, but I am using the default (en.php).

Oddly, other email functions work correctly, so it is not related to SMTP settings or anything else (I don't think). For example, when editing my notification preferences, and requesting to be emailed when bookmarked discussions are commented on, I receive the email with the correct link/notification.

So it appears to ONLY be the password reset email that is not working properly. Any suggestions?


  • Options

    By latest build do you mean beta, alpha or stable?

    grep is your friend.

  • Options

    you should find it in



    grep is your friend.

  • Options
    RiverRiver MVP
    edited October 2016

    it could be you munged up your definitions in applications/dashboard/locale/en.php or somewhere else.
    best to re download and not to alter it.

    here is the definition as it should look.

    @johngoodell said: I'm using the latest build of Vanilla

    since you are posting in vanilla and 2.2 and don't know your vanilla version number.

    you can find out how to figure out your version number here....


    you could add or alter definitions via conf/locale.php

    you could download the 2.2.1 core and copy over the applications/dashboard/locale/en.php and delete the en-Ca file if you have one. and make sure

    you have this in config.php

    $Configuration['Garden']['Locale'] = 'en';

    vanilla 2.2.1 and greater do not have a "applications/dashboard/locale/en-CA/definitions.php" if you have it you don't need it, it is a remnant of the past.

    or background see....

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

  • Options

    Thanks for the replies, everyone - really appreciate it!

    I'm using 2.2.1 (stable).

    My version of en.php is correct - identical to the core download file.

    I have the config.php file correctly including:
    $Configuration['Garden']['Locale'] = 'en';

    and I removed the:

    directory entirely.

    Still no luck.

    I've attached of the email I still receive when clicking "forgot password?"

    Any other ideas would be most welcome...


  • Options
    RiverRiver MVP
    edited October 2016

    under a normal setup - the error you experience won't happen.

    the reason why you might see what you are seeing.

    stale ini files, cache issue, locale that you think is enabled is not, damaged core locale files, overridden view, overridden usermodel, definitions in theme, plugin or conf folder that override the applications/dashboard/locale/en.php file.

    1 - first check if you have a conf/locale.php file or a conf/locale-en.php - if you don't have either file that's fine.

    the simplest way to troubleshoot.

    • delete the ini files in the cache folder.
    • make sure the locale is enabled and selected as the default locale from the dashboard.
    • change to the default theme via the dashboard.
    • test if the problem goes away it is your theme and or theme based definitions causing problem.
    • disable all plugins via the dashboard.
    • test if the problem goes away it is your plugins and or plugins based definitions causing problem.
    • delete the ini files again from the cache folder for good luck
    • test and see if you still have the issue.
    • if you still have a problem download the 2.2.1 zip and re-copy all the files over and then delete ini files and re-test.

    I am assuming if you created any conf/locale.php or conf/locale-en.php or overridden any function in bootstrap files you will tell us.

    you could create a new definition for $Definition['PasswordRequest'] in conf/locale.php but you would not find out which plugin view, theme or locale file is truly causing the problem, since by default PasswordRequest should work properly.

    I suggest you read this closely...

    it will explain precedence of locale files and how to create conf/locale.php files.

    this is a good troubleshooting guide.

    after you read the comments and the two linked discussions and follow the troubleshooting steps and you still have problems you can post the steps you took troubleshooting and what you did.

    you can also post the locale-map.ini file contents after you follow the above steps if you still have a problem.

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

  • Options

    River - thanks for the excellent support. I was able to remove the ini files from the cache directory, and all is well now. Really appreciate the thorough instructions.

Sign In or Register to comment.