We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    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.
      My Snippets
      -> PopUpChunk v1.0
      • 28033
      • 925 Posts
      Bumpity bump.

      (Since it’s been about 48 hours.)
        My Snippets
        -> PopUpChunk v1.0
        • 5727
        • 160 Posts
        I’m guessing that Web2Manager, or any other snippet used on that page, is calling include() on a manager file. Most files used by the manager starts with this:

        if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly.");


        which is the error you are seeing. Look for include calls in your snippet.

        To disable a plugin:

        • Log in to the manager
        • Go to ressource tab
        • Find the snippet under ’Plugins’
        • Click on it to edit
        • Check the ’Disable plugin’
        • Save

        Hope this helps
          Olivier Deland
          Montreal, Canada - Web Developer
          • 28033
          • 925 Posts
          The weird thing is, IIRC, I got rid of the Web2Manager after I figured out it didn’t work.

          And all that’s being included on that page is the WebLogin script, which never had issues beforehand. I even took out the Manager check for the hell of it, and it still gave the same error.

          I’m gonna look around and see if I missed it / it’s still in the database, though.

          EDIT: Looking through my MySQL, it seems there was a leftover Web2Manager field in modx_user_settings, which I deleted (and didn’t help any). However, there’s like five different ID’s for the "user" field (which seems odd).

          My host has backups of everything, so I’m thinking of just revert to before I installed RC3, and reupload the content I made post-RC3 to the database once that’s done.

          EDIT2 (5:28 PM): This must be an issue with upgrading to RC3. Or something having to do with FURL’s. Even the rollback didn’t do anything...

            My Snippets
            -> PopUpChunk v1.0
            • 28033
            • 925 Posts
            After doing a reuploading of all of the files, plus another upgrade, and then drop/adding two tables, I finally got it to work again.

            If a mod could lock / remove this topic, I would appreciate it. And a big thanks to ConseilsWeb for trying to help. smiley
              My Snippets
              -> PopUpChunk v1.0