INCLUDE_ORDERING_ERROR
Please use the MODx Content Manager instead of accessing this file directly.
I think this has something to do with me using the SEF URL rewriting to make a URL use friendly aliases and alias paths. I am using the WebLogin snippet to log in the user. When I do so, I get that error (I’m logged into the Manager in Firefox2, but I’m doing the WebUser login in Opera9.2, and I did this before w/out no problem, so it can’t be due to that).
I’m thinking that the Friendly Alias/Alias Path is causing some sort of error where it can’t redirect right or something. Any help with this issues is
greatly appreciated, since this is an integral part of my website (link to it is in my profile, in case someone needed to see the site to see what’s going on).
http://modxcms.com/forums/index.php/topic,10630.msg72275.html <--- I noticed that person had the same error. I am using 0.9.6 RC3, but I ran the upgrade process fine, so it doesn’t make any sense why it’s doing that.
EDIT: The only thing I could think that caused this was me running the Web2Manager plugin (I didn’t noticed it didn’t work with 0.9.5 until after I ran it. If that’s the case, any way I can "disable" it via PHPMyAdmin?
EDIT2: I delete the "extra" SQL lines it put in (created a "new" webuser, since my Manager and Web User login names are different), but still the same problem. Could this code have something to do with it?
$e = & $modx->Event;
switch ($e->name) {
case "OnManagerSaveUser":
$sql = "SELECT mu.username,mu.password,ma.*
FROM ".$modx->getFullTableName("manager_users")." mu
INNER JOIN ".$modx->getFullTableName("user_attributes")." ma ON ma.internalKey = mu.id
WHERE mu.id = '$userid'";
I think the INNER JOIN is what is causing the problem (since it was probably the one thing I never got rid of before. I don’t know much about SQL, but it seems that ModX is thinking that the WebUser ID’s are Manager ID’s, hence that error.