I have a member who didn't verify his email address. I haven't manually approved him yet either. When he tried to login to his member information page to complete his payment (via the mail_not_completed email he received), he can't login because I haven't approved him. I approved him, then he tries to login but gets this error: Obviously the coding for this error message is not working. Where is the file to change it, and any idea why the HTML tags are showing up and not working?
That error message comes from the language file (amember\language\en.php), specifically the _MEMBER_ERROR_1 variable. As far as why it is not encoded correctly, have you made other changes to the language file / custom language that left a tag open perhaps? What version of amember are you running?
I'm running 3.1.8PRO. I made one other change to the en.php file previously, but I checked that, and the formatting/tags are fine from the looks of it. This is what the en.php file has for the error message: define('_MEMBER_ERROR_1', 'You have not verified your e-mail address, so login is not%sallowed. Please check your mailbox for e-mail verification message and%sclick link to be verified. If you have not receive verification message,%splease click %sthis link%s and we will resend you verification message.'); Any other ideas why this isn't working properly?
Well you can check a couple of things: 1) does reverting to the default language file fix the problem? 2) is there a custom-en.php file in the language directory? if you move/delete the custom file does this fix the problem?
I ran into this error myself on 3.1.8 PRO. Here is how I fixed it. I opened up the template file for this error page, /amember/templates/fatal_error.html. I noticed that the Smarty tags used to display the error message use the flag "|escape", which tells Smarty to escape the < and > tags, so you see the HTML code instead of the newlines and links you expect. I deleted the "|escape" tags on lines 11 and 14, so they said "{$e}" and "{$error}" respectively. This fixed the error; however I do not know if it will have side effects with other errors.