I see. That clears up a LOT of the questions I had, then.
So, taking what you said into consideration, this is what I think must be happening...
--------------------------------------
After altering the path to the lang/en.php file, I know WLPE is, at least, finding the file (since it gave an error when it couldn’t find it, after I altered the first dir text). And [+wlpe.message+] is working, because it replaces it with the code...
<div class="wlpeMessage"><p class="wlpeMessageText">[+wlpe.message.text+]</p></div>
So, then, [+wlpe.message.text+] isn’t being parsed right, because it’s not showing the error message that’s loaded in the function MessageTemplate. At least, with this info, I understand more what’s controlling the error message, so with any luck, I might just be able to find what’s causing this.
Since your install is working fine, this might be some weird issue with my server that’s causing it, possibly. I dunno what it could be, though.
EDIT: I dunno what could be causing my issue here. In the two areas I’ve tinkered around in, if something was altered, it caused the error message not to show up, meaning that how it is right now is technically right. So I assume this must be an issue with either my MODx install or my server.
It can’t be
class.phpmailer.php, because then the data format wouldn’t be showing up properly, I think.
EDIT 2: I used the [^s^] timing tag, just to make sure it wasn’t being cached. As I thought, it was being drawn from the database. Something odd I noticed, though --- in the
Online users area in Reports->System Info, instead of Wilhelm, which is the name I’m using for my fullname and username, it’s showing Albel Nox, which is the very first one I used to begin with. Dunno why it’s doing that.
Scotty: Could you show me how to change the LanguageArray[X] into a text string? That way, I could see if there’s an issue of my server not even being able to parse the FormatMessage command. Basically, I want to be able to type in the error message manually, to check to see if it works if it’s given directly.
Scotty, I figured out how to do that. Now, when I changed the non-image filetype upload error for the avatar to this...
return $this->FormatMessage($message = 'This is a test, yo!');
It showed up, which is great, because we know MessageTemplate isn’t the problem at all, like I thought. For some reason,
LanguageArray isn’t being parsed right, and can’t read the matching lang string in /lang/en.php. Do you have any idea why this isn’t working?
I could go and replace every error message using this method, but I’d rather not have to do if I don’t have to. Since you coded the script, I’d think you’d know why this isn’t working.
I added a ZIP of the webloginpe.classphp file I’m using, in case I made an error in that function, and you noticed it.